Search Request With Paging
1 min
POST
{{url}}/aioc-rest-web/rest/rap/searchRequestWithPaging
Path Parameters
- urlstringDefaulturl
Header Parameters
- X-XSRF-TOKENstringDefault{{csrftoken}}
Body Parameters
- bodyobjectDefault{ "firstResult": 0, "maxResult": 10000 }
Responses
200
curl
curl --request POST \
--url {{url}}/aioc-rest-web/rest/rap/searchRequestWithPaging \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-xsrf-token: {{csrftoken}}' \
--data '"{\r\n \"firstResult\": 0,\r\n \"maxResult\": 10000\r\n}"'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
myHeaders.append("x-xsrf-token", "{{csrftoken}}");
var raw = JSON.stringify("{\r\n \"firstResult\": 0,\r\n \"maxResult\": 10000\r\n}");
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("{{url}}/aioc-rest-web/rest/rap/searchRequestWithPaging", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("{{url}}/aioc-rest-web/rest/rap/searchRequestWithPaging")
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request["x-xsrf-token"] = "{{csrftoken}}"
request.body = JSON.dump("{\r\n \"firstResult\": 0,\r\n \"maxResult\": 10000\r\n}")
response = http.request(request)
puts response.read_body
python
import requests
import json
url = "{{url}}/aioc-rest-web/rest/rap/searchRequestWithPaging"
payload = json.dumps("{\r\n \"firstResult\": 0,\r\n \"maxResult\": 10000\r\n}")
headers = {
'accept': 'application/json',
'content-type': 'application/json',
'x-xsrf-token': '{{csrftoken}}'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
[
{
"dbId": "262a1d84-552f-43d0-9757-ab06b21fc902",
"timeByDay": null,
"userInfo": [
{
"id": "bf352193-dfb5-483f-ae0f-803dcdf623d8",
"requestId": "262a1d84-552f-43d0-9757-ab06b21fc902",
"userInfoId": "f8ea68b3-fe96-4965-a295-b9e5ec0b3222",
"userInfoEid": "user-all-001",
"userType": "USER"
}
],
"deviceInfo": [
{
"id": "5b46d333-9e7f-4af2-96d9-f51ca81a673f",
"requestId": "262a1d84-552f-43d0-9757-ab06b21fc902",
"deviceInfoId": "54826eea-f5c1-446f-94ac-fbb9d2685e06",
"deviceInfoEid": "10.20.42.129-Linux1 - 10.20.42.129",
"deviceType": "DEVICE"
},
{
"id": "876cf753-3286-4a66-9e6a-bbb6f3cc2558",
"requestId": "262a1d84-552f-43d0-9757-ab06b21fc902",
"deviceInfoId": "dbcd3354-5fde-4de9-8305-f3ebde5cda29",
"deviceInfoEid": "10.20.42.55-LDAP - 10.20.42.55",
"deviceType": "DEVICE"
}
],
"createdBy": {
"id": "25e53f47-ce66-4df2-9abc-6961dc668264",
"eid": "admin"
},
"startTime": 17391937820000,
"endTime": 17391937820001,
"isSMSEnabled": true,
"alreadyAssignedCheck": false
}
]