Skip to content

Commit 6ee8a40

Browse files
committed
add in links example and operationId example
1 parent 84a1058 commit 6ee8a40

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

test/serverless-tests/best/serverless.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ custom:
4848
- name: content
4949
description: The content to create or update
5050
value: { content: "my name is" }
51+
- name: ContentCreatedResponse
52+
content:
53+
application/json:
54+
schema:
55+
type: object
56+
properties:
57+
contentId:
58+
type: string
59+
format: uuid
60+
createdAt:
61+
type: number
5162
- name: FilterContentBody
5263
content:
5364
application/json:
@@ -166,7 +177,13 @@ functions:
166177
responseBody:
167178
description: The content requested
168179
responseModels:
169-
application/json: SuccessResponse
180+
application/json: ContentCreatedResponse
181+
links:
182+
MapContentLink:
183+
operation: mapContent
184+
description: The contentId created here can be used to map content
185+
parameters:
186+
contentId: $response.body#/contentId
170187
- statusCode: 404
171188
responseBody:
172189
description: An error occured

0 commit comments

Comments
 (0)