From d53a1272043a1b0a1ee5b62d6ff71815e5ea9444 Mon Sep 17 00:00:00 2001 From: shortcuts Date: Wed, 2 Apr 2025 22:35:48 +0200 Subject: [PATCH] feat(clients): add demo endpoint --- specs/search/paths/demo.yml | 30 +++++++++++++++++++++++++++++ specs/search/spec.yml | 3 +++ tests/CTS/requests/search/demo.json | 15 +++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 specs/search/paths/demo.yml create mode 100644 tests/CTS/requests/search/demo.json diff --git a/specs/search/paths/demo.yml b/specs/search/paths/demo.yml new file mode 100644 index 00000000000..30519d0a0d4 --- /dev/null +++ b/specs/search/paths/demo.yml @@ -0,0 +1,30 @@ +post: + tags: + - Vaults + operationId: demo + x-acl: + - admin + description: The demo description. + summary: Demo foo bar + requestBody: + required: true + description: wow it does so much!. + content: + application/json: + schema: + title: demoPayload + type: object + properties: + foo: + type: string + responses: + '200': + $ref: '../../common/responses/CreatedAt.yml' + '400': + $ref: '../../common/responses/BadRequest.yml' + '402': + $ref: '../../common/responses/FeatureNotEnabled.yml' + '403': + $ref: '../../common/responses/MethodNotAllowed.yml' + '404': + $ref: '../../common/responses/IndexNotFound.yml' diff --git a/specs/search/spec.yml b/specs/search/spec.yml index a3f61e1ac84..55daa2a2a68 100644 --- a/specs/search/spec.yml +++ b/specs/search/spec.yml @@ -224,6 +224,9 @@ paths: /{path}: $ref: '../common/paths/customRequest.yml' + /1/demo: + $ref: 'paths/demo.yml' + # ######################## # ### Search Endpoints ### # ######################## diff --git a/tests/CTS/requests/search/demo.json b/tests/CTS/requests/search/demo.json new file mode 100644 index 00000000000..e70a91e4065 --- /dev/null +++ b/tests/CTS/requests/search/demo.json @@ -0,0 +1,15 @@ +[ + { + "testName": "provides bar to foo", + "parameters": { + "foo": "bar" + }, + "request": { + "path": "/1/demo", + "method": "POST", + "body": { + "foo": "bar" + } + } + } +]