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:
./mvnw verify
You can also test this example manually:
- Open terminal and start the service
./mvnw lagom:runAll
- Open next link in the browser to get OpenAPI Specification:
http://localhost:9000/_pets/openapi[?format=json|yaml]