In this section we're going to build an API to handle user profile feed items
let's start by describing the basic features our API requires our feed API
is going to need to handle the following creating new feed items for
authenticated users updating an existing feed item in case the user makes a typo
or wants to change the content of a feed item they've already posted deleting an
item and viewing other users feed items so what URLs might our API provide well
first and foremost we're going to need a route API to list all the feed items in
the database this will be the forward slash API forward slash feed endpoint
and we'll support two HTTP methods HTTP get for getting a list of all user
feed items and HTTP post for creating a new feed item for the
authenticated profile second we will need a feed item detail API which is the
forward slash API slash feed URL with a specific feed item ID after it
this will support the following methods HTTP GET for getting the details of a specific
feed item this is known as the detail view HTTP put and HTTP patch for
updating a feed item and finally HTTP delete for... you guessed it, deleting
the feed item
so that is what our API should look like let's get started and
build our API