Skip to content
This repository has been archived by the owner on Mar 5, 2020. It is now read-only.

HTTP Server

Leon Kiefer edited this page Jul 24, 2018 · 3 revisions

The HTTP Server exposes the OpenAPI definition on /openapi.(json|yaml). This can be used to visualize the REST Operations with the Swagger UI.

Swager UI

To use the Swagger UI, choose a Swagger UI Service available(like http://petstore.swagger.io) and add it to the cors.config.properties file. There in the origins property like

origins=https://amyassist.github.io|http://petstore.swagger.io

Multiple origins must be separated by |.

Then start Amy and enter the url of the openapi.json for example http:localhost:8080/rest/openapi.json of Amy in the Swagger UI and click "Explore". Thats it. Now you can see all REST endpoints and test them click on a path and then "Try it out".