You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: This procedure lays out the steps to login a user and then retrieve pets
17
+
inputs:
18
+
type: object
19
+
properties:
20
+
username:
21
+
type: string
22
+
password:
23
+
type: string
24
+
steps:
25
+
- stepId: loginStep
26
+
description: This step demonstrates the user login step
27
+
operationId: petStoreDescription.loginUser
28
+
parameters:
29
+
# parameters to inject into the loginUser operation (parameter name must be resolvable at the referenced operation and the value is determined using {expression} syntax)
30
+
- name: username
31
+
in: query
32
+
value: $inputs.username
33
+
- name: password
34
+
in: query
35
+
value: $inputs.password
36
+
successCriteria:
37
+
# assertions to determine step was successful
38
+
- condition: $statusCode == 200
39
+
outputs:
40
+
# outputs from this step
41
+
tokenExpires: $response.header.X-Expires-After
42
+
rateLimit: $response.header.X-Rate-Limit
43
+
sessionToken: $response.body
44
+
- stepId: getPetStep
45
+
description: retrieve a pet by status from the GET pets endpoint
0 commit comments