A child resource nested under the first, with a {id} segment in its path — the shape every "get one item" endpoint takes.
"Get one item by id" is one of the most common shapes a REST API takes, and it's built from the same two pieces as everything else — a resource and a method — just nested one level deeper.
Locked
This exercise builds on Creating a REST API — run synth & validate there until every assertion passes, then this code will unlock.
Go to Creating a REST API