Authentication REST API Interface
Resource URL Summary
Create JWT Token
POST <REST Endpoint URI>
HTTP Headers
HTTP Header | Value |
---|---|
Content-Type | application/json |
API Specifics
Create JWT Token
This REST API must authenticate user's credentials. If the credentials passed in are verified, then this API must return a valid JWT, which ServiceMobility will then use to allow access other REST APIs.
URL
POST <REST Endpoint URI>
HTTP Request Body
The HTTP will contain a valid Authentication Object.
HTTP Response
Response Codes
HTTP Code | Description |
---|---|
200 | OK. Credentials were verified and a valid JWT was returned. |
401 | Invalid Logon. |
500 | Server error. An error occurred while processing the request. The HTTP response body should have more details as to the possible cause. |
On success, an HTTP response code of 200 must be returned, and the response body must contain a valid JWT token.
Response Object Format
{ "token": "" }
Response Object Properties
Required properties are in bold.
Property | Description | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
token | The
|