From 82d53c51584a1eb833a5a94d89ec74369609a22e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Jes=C3=BAs=20Pe=C3=B1a=20Rodr=C3=ADguez?= Date: Mon, 10 Feb 2025 16:39:41 +0100 Subject: [PATCH] chore: update api schema --- api/src/backend/api/specs/v1.yaml | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/api/src/backend/api/specs/v1.yaml b/api/src/backend/api/specs/v1.yaml index ca5f1a5b07..a950046b34 100644 --- a/api/src/backend/api/specs/v1.yaml +++ b/api/src/backend/api/specs/v1.yaml @@ -4105,6 +4105,38 @@ paths: schema: $ref: '#/components/schemas/ScanUpdateResponse' description: '' + /api/v1/scans/{id}/report: + get: + operationId: scans_report_retrieve + description: Returns a ZIP file containing the requested report + summary: Download ZIP report + parameters: + - in: query + name: fields[scans] + schema: + type: array + items: + type: string + enum: [] + description: endpoint return only specific fields in the response on a per-type + basis by including a fields[TYPE] query parameter. + explode: false + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this scan. + required: true + tags: + - Scan + security: + - jwtAuth: [] + responses: + '200': + description: Report obtained successfully + '423': + description: There is a problem with the AWS credentials /api/v1/schedules/daily: post: operationId: schedules_daily_create