The generated server code for AMOC REST API
-
initial version of the project is generated using openapi-generator.
make generate
-
compilation of the project can be done using this command:
make compile
-
to test the project you can run:
make console
and then, execute in the erlang shell:
ServerParams = #{ip => {0, 0, 0, 0}, port => 4000, net_opts => []}. amoc_rest_server:start(http_server, ServerParams).
- the
dist
version of the swagger-ui is integrated under/api-docs/
path (e.g. http://localhost:4000/api-docs/) - the online version of the documentation is also available here (w/o possibility of execution)