This example demonstrates, how you can generate OpenAPI Specification for Lagom service. It uses the Lagom OpenAPI library.
This is a simple Petstor service, which is often used as examples for demonstrating capabilities OpenAPI/Swagger specifications.
You can test this example using the provided tests:
./sbt test
You can also test this example manually:
- Open terminal and start the service
./sbt runAll
- Open next link in the browser to get OpenAPI Specification:
http://localhost:9000/_pets/openapi[?format=json|yaml]