List repository rule names with engines, severity and CVSS scores
Request
GET
https://appsec.sourcecraft.tech/v1/rules
Query parameters
|
Name |
Description |
|
engineName |
Type: string | null Optional exact engine name. Example: `` |
|
gitRepo |
Type: string Repository identifier. Accepts either internal repository ID (e.g., 88769874964302633) or public UUID (e.g., 0199140f-4343-7c06-a7e3-b835c305b629). These values can be obtained from the getRepo API (fields: id and uuid). Pattern: Example: |
|
severity |
Type: string | null Optional exact severity: NONE, LOW, MEDIUM, HIGH, CRITICAL. Example: `` |
|
type |
Type: string | null Optional exact engine type. Omit or leave blank for all types. Example: `` |
Responses
200 OK
OK
Body
application/json
{
"rules": [
{
"ruleName": "example",
"engine": "example",
"severity": "example",
"cvssScore": 0.5
}
],
"total": 0
}
|
Name |
Description |
|
rules |
Type: RuleInfoResponse[] Example
|
|
total |
Type: integer |
RuleInfoResponse
|
Name |
Description |
|
cvssScore |
Type: number |
|
engine |
Type: string Example: |
|
ruleName |
Type: string Example: |
|
severity |
Type: string Example: |
Example
{
"ruleName": "example",
"engine": "example",
"severity": "example",
"cvssScore": 0.5
}