I'm new to REST design so I'd like some pointers here.
Here is what I have so far:
GET /api/users //all users
GET /api/users/123 //specific
GET /api/users/me //get your own profle
POST /api/users/me/session //start new session (login)
DELETE /api/users/me/session //ends the current session (logout)
I'm wondering about the session / login/out stuff here. Am I thinking correct here or should it be designed in some other way to be more REST'ish?
Also, what about register user, should that be:
POST /api/users
Even if it also starts a new session?