Design a REST API

Talk it through out loud with your AI coach.

The problem

  • easy

You're building the API for a simple to-do app where users have lists and lists have tasks. Explain how you'd lay out the URLs and HTTP methods in a RESTful way to create, read, update and delete lists and tasks.

What a strong answer covers

  • What the resources are and how they appear in the URLs.
  • Which HTTP method fits each kind of action.
  • The difference between replacing an item and changing part of it.
  • How a client fetches one item or a filtered list.

Common mistake: Putting actions into the URLs, such as a create-task path, instead of using methods on resources.

Knowing this is half of it. Saying it clearly out loud is the part the coach helps you practise.

Practise it out loud