doc/development/rails_endpoints/_index.md
Rails Endpoints are used by different GitLab components, they cannot be used by other consumers. This documentation is intended for people working on the GitLab codebase.
These Rails Endpoints:
We are evaluating a new approach for documenting Rails endpoints. Check out the Feedback Issue and feel free to share your thoughts, suggestions, or concerns. We appreciate your participation in helping us improve the documentation!
Static application security testing (SAST) checks your source code for known vulnerabilities. When SAST is enabled on a project these endpoints are available.
Get a list of existing code quality Findings, if any, sorted by files.
GET /projects/:id/merge_requests/:merge_request_iid/codequality_mr_diff_reports.json
Response:
{
"files": {
"index.js": [
{
"line": 1,
"description": "Unexpected 'debugger' statement.",
"severity": "major"
}
]
}
}
Get a list of new, resolved, and existing code quality Findings, if any.
GET /projects/:id/merge_requests/:merge_request_iid/codequality_reports.json
{
"status": "failed",
"new_errors": [
{
"description": "Unexpected 'debugger' statement.",
"severity": "major",
"file_path": "index.js",
"line": 1,
"web_url": "https://gitlab.com/jannik_lehmann/code-quality-test/-/blob/ed1c1b3052fe6963beda0e416d5e2ba3378eb715/noise.rb#L12",
"engine_name": "eslint"
}
],
"resolved_errors": [],
"existing_errors": [],
"summary": { "total": 1, "resolved": 0, "errored": 1 }
}