General Information
...
Service | API | Method |
---|
urac | /admin/users/count | GET |
Data Model: Users
Workflow: Count Users Flow
Input
...
Type: application/json
Name | Source | Mandatory | Type | Special Format | Description |
---|
Output
...
Valid Response
Code Block |
---|
language | js |
---|
title | Valid Response Sample |
---|
|
{
"result": true,
"data": {
"count": 12
}
} |
Invalid Response
Code Block |
---|
language | js |
---|
title | Error Response Sample |
---|
|
{
"result":false,
"errors":{
"codes":[400],
"details":[
{
"code": 400,
"message": "Database connection error"
}
]
}
} |
Error Codes
| |
---|
400 | Database connection error |
Example (CURL)
...
Request
Code Block |
---|
language | bash |
---|
title | Calling List Users API |
---|
|
> CURL -X GET http://127.0.0.1:4000/urac/admin/users/count |
Response
Code Block |
---|
language | js |
---|
title | List Users API response |
---|
|
{
"result": true,
"data": {
"count": 12
}
} |