I am not saying that I prefer plurals, but if you intend to use plurals, you can reconcile your special unities as follows:
GET /api/forms/login is a GET /api/forms/login form. Using this perspective, login is the identifier of only one form in the form collection.
POST /api/forms/login is the POST /api/forms/login form.
GET /api/users/{id}/profile retrieves the profile of the specified user. This works in many cases, but doesnβt work for anonymity sites where the userβs identity must remain hidden even when viewing their profile, which can leave their user ID and real name.
GET /api/profiles/{id} separates the profile object from the user ID and will work for the site of anonymity.
Alternatively, you can write GET /api/users/current/profile or GET /api/sessions/current/profile , which skips a specific identifier, for example, in your message, since the server will respond with content related to the current user.
jbuhacoff
source share