This is a Quarkus implementation of the Pet Store API. It's equivalent to the Spring Boot implementation but uses Quarkus framework instead.
- JDK 17 or higher
- Gradle 8.x
You can build and run the application using Gradle:
./gradlew quarkusDev
This will start the application in development mode. The API will be accessible at http://localhost:8080/api
- RESTful API for pets, categories, and tags
- OpenAPI client generation
- Basic security configuration
- SPA support
/api/pets/random
- Get a random pet/api/pets/random/{count}
- Get multiple random pets/api/categories/random
- Get a random category/api/categories/random/{count}
- Get multiple random categories/api/tags/random
- Get a random tag/api/tags/random/{count}
- Get multiple random tags
The application also supports standard CRUD operations on categories and tags.
To build a native executable:
./gradlew build -Dquarkus.package.type=native
You can then run the native executable with:
./build/sourcegraph-quarkus-pet-store-runner