Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

General Information

...

ServiceAPIMethod
urac/admin/users/countGET


Data Model: Users

Workflow: Count Users Flow

Input

...

Type: application/json
NameSourceMandatoryTypeSpecial FormatDescription


Output

...

Valid Response

Code Block
languagejs
titleValid Response Sample
{
	"result": true,
	"data": {
		"count": 12
	}
}


Invalid Response

Code Block
languagejs
titleError Response Sample
{
    "result":false,
    "errors":{
        "codes":[400],
        "details":[
            {
                "code": 400,
                "message": "Database connection error"
            }
        ]
    }
}



Error Codes



Code
Description
400
Database connection error


Example (CURL)

...

Request

Code Block
languagebash
titleCalling List Users API
 > CURL -X GET http://127.0.0.1:4000/urac/admin/users/count

Response

Code Block
languagejs
titleList Users API response
{
	"result": true,
	"data": {
		"count": 12
	}
}