...
{ | Field | Description |
“status”: “success“success”, | Request successful | |
“data”: { | Response data | |
“user_id”: “<user Id>” | User ID (int) | |
“user_secret”:”<user secret>” | A base64 encoded 32 byte secret | |
} | ||
} |
...
{ | Field | Description |
“status”: “success“success”, | Request successful | |
“data”: { | Response data | |
"email": "<email>", | The user email | |
"password": "<new password>” | The new generated password | |
} | ||
} |
GET all users or a specific one
This API allows retrieving the list of users:
Verb | GET |
Resource | /api/datamanagement/v1/User(/{id}) |
Content type | application/x-www-form-urlencoded |
Body | N/A |
Response code
The expected response code is 200
Response data
The response data is a JSON object with the following structure:
{ | Field | Description |
“statusCode”: 200, | Request successful | |
“User”: [ | User(s) | |
{ | ||
“id”: <user Id> | User ID (int) | |
"name": "<name>", | ||
"email": "<email>", | ||
"email_verified_at": null, | ||
"password": "<password>", | Blowfish hashed | |
"remember_token": null, | ||
"created_at": null, | ||
"updated_at": null | ||
}, | ||
…. | ||
] | ||
} |
PATCH a user
This API allows updating an existing user:
Verb | PATCH |
Resource | /api/datamanagement/v1/User/{id} |
Content type | application/x-www-form-urlencoded |
Body | N/A |
Response code
The expected response code is 200
Response data
N/A
DELETE a user
This API allows updating an existing user:
Verb | DELETE |
Resource | /api/datamanagement/v1/User/{id} |
Content type | application/x-www-form-urlencoded |
Body | N/A |
Response code
The expected response code is 200
Response data
N/A