Examples

Every runnable example in this repo, mapped to the chapter it supports.

Every hands-on chapter in this site has a matching runnable example under examples/ in the repo. Most examples ship both a Quarkus (Java) and a FastAPI (Python) implementation against the same OpenAPI contract; a few chapters are single-stack by design (the Quarkus REST and FastAPI deep-dives), and the deployment examples (minikube and OpenShift Local) deploy the same pair of services onto a cluster instead of adding a third stack.

Example What it shows Stacks Chapter
00-prerequisites Toolchain pin: Quarkus + FastAPI health checks over Docker Compose Both Chapter 0
04-contract-first Contract-first anchor: shared OpenAPI/JSON Schema booking resource Both Chapter 4
05-http-methods-idempotency HTTP methods & the idempotency matrix Both Chapter 5
06-content-negotiation Content negotiation & status codes Both Chapter 6
07-partial-updates Partial updates: JSON Merge Patch vs. JSON Patch Both Chapter 7
08-pagination Filtering, projection & pagination Both Chapter 8
10-async-operations Async / long-running operations Both Chapter 10
11-rerunnable-jobs Rerunnable, server-driven scheduled jobs Both Chapter 11
12-hateoas HATEOAS: state-dependent _links Both Chapter 12
13-soft-delete-purge Soft deletion vs. GDPR purge Both Chapter 13
14-versioning API versioning strategies Both Chapter 14
15-range-requests Large binary resources & Range requests Both Chapter 15
16-streaming Three ways to stream a sequence of values incrementally Both Chapter 16
18-concurrency Back-end I/O concurrency against a slow downstream dependency Both Chapter 18
19-http2-http3 REST over HTTP/2 & HTTP/3 Both Chapter 19
20-openapi-depth OpenAPI 3.1 in depth: JSON Schema-native components Both Chapter 20
21-multi-protocol-contracts Multi-protocol contracts: REST + events, one schema Both Chapter 21
22-quarkus-rest-depth Quarkus REST’s build-time, zero-reflection parameter model Quarkus only Chapter 22
23-fastapi-depth FastAPI’s parameter model, the Quarkus deep-dive’s corollary FastAPI only Chapter 23
24-testing The test pyramid for the booking create/read surface Both Chapter 24
25-local-with-docker-compose Full local dev substrate, with an OTel trace end to end Both Chapter 25
26-minikube The same two booking services on a minikube deployment tier Both Chapter 26
27-complete-project One booking service assembling every prior chapter’s pattern Both Chapter 27
99-appendix-a-openshift-crc The same two booking services on OpenShift Local (CRC) Both Appendix A

Running an example

Each directory is self-contained: a README.md, a compose.yaml (or k8s/ / helm/ for the two deployment-tier examples), and a verify.sh (or run-minikube.sh / run-crc.sh) that proves it against the shared contracts/openapi/shipping-api.yaml.

cd examples/04-contract-first
./verify.sh

See Prerequisites & the Lab for the full toolchain setup.