I’m planning to make a WCF rest api but I am confused about something.
I get how a rest api would work for getting or registering a user…
GetUser
GET
/user/username
Register user
POST
/user
[POST DETAILS]
What I don’t get is user sign in. Logically it should be on the ‘User’ endpoint but it doesn’t really work with the CRUD model.
Should it just be on it’s own /login endpoint? And if so, should it be a GET or POST?
It should be on a
/loginendpoint: