Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SingIn - session[PUT] - shouldn't it be [POST]? #32

Open
hepiyellow opened this issue Nov 7, 2016 · 0 comments
Open

SingIn - session[PUT] - shouldn't it be [POST]? #32

hepiyellow opened this issue Nov 7, 2016 · 0 comments

Comments

@hepiyellow
Copy link

According to this:
http://restcookbook.com/HTTP%20Methods/patch/
"Also, the PUT method is idempotent. PUTting the same data multiple times to the same resource, should not result in different resources, while POSTing to the same resource can result in the creation of multiple resources."

Since the response of this request would have the Created resource (the session), which includes a sessionId. and I think multiple requests would end up with different sessionIds. So using PUT is wrong, and it should be a POST.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant