Apyfal REST API¶
It is possible to use accelerators using the REST API instead of Python But, note that in this case, host configuration is not supported.
The Apyfal REST API follow rhe OpenApi specification.
Generating REST API client in any language using OpenApi¶
- Download and install an OpenAPI client generator (like OpenAPI Generator or Swagger-Codegen).
- Download the Apyfal repository:
git clone https://github.com/Accelize/apyfal.git
- From the repository directory, run the client generator with the following
command after replacing
$GENERATOR_CLIwith the path to the client generator
.jarexecutable, and replacing
$LANGUAGEby the language to generate (Please refer to client generator documentation for the list of possible languages)
java -jar $GENERATOR_CLI generate -i rest_api/input_spec.json -o rest_api/output -l $LANGUAGE
- The generated API in the target language can be found in
rest_api/outputsub-directory inside the repository folder.