Post SQL query to OIPA
post
/PASService/rest/services/queries
Inserts a SQL query in the database
Request
Root Schema : schema
Type:
stringResponse
Supported Media Types
- application/json
Default Response
successful operation
Examples
This example describes how to insert a SQL query in the database.
Example cURL Command
Use the following cURL command to submit a request on the REST resource:
curl -X POST -H "Accept: application/json" -u username:password "server:port/PASService/rest/services/groupCustomers"
Example Request Body
The following shows an example of the request body in JSON format:
"{
"applicationName": "test",
"queries": [
{
"queryName": "testQuery",
"queryValue": "select * from asPolicy"
}
]
}"