Skip to content

Commit

Permalink
Add method response
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitor Reis committed Nov 15, 2016
1 parent 45d382e commit 2c156b6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion cloud-formation/api-gateway/foodShop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ Resources:
HttpMethod: "GET"
ResourceId: !Ref inventoryResource
RestApiId: !Ref foodShopRestApi
MethodResponses:
-
StatusCode: "200"

ordersResource:
Type: "AWS::ApiGateway::Resource"
Expand All @@ -35,6 +38,9 @@ Resources:
HttpMethod: "POST"
ResourceId: !Ref ordersResource
RestApiId: !Ref foodShopRestApi
MethodResponses:
-
StatusCode: "200"

orderByIdResource:
Type: "AWS::ApiGateway::Resource"
Expand All @@ -49,4 +55,7 @@ Resources:
AuthorizationType: "NONE"
HttpMethod: "GET"
ResourceId: !Ref orderByIdResource
RestApiId: !Ref foodShopRestApi
RestApiId: !Ref foodShopRestApi
MethodResponses:
-
StatusCode: "200"

0 comments on commit 2c156b6

Please sign in to comment.