https://github.com/sourcegraph/training-cody-quarkus
https://github.com/sourcegraph/training-cody-quarkus
training-material
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/sourcegraph/training-cody-quarkus
- Owner: sourcegraph
- Created: 2025-05-15T14:29:24.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-08-16T07:29:47.000Z (about 2 months ago)
- Last Synced: 2025-08-18T01:31:34.379Z (about 2 months ago)
- Topics: training-material
- Language: Java
- Size: 103 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Quarkus Pet Store API
This is a Quarkus implementation of the Pet Store API. It's equivalent to the Spring Boot implementation but uses Quarkus framework instead.
## Requirements
- JDK 17 or higher
- Gradle 8.x## Building and Running
You can build and run the application using Gradle:
```bash
./gradlew quarkusDev
```This will start the application in development mode. The API will be accessible at http://localhost:8080/api
## Features
- RESTful API for pets, categories, and tags
- OpenAPI client generation
- Basic security configuration
- SPA support## API Endpoints
- `/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 tagsThe application also supports standard CRUD operations on categories and tags.
## Building a Native Executable
To build a native executable:
```bash
./gradlew build -Dquarkus.package.type=native
```You can then run the native executable with:
```bash
./build/sourcegraph-quarkus-pet-store-runner
```