Skip to content

Commit f32b75d

Browse files
committed
add /api/v1/protected to route list
1 parent db798de commit f32b75d

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/swagger.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,28 @@ paths:
1212
summary: Ping the API
1313
operationId: ping
1414

15+
responses:
16+
200:
17+
description: OK
18+
19+
x-amazon-apigateway-auth:
20+
type: NONE
21+
22+
x-amazon-apigateway-integration:
23+
responses:
24+
default:
25+
statusCode: 200
26+
passthroughBehavior: when_no_match
27+
httpMethod: POST
28+
contentHandling: CONVERT_TO_TEXT
29+
type: aws_proxy
30+
uri:
31+
Fn::Sub: "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${ApplicationPrefix}-lambda/invocations"
32+
/api/v1/protected:
33+
get:
34+
summary: Returns the authenticated user's username.
35+
operationId: pingAuthenticated
36+
1537
responses:
1638
200:
1739
description: OK

0 commit comments

Comments
 (0)