M
M
Maxim Malikov2016-04-19 11:54:34
User identification
Maxim Malikov, 2016-04-19 11:54:34

What should be the url for REST authentication?

Based on this information:

Resource names must be nouns - avoid verbs as resource names. This gives more clarity. To specify a verb in a request, use the HTTP methods.
www.restapitutorial.ru/lessons/restquicktips.html

HTTP verbs form the main part of the "single interface" that restricts and provides the ability to perform actions on the resource noun.
www.restapitutorial.ru/lessons/httpmethods.html

When you decide what resources will be in your system, call them nouns, as opposed to verbs, or actions. In other words, the URI must refer to a resource, not an action. Another distinguishing factor is that nouns have properties that verbs do not have.
www.restapitutorial.ru/lessons/restfulresourcenami...

Url for authentication cannot look like: POST /users/ login url carries the action - login .
What then will be the correct url for authorization? POST /token ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2016-04-19
@OxGroup

If we talk about oAuth, then the most logical thing is:
/ authorize or / auth
and / access_token / / token for the token

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question