Skip to content

Playground

Build an instruction. See it live. Remove a trait β€” the operation does not change.

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β“˜
street
πŸ”€ stringβ“˜
city
πŸ”€ stringβ“˜
zipPostal code, not an archive
πŸ”€ stringβ“˜
country= USISO 3166-1 alpha-2
πŸ”€ stringβ“˜
preferredSizeDesired dog size category
🎚️ enumβ“˜
small
medium
large
output
β“˜
orderId
πŸ”€ stringβ“˜
dogThe matched dog
🧱 objectβ“˜
id
πŸ”€ stringβ“˜
nameThe name the shelter gave it
πŸ”€ stringβ“˜
breed
πŸ”€ stringβ“˜
birthDate
🌍 datetimeβ“˜
weightKgWeight at last checkup
〰️ floatβ“˜
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