I am a beginner in REST API development, I read some docs online and now I'm developing a REST API for 2 platforms with different kinds of users.
Which is the most efficient way to choose URL for authentication endpoints in REST API development?
One of the very first rule is never use verbs in REST API URL so these URLs are not correct.
- /auth/resetPassword
- /auth/refreshToken
- /auth/login
- ...
Reset, refresh, login are all verbs. Are this URLs corrects? What is a better choose?
Then if I have more then one kind of user is correct to use these?
- /auth/customers/login
- /auth/admins/login
- etc.
Login is a verb, is it correct? Then /auth/:entity/ don't seems to me very right for what I read about REST API.