General Information
...
Service | API | Method | Data Models | Workflow |
---|---|---|---|---|
urac | /admin/group/listgroups | GET |
...
...
N/A |
Input
...
Type: application/json
...
Output
This API doesn't require input.
Output
...
Response
SOAJS has a unified response. Check out this link to understand more the schema of SOAJS response
Valid Response
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{ " result": true, " data": [] } |
Invalid Response
Code Block | ||||
---|---|---|---|---|
| ||||
{ { _id: "result":false5d95da834dcd8a4d1d822ef5", code: "AAAA", "errors":{ name: "Unit test", description: "Added by unit test importer.", "codes":[415],config: { "details":[allowedPackages: { {DSBRD: [ "code":415,DSBRD_DEVOP" ] "message":"Unable to find group."}, allowedEnvironments: { } DEV: { ] } } |
...
Code | Description |
---|---|
415 | Unable to find group. |
...
Request
Code Block | ||||
---|---|---|---|---|
| ||||
> CURL -X GET http://127.0.0.1:4000/urac/admin/group/list |
Response
Code Block | ||||
---|---|---|---|---|
| ||||
{ } "result": true, "data": [ } {}, "_id": ObjectId('5d382063be668052c9cab94e'),tenant: { id: "locked": true,5d9321f8b40e09438afbd0c9", "code": "ownertest", "owner" pin: true,{ "name": "Owner Group", "description"code: "1235"this, is the owner group that owns the dashboard", "config": {allowed: true } "allowedPackages": {} } ] } |
Invalid Response
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{ "result":false, "DSBRDerrors":{ [ "codes":[602], "DSBRD_OWNER"details":[ { ] } }, "code":602, "tenant": { "message"id:"Model error: "5c0e74ba9acc3c5a84a51259",+ %model_error%" "code": "TES0" } } } ] } } |
Response schema
Follow this link to check out the response JSON Schema
SOAJS Error Codes
Code | Description |
---|---|
400 | Business logic required data are missing |
602 | Model error: + %model_error% |