Skip to content

Commit 84a1058

Browse files
committed
add in use of operationId
1 parent a6687da commit 84a1058

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

test/serverless-tests/best/serverless.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,38 @@ functions:
113113
responseModels:
114114
application/json: ErrorResponse
115115
owasp: true
116+
- http:
117+
path: /{contentId}/{path}
118+
method: GET
119+
documentation:
120+
description: A method to bring back content from OpenSearch
121+
summary: get content from OpenSearch
122+
operationId: getContentByPath
123+
pathParams:
124+
- name: contentId
125+
description: The id of the piece of content to get
126+
schema:
127+
type: string
128+
format: uuid
129+
- name: path
130+
description: The path the content lives at
131+
schema:
132+
type: string
133+
tags:
134+
- OpenSearch
135+
methodResponses:
136+
- statusCode: 200
137+
responseBody:
138+
description: The content requested
139+
responseModels:
140+
application/json: SuccessResponse
141+
owasp: true
142+
- statusCode: 404
143+
responseBody:
144+
description: An error occured
145+
responseModels:
146+
application/json: ErrorResponse
147+
owasp: true
116148

117149
createContent:
118150
handler: handler.createContent

0 commit comments

Comments
 (0)