Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/api-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: API Docs

on:
push:
branches: [main]
paths:
- openapi.json
- docs/api/**

permissions:
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: true

jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- name: Prepare site
run: |
mkdir _site
cp openapi.json _site/
cp docs/api/index.html _site/
- uses: actions/upload-pages-artifact@v3
- id: deployment
uses: actions/deploy-pages@v4
90 changes: 90 additions & 0 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,96 @@
"summary": "List scans"
}
},
"/public/v1/scans/{workflow_request_id}/bugs": {
"get": {
"description": "Returns all bugs found in a specific scan identified by its workflow request ID.",
"operationId": "listPublicScanBugs",
"parameters": [
{
"in": "path",
"name": "workflow_request_id",
"required": true,
"schema": {
"type": "string"
}
},
{
"in": "query",
"name": "limit",
"required": false,
"schema": {
"default": 50,
"maximum": 100,
"minimum": 1,
"type": "integer"
}
},
{
"in": "query",
"name": "offset",
"required": false,
"schema": {
"default": 0,
"minimum": 0,
"type": "integer"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"bugs": {
"items": {
"$ref": "#/components/schemas/Bug"
},
"type": "array"
},
"total": {
"type": "integer"
}
},
"required": [
"bugs",
"total"
],
"type": "object"
}
}
},
"description": "OK"
},
"4XX": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiError"
}
}
},
"description": "Client error"
},
"5XX": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiError"
}
}
},
"description": "Server error"
}
},
"security": [
{
"BearerAuth": []
}
],
"summary": "List bugs for a scan"
}
},
"/public/v1/user": {
"get": {
"description": "Returns the authenticated user's email and organization memberships.",
Expand Down
Loading