O'Reilly logo

Hands-On Full Stack Web Development with Aurelia by Erikson Haziz Murrugarra Sifuentes, Diego Jose Arguelles Rojas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing the Teams API

Before we start coding, we have to design our API first. The following table contains the documentation for the API we will implement:

Route HTTP Verb Goal Responses
/teams GET List all the teams Http 200 - OK
/teams POST

Create a new team with body

{name: String}

Http 201 - Created
/teams/:id GET Get a single team

Http 200 -OK

Http 404 - Not Found

/teams/:id PUT Update an existing team

Http 200 -OK

Http 404 - Not Found

/teams/:id DELETE Delete an existing team

Http 200 -OK

Http 404 - Not Found

 

Keeping this in mind, let's begin with the fun part!

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required