Complete the code to name the resource correctly in a REST API endpoint.
GET /[1]In REST API design, resource names should be nouns, usually plural. So users is correct.
Complete the code to correctly name the resource for a single item in a REST API endpoint.
GET /users/[1]To get a single user, the endpoint uses the user's ID as a path parameter, e.g., /users/123.
Fix the error in the resource naming by completing the code with the correct noun-based resource name.
POST /[1]POST requests should be sent to the collection resource, which is a plural noun like users.
Fill both blanks to correctly name the resource and its identifier in the REST API endpoint.
DELETE /[1]/[2]
The resource is posts (plural noun), and 789 is an example ID to delete a specific post.
Fill all three blanks to create a correct REST API endpoint for updating a resource.
PUT /[1]/[2]/[3]
The endpoint updates the profile sub-resource of user 123 in the users collection.