Skip to content

Commit d53a127

Browse files
committed
feat(clients): add demo endpoint
1 parent d583a8e commit d53a127

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

specs/search/paths/demo.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
post:
2+
tags:
3+
- Vaults
4+
operationId: demo
5+
x-acl:
6+
- admin
7+
description: The demo description.
8+
summary: Demo foo bar
9+
requestBody:
10+
required: true
11+
description: wow it does so much!.
12+
content:
13+
application/json:
14+
schema:
15+
title: demoPayload
16+
type: object
17+
properties:
18+
foo:
19+
type: string
20+
responses:
21+
'200':
22+
$ref: '../../common/responses/CreatedAt.yml'
23+
'400':
24+
$ref: '../../common/responses/BadRequest.yml'
25+
'402':
26+
$ref: '../../common/responses/FeatureNotEnabled.yml'
27+
'403':
28+
$ref: '../../common/responses/MethodNotAllowed.yml'
29+
'404':
30+
$ref: '../../common/responses/IndexNotFound.yml'

specs/search/spec.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,9 @@ paths:
224224
/{path}:
225225
$ref: '../common/paths/customRequest.yml'
226226

227+
/1/demo:
228+
$ref: 'paths/demo.yml'
229+
227230
# ########################
228231
# ### Search Endpoints ###
229232
# ########################
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[
2+
{
3+
"testName": "provides bar to foo",
4+
"parameters": {
5+
"foo": "bar"
6+
},
7+
"request": {
8+
"path": "/1/demo",
9+
"method": "POST",
10+
"body": {
11+
"foo": "bar"
12+
}
13+
}
14+
}
15+
]

0 commit comments

Comments
 (0)