Created
April 30, 2014 19:50
-
-
Save vixvix/21a5ecad0fd3970d896f to your computer and use it in GitHub Desktop.
RESTful authentication
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET /session/new gets the webpage that has the login form | |
POST /session authenticates credentials against database | |
DELETE /session destroys session and redirect to / | |
GET /users/new gets the webpage that has the registration form | |
POST /users records the entered information into database as a new /user/xxx | |
GET /users/xxx // gets and renders current user data in a profile view | |
POST /users/xxx // updates new information about user | |
http://stackoverflow.com/questions/7140074/restfully-design-login-or-register-resources |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment