- Checkmarx Documentation
- Checkmarx SAST
- SAST API Guide
- CXSAST (REST) API
- CxSAST (REST) API v3
- GENERAL
GENERAL
Gets the full description of the query
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json;v=3.0"},
"Authorization": []string{"Bearer {access-token}"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "https://10.32.9.160/cxrestapi/help/queries/{queryid}/cxDescription", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
URL obj = new URL("https://10.32.9.160/cxrestapi/help/queries/{queryid}/cxDescription");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
const headers = {
'Accept':'application/json;v=3.0',
'Authorization':'Bearer {access-token}'
};
fetch('https://10.32.9.160/cxrestapi/help/queries/{queryid}/cxDescription',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
import requests
headers = {
'Accept': 'application/json;v=3.0',
'Authorization': 'Bearer {access-token}'
}
r = requests.get('https://10.32.9.160/cxrestapi/help/queries/{queryid}/cxDescription', headers = headers)
print(r.json())
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json;v=3.0',
'Authorization' => 'Bearer {access-token}'
}
result = RestClient.get 'https://10.32.9.160/cxrestapi/help/queries/{queryid}/cxDescription',
params: {
}, headers: headers
p JSON.parse(result)
GET /queries/{queryid}/cxDescription
Parameters
Name | In | Type | Required | Description |
|---|---|---|---|---|
queryid | path | integer(int64) | true | Unique Id of the query |
Responses
Status | Meaning | Description | Schema |
|---|---|---|---|
200 | OK | string |
To perform this operation, you must be authenticated by means of one of the following methods: Bearer ( Scopes: sast_api )
In this section: