Rapid Models Prioritization Module API Definition
This API definition facilitates auditing static analysis alerts using classifiers, optional adaptive heuristics, and alert prioritization. The API enables jump-starting labeled datasets using test suites. It is intended to enable a wide range of users (with widely varying datasets, static analysis tools, machine learning expertise, and amount of labeled data) to benefit from using classifiers and sophisticated prioritization to automatically triage static analysis alerts.
Version: 0.0.4
BasePath:
Software Engineering Institute - Copyright (c) 2007-2019 Carnegie Mellon University. All Rights Reserved.
http://apache.org/licenses/LICENSE-2.0.html
Access
[ Jump to Models ]
Table of Contents
Provides Server Status (getStatus)
Request headers
Return type
Example data
Content-Type: application/json
{
"request_id" : "request_id",
"message" : "message"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
Server Is Running
request_token
400
Database Connection Lost
default
Unexpected Error
error
Create a new prioritization scheme (createPrioritization)
Consumes
This API call consumes the following media types via the request header:
Request body
Body Parameter — Prioritization scheme to create
Request headers
Return type
Example data
Content-Type: application/json
{
"priority_scheme_id" : "priority_scheme_id",
"priority_scheme_name" : "priority_scheme_name",
"request_id" : "request_id"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK, Created
create_prioritization_response
400
Invalid Request
401
Global and Remote Flags Cannot Both be True
405
Cannot Create Prioritization Scheme
default
Unexpected Error
error
Up
delete /priorities/{priority_scheme_id}/projects/{project_id}
Delete a specific prioritization scheme (deletePrioritization)
Path parameters
priority_scheme_id (required)
Path Parameter — The id of the prioritization scheme
project_id (required)
Path Parameter — The id of the project associated with this project
Consumes
This API call consumes the following media types via the request header:
Request headers
Return type
Example data
Content-Type: application/json
{
"request_id" : "request_id",
"message" : "message"
}
Responses
200
OK
request_token
400
Invalid Request
405
Cannot Delete Prioritization Scheme
default
Unexpected Error
error
Up
get /priorities/{priority_scheme_id}/projects/{project_id}
Retrieve a specific prioritization scheme (getPrioritization)
Path parameters
priority_scheme_id (required)
Path Parameter — The id of the prioritization scheme
project_id (required)
Path Parameter — The id of the project associated with this project
Request headers
Return type
Example data
Content-Type: application/json
{
"priority_scheme_name" : "priority_scheme_name",
"is_remote" : true,
"formula" : "formula",
"is_global" : true,
"request_id" : "request_id",
"weighted_columns" : "{}"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
priority_scheme_data
400
Invalid Request
404
Prioritization Scheme Unavailable
default
Unexpected Error
error
List all prioritization schemes (listPrioritizations)
Consumes
This API call consumes the following media types via the request header:
Request headers
Return type
Example data
Content-Type: application/json
{
"priority_list" : [ {
"priority_scheme_id" : "priority_scheme_id",
"priority_scheme_name" : "priority_scheme_name"
}, {
"priority_scheme_id" : "priority_scheme_id",
"priority_scheme_name" : "priority_scheme_name"
} ],
"request_id" : "request_id"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
prioritization_list
404
Prioritization Schemes Not Found
default
Unexpected Error
error
Up
put /priorities/{priority_scheme_id}
Update an existing prioritization scheme (updatePrioritization)
Path parameters
priority_scheme_id (required)
Path Parameter — The id of the prioritization scheme
Consumes
This API call consumes the following media types via the request header:
Request body
Body Parameter — Prioritization Scheme to update
Request headers
Return type
Example data
Content-Type: application/json
{
"request_id" : "request_id",
"message" : "message"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
request_token
400
Invalid Request
404
Prioritization Scheme Unavailable
405
Cannot Update Prioritization Scheme
default
Unexpected Error
error
[ Jump to Methods ]
Table of Contents
create_prioritization_data -
create_prioritization_response -
error -
prioritization_list -
prioritization_list_priority_list -
priority_scheme_data -
request_token -
update_priority_data -
priority_scheme_name
project_ids (optional)
formula
weighted_columns (optional)
is_global
is_remote
priority_scheme_id (optional)
priority_scheme_name (optional)
request_id (optional)
request_id (optional)
priority_list (optional)
priority_scheme_id (optional)
priority_scheme_name (optional)
priority_scheme_name
formula
weighted_columns (optional)
is_global (optional)
is_remote (optional)
request_id (optional)
request_id (optional)
message (optional)
update_project
project_ids (optional)
priority_scheme_name
formula (optional)
weighted_columns (optional)