- You are asked to build an API for a photo app.
- You need to create the routes according to REST for the following actions:
-
The end-user wants to see a list of photos
-
The end-user wants to see a particular photo
- The end-user wants to upload a new photo
- The end-user wants to update an existing photo
-
The end-user wants to see a list of user profiles
-
The end-user wants to see a specific profile
-
The end-user wants to see a list of the photos for a specific profile
You need to write the route with a verb and a path. You don't need to implement the functionality.
For example, to get a list of users, you just need to write GET '/users'
. No need to write the code to get the actual users.