Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 974 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 974 Bytes

amoc_rest

The generated server code for AMOC REST API

initial generation

  • initial version of the project is generated using openapi-generator.

    make generate

compilation and execution of the project

  • 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).

swagger-ui integration

  • 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)