General Information
...
Service | API | Method |
---|---|---|
urac | /join | POST |
Data Model: %Link to Data Model%Models: Users, Tokens
Workflow: %Link to Architecture Page%
...
Name | Source | Mandatory | Type | Special Format | Description |
---|---|---|---|---|---|
username | Body | YES | String | alphanumeric with _ , - characters only | |
password | Body | YES | String | N/A | |
firstName | Body | YES | String | N/A | |
lastName | Body | YES | String | N/A | |
Body | YES | String | N/A |
Output
...
Valid Response
Code Block | ||||
---|---|---|---|---|
| ||||
{ "result": true, "data": { "..." } } |
Invalid Response
Code Block | ||||
---|---|---|---|---|
| ||||
{ "result":false, "errors":{ "codes":[400402], "details":[ { "code":400402, "message":"ProblemUser withaccount the provided passwordalready exists." } ] } } |
Error Codes
Code | Description |
---|---|
402 | User account already exists. |
403 | Database Error |
Example (CURL)
...
Code Block | ||||
---|---|---|---|---|
| ||||
> CURL -X POST http://127.0.0.1:4000/urac/...join -d 'username=john&password=johnpassword&firstName=John&lastName=Doe&email=johndoe@domain.com' |
Response
Code Block | ||||
---|---|---|---|---|
| ||||
{ "result": true, "data": { "_id": "57063608622c47b5c097d19b", "..." }"819b0aed-edd8-47d5-ada0-9e5f93cb8248" } |