Aan de slagGa gratis aan de slag

Build an Albums Endpoint

The Music Analytics API you've been building now includes the Chinook database, connected via MCP. Your next feature: an endpoint that returns all albums by a specific artist — useful for artist profile pages or music discovery features.

Create a new db_routes.py Blueprint with this database-backed endpoint and register it with the existing app.py — keeping a clean separation of concerns.

Deze oefening maakt deel uit van de cursus

Software Development with Claude Code

Cursus bekijken

Oefeninstructies

  • Start Claude Code with claude.
  • Ask Claude to create a new db_routes.py Blueprint with an endpoint at /artists/<artist_id>/albums that returns all albums by a specific artist as JSON from chinook.db, and register it with app.py.
  • When done, type /exit to exit Claude Code.

Praktische interactieve oefening

Zet theorie om in actie met een van onze interactieve oefeningen.

Begin met trainen