Role applications (roleapps)
Requests
HTTP verb | Endpoint | Description |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Creating a new role-based application
Request
Field Description: roleapp entity
POST /rest/v1/domain/roleapps HTTP/1.1
Content-Type: application/json; charset=utf-8
roleapp entity
Response
Field Description: roleapp entity
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"id": "68f99ca9-016c-d352-e02f-50e54938780c",
"title": "First app",
"folder": "roleapp1",
"archive": {
"_links": {
"self": {
"href": "/rest/v1/domain/roleapps/68f99ca9-016c-d352-e02f-50e54938780c/attachment"
}
}
},
"roles": [
"test"
],
"svcscriptcode": "test_123_api",
"opts": {
"title": "",
"comment": ""
},
"ext": {
"ct": "2020-08-27T13:45:19.66Z",
"lwt": "2020-08-27T13:45:19.66Z"
}
}
Getting a list of role-based applications
Request
Name | Type | Description |
---|---|---|
|
|
Filter by field values. |
|
|
List of fields to output. Available fields for output: id, title, folder, archive, roles, svcscriptcode, ext.lwt, ext.ct. |
|
|
Offset in the list of resources to be issued. |
|
|
The maximum number of resources in the list. |
|
|
The sort order of the resources in the list. |
|
|
Conversion to flat form of composite fields. |
GET /rest/v1/domain/roleapps?offset=0&limit=2 HTTP/1.1
Response
Field Description: roleapp entity
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
[
{
"id": "68f99ca9-016c-d352-e02f-50e54938780c",
"title": "Technical support employee’s workstation",
"folder": "roleapp1",
"archive": {
"_links": {
"self": {
"href": "/rest/v1/domain/roleapps/68f99ca9-016c-d352-e02f-50e54938780c/attachment"
}
}
},
"roles": [
"support"
],
"svcscriptcode": "support_api",
"opts": {
"title": "",
"comment": "",
"recv_timeout": 10,
"visible": true,
"attachment_info": {
"hasha": "md5;9A29CC52D6BC1EE0D4417AB3C604F3E6",
"mtime": "2021-05-11T10:37:26Z",
"size": 37855
}
},
"ext": {
"ct": "2021-04-27T13:45:19.66Z",
"lwt": "2021-05-11T10:37:26.12Z"
}
},
{
"id": "cdcfaf50-016c-d354-31d5-50e54938780c",
"title": "Test application",
"folder": "roleapp2",
"archive": {},
"roles": [
"test"
],
"svcscriptcode": "test",
"opts": {
"title": "",
"comment": "",
"recv_timeout": 0,
"visible": true,
"attachment_info": {}
},
"ext": {
"ct": "2019-08-27T13:46:46.10Z",
"lwt": "2019-08-27T13:46:46.10Z"
}
}
]
Retrieving role application data
Request
Name | Type | Description |
---|---|---|
|
|
A list of fields to output. |
|
|
Conversion to flat form of composite fields. |
GET /rest/v1/domain/roleapps/68f99ca9-016c-d352-e02f-50e54938780c HTTP/1.1
Response
Field Description: roleapp entity
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"id": "68f99ca9-016c-d352-e02f-50e54938780c",
"title": "Technical support employee’s workstation",
"folder": "roleapp1",
"archive": {
"_links": {
"self": {
"href": "/rest/v1/domain/roleapps/68f99ca9-016c-d352-e02f-50e54938780c/attachment"
}
}
},
"roles": [
"support"
],
"svcscriptcode": "support_api",
"opts": {
"title": "",
"comment": "",
"recv_timeout": 10,
"visible": true,
"attachment_info": {
"hasha": "md5;9A29CC52D6BC1EE0D4417AB3C604F3E6",
"mtime": "2021-05-11T10:37:26Z",
"size": 37855
}
},
"ext": {
"ct": "2021-04-27T13:45:19.66Z",
"lwt": "2021-05-11T10:37:26.12Z"
}
}
Changing role application data
Fields prohibited for modification: id
Request
Field Description: roleapp entity
PATCH /rest/v1/domain/roleapps/68f99ca9-016c-d352-e02f-50e54938780c HTTP/1.1
Content-Type: application/json; charset=utf-8
roleapp entity
Response
Field Description: roleapp entity
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"id": "68f99ca9-016c-d352-e02f-50e54938780c",
"title": "Technical support employee’s workstation",
"folder": "roleapp1",
"archive": {
"_links": {
"self": {
"href": "/rest/v1/domain/roleapps/68f99ca9-016c-d352-e02f-50e54938780c/attachment"
}
}
},
"roles": [
"support"
],
"svcscriptcode": "support_api",
"opts": {
"title": "",
"comment": "",
"recv_timeout": 10,
"visible": true
},
"ext": {
"ct": "2019-08-27T13:45:19.66Z",
"lwt": "2019-08-27T13:45:19.66Z"
}
}
Deleting a role application
Searching for the role application identifier
Searches the resource for the specified key, returns the identifier(s) to build the endpoint.
Key fields to search for: id
Request
LOOKUP /rest/v1/domain/roleapps HTTP/1.1
Content-Type: application/json; charset=utf-8
"68f99ca9-016c-d352-e02f-50e54938780c"
Response
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
[
"68f99ca9-016c-d352-e02f-50e54938780c"
]
HTTP/1.1 404 Not Found
Content-Type: application/json; charset=utf-8
{
"error_code": 1404,
"error_message": "Lookup failed"
}