Skip to content
🏗️

Playground Temporarily Unavailable

Dima is building a proper sandbox on a separate domain.

We'll be back with a much better experience.

BuyDogPurchase a dog by breed with a budget limit. Demonstrates object composition, enum choice, and compound traits.
ListBreedsGet all available dog breeds with optional size filter. Demonstrates array output and enum input.
GetOrderRetrieve order details by ID. Demonstrates nested objects and datetime.
UploadVaccineCardUpload a vaccine card scan for a dog. Demonstrates binary input.
CancelOrderCancel a pending order. Demonstrates operation with minimal output and multiple error paths.
SearchDogsFull-text search across available dogs. Demonstrates array of objects with pagination.
of
of
of
of
of

BuyDog

Purchase a dog by breed with a budget limit. Demonstrates object composition, enum choice, and compound traits.

input
ⓘ
●breedExact breed name, e.g. "labrador"
🔤 stringⓘ
●budgetMaximum price in cents
⚡ integerⓘ
expressNext-day delivery
🔀 booleanⓘ
deliveryAddressWhere to deliver the dog
🧱 objectⓘ
streetStreet name and number
🔤 stringⓘ
cityCity name
🔤 stringⓘ
zipPostal code, not an archive
🔤 stringⓘ
country= USISO 3166-1 alpha-2
🔤 stringⓘ
preferredSizeDesired dog size category
🎚️ enumⓘ
smallUp to 10 kg
medium10–25 kg
largeOver 25 kg
output
ⓘ
orderIdUUID of the created order
🔤 stringⓘ
dogThe matched dog
🧱 objectⓘ
idUUID of the dog
🔤 stringⓘ
nameThe name the shelter gave it
🔤 stringⓘ
breedBreed name
🔤 stringⓘ
birthDateDate of birth
🌍 datetimeⓘ
weightKgWeight at last checkup
〰️ floatⓘ
vaccinatedWhether the dog is vaccinated
🔀 booleanⓘ
totalPriceFinal price including delivery, in cents
〰️ floatⓘ
error
ⓘ
BreedNotFoundNo such breed in our catalog
BudgetExceededAll matching dogs cost more than budget
OutOfStockBreed exists but no dogs available right now
DeliveryUnavailableWe do not deliver to this address
traitⓘ
http/methodPOST
http/path/dogs/buy
auth/typebearer
otel/spanBuyDog
resilience/retry
cli/commandbuy-dog

Apache 2.0 · Built in public · Contributions welcome