What would be the “correct HTTP verb” to use when developing a RESTful API to handle login information? This API would be accessible from various devices/platforms – mobile app, desktop web app, desktop native app, etc.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I assume that by API Login you mean a way to authenticate an API user and any calls to your API endpoints.
You could probably use OAuth or Basic Authentication to do that or let say you have an API endpoint at
api\authenticate. The caller wouldPOSTto this endpoint with userID and password or some API key. The service would then return a cookie or authentication token that would be sent with every call to other API endpoints. The HP Cloud Identity service works pretty much the same way.