From 7895137245ec729b6dfa128676ba772223cb73b4 Mon Sep 17 00:00:00 2001 From: solimant Date: Tue, 19 Nov 2024 18:45:11 +0000 Subject: [PATCH] Add Autocomplete Signed-off-by: solimant --- .../src/schema/openapi.yaml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/plugins/scaffolder-backend/src/schema/openapi.yaml b/plugins/scaffolder-backend/src/schema/openapi.yaml index 4eabc141f7..ff57991b5c 100644 --- a/plugins/scaffolder-backend/src/schema/openapi.yaml +++ b/plugins/scaffolder-backend/src/schema/openapi.yaml @@ -1007,3 +1007,49 @@ paths: '400': $ref: '#/components/responses/ValidationError' parameters: [] + + /v2/autocomplete/{provider}/{resource}: + post: + operationId: Autocomplete + description: Perform an autocomplete for the given provider and resource. + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + context: + type: object + additionalProperties: + type: string + token: + type: string + responses: + '200': + description: Ok + content: + application/json: + schema: + type: object + properties: + results: + type: array + items: + type: object + properties: + title: + type: string + parameters: + - in: path + name: provider + required: true + allowReserved: true + schema: + type: string + - in: path + name: resource + required: true + allowReserved: true + schema: + type: string