Search Application Token Account
1 min
POST
http://localhost/aioc-rest-web/rest/aapm/searchAapmAccounts
Header Parameters
- x-xsrf-tokenstringDefault{{x-xsrf-token}}
Body Parameters
- bodyobjectDefault{ "applicationName":"" }
Responses
200
curl
curl --request POST \
--url http://localhost/aioc-rest-web/rest/aapm/searchAapmAccounts \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-xsrf-token: {{x-xsrf-token}}' \
--data '"{\r\n \"applicationName\":\"\"\r\n}"'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
myHeaders.append("x-xsrf-token", "{{x-xsrf-token}}");
var raw = JSON.stringify("{\r\n \"applicationName\":\"\"\r\n}");
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("http://localhost/aioc-rest-web/rest/aapm/searchAapmAccounts", 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("http://localhost/aioc-rest-web/rest/aapm/searchAapmAccounts")
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"] = "{{x-xsrf-token}}"
request.body = JSON.dump("{\r\n \"applicationName\":\"\"\r\n}")
response = http.request(request)
puts response.read_body
python
import requests
import json
url = "http://localhost/aioc-rest-web/rest/aapm/searchAapmAccounts"
payload = json.dumps("{\r\n \"applicationName\":\"\"\r\n}")
headers = {
'accept': 'application/json',
'content-type': 'application/json',
'x-xsrf-token': '{{x-xsrf-token}}'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200