Skip to main content
New: the Agentic AI Academy, 5 courses on running AI agents in production.Start free →

The legacy API and the screen that uses it

This is the free lesson

Next: One schema in front of the old API

The rest of this course is part of Pro, together with every other course and the ones added later.

$25 a month billed yearly, or $29 month to month

Until 30 November: $210 for the first year, or $14.50 for the first month, with code LAUNCH.

A free account keeps your progress across devices. The paid lessons need Pro.

Code Snippets

Commands of this lessonbash
docker run -d --name petclinic --label course=graphql-mcp --platform linux/amd64 \
  -p 127.0.0.1:9966:9966 springcommunity/spring-petclinic-rest:4.0.2
API=http://127.0.0.1:9966/petclinic/api
until curl -s -o /dev/null $API/vets; do sleep 2; done
docker ps --filter label=course=graphql-mcp --format 'table {{.Names}}\t{{.Image}}\t{{.Status}}'
curl -s $API/owners | jq '.[0]'
curl -s $API/owners | wc -c
curl -s $API/owners | jq -c '[.[] | {firstName, lastName, city, pets: [.pets[].name]}]' | wc -c
curl -s $API/owners/6 | wc -c
curl -s -o /dev/null -w '%{http_code}\n' $API/owners/6/pets
curl -s $API/vets | wc -c