General Information
...
Service | API | Method |
---|
urac | /join/validate | GET |
Data Model: %Link to Data Model%
Workflow: %Link to Architecture Page%
Input
Models: Users, Tokens
workflow: Validate Join Flow
Input
...
Type: application/json
Name | Source | Mandatory | Type | Special Format | Description |
---|
Body | ...
Generated by Urac and email to user after registration is completed. |
Output
...
Valid Response
Code Block |
---|
language | js |
---|
title | Valid Response Sample |
---|
|
{
"result": true,
"data": {
"..."
}
} |
...
Invalid Response
Code Block |
---|
language | js |
---|
title | Error Response Sample |
---|
|
{
"result":false,
"errors":{
"codes":[400406],
"details":[
{
"code":400406,
"message":"ProblemInvalid withor thetoken providedhas passwordexpired."
}
]
}
} |
Error Codes
400 | Database Error |
---|
406 | Invalid or token has expired. |
407 | Problem validating Request. Please try again. |
Example (CURL)
...
Request
Code Block |
---|
language | bash |
---|
title | Calling YOUR Validate API |
---|
|
> CURL -X POSTGET http://127.0.0.1:4000/...urac/join/validate?token=abcdef |
Response
Code Block |
---|
language | js |
---|
title | YOUR Validate API response |
---|
|
{
"result": true,
"data": {
"_id": "57063608622c47b5c097d19b",
"..."
}true
} |