Resource URL Summary Panel |
---|
borderColor | grey |
---|
bgColor | whitesmoke |
---|
borderStyle | solid |
---|
| Description POST /createjwt
|
Supported HTTP MethodsMethod | Description |
---|
POST | If the credentials passed in are verified, then this API will return a valid JWT that can then be used to access other REST APIs. |
HTTP Header | Value |
---|
Content-Type | application/json |
HTTP BodyThis REST API only support the JSON body format. Code Block |
---|
language | js |
---|
title | JSON Format |
---|
| {
"username":"",
"password":""
} |
Body PropertiesProperty | Description |
---|
username | A valid user name requesting a JWT | password | A valid password associated with the above username |
HTTP ResponseResponse CodesHTTP 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. |
Response Body on Success Code Block |
---|
| {
"token": ""
} |
The token property, in the returned response should be used for all subsequent REST API calls. |