Goal: Build and test your own API. Once you've completed the basic functionality for your API, review the lesson Further Exploration with APIs to learn about additional API-building objectives.
Discuss possible answers to these common C#-specific interview questions. You can format this as a mock interview or brainstorm answers as a team:
For the first half of the section, you'll build your own API. You should also use Postman to manually test your calls.
For the second half of the section, you'll build an application that communicates with one of the APIs either you or your peers built in class during the first half of the section. You’ll also continue to build out and refactor the API you're working with. As you build your user stories, keep in mind that your primary API users will be developers implementing the API into their own applications.
You may work with a pair for the entire course section or split the section into two. This means 2 two-day projects for full-time students, or 2 week-long projects for part-time students.
On short weeks, you'll spend most of your time on building out the API and pursuing further exploration. At least one class will be set aside for building an application that communicates with your API.
Select an API to build from the options below.
Build an API that allows users to GET
and POST
reviews about various travel destinations around the world. Here are some user stories to get started. Note that you will have to create custom endpoints for some of these user stories.
GET
and POST
reviews about travel destinations.GET
reviews by country or city.PUT
and DELETE
reviews, but only if I wrote them. (Start by requiring a user_name
param to match the user_name
of the author on the message. You can always try authentication later.)Create a message board service that can be accessed via your API. Users should be able to GET
and POST
messages for specific message boards. Note that you will have to create custom endpoints for some of these user stories.
GET
all messages related to a specific group.POST
messages to a specific group.PUT
and DELETE
messages, but only if I wrote them. (Start by requiring a user_name
param to match the user_name
of the author on the message. You can always try authentication later.)APIs aren't just used for data interaction and manipulation. They can also be used for computation as well. Build a database-centered or computation API around an area of interest to you. Make sure you write your own user stories first.
Go to the upcoming lesson called Further Exploration with APIs to learn about additional API-building objectives.
Lesson 13 of 22
Last updated April 6, 2022