Skip to content

Commit bd338c4

Browse files
author
ChadKluck
committed
updated template
1 parent 1c92ca3 commit bd338c4

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

application-infrastructure/template-swagger.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
openapi: '3.0.0'
22
info:
33
title: "Web Service API"
4-
description: "An API."
4+
description: "An API"
55
version: "0.1"
66
contact:
77
name: "Your Name"
@@ -15,9 +15,9 @@ info:
1515

1616
paths:
1717

18-
/api/:
18+
/api/example/:
1919
get:
20-
description: "GET API Data."
20+
description: "GET API Example"
2121
# parameters:
2222
# - $ref: '#/components/parameters/someParameter'
2323
responses:

application-infrastructure/template.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -486,15 +486,15 @@ Resources:
486486
GetApiData:
487487
Type: Api
488488
Properties:
489-
Path: /api/data
490-
Method: get
491-
RestApiId: !Ref WebApi
492-
GetById:
493-
Type: Api
494-
Properties:
495-
Path: /api/data/{id}
489+
Path: /api/example
496490
Method: get
497491
RestApiId: !Ref WebApi
492+
# GetById:
493+
# Type: Api
494+
# Properties:
495+
# Path: /api/example/{id}
496+
# Method: get
497+
# RestApiId: !Ref WebApi
498498

499499
# -- LambdaFunction Execution Role --
500500

@@ -685,9 +685,6 @@ Outputs:
685685
APIEndpoint:
686686
Description: "Endpoint URL"
687687
Value: !Sub "https://${WebApi}.execute-api.${AWS::Region}.amazonaws.com/${ApiPathBase}/"
688-
APIEndpointTest:
689-
Description: "Endpoint Test URL"
690-
Value: !Sub "https://${WebApi}.execute-api.${AWS::Region}.amazonaws.com/${ApiPathBase}/?q=Chicago"
691688
CloudWatchLambdaExecutionLogGroup:
692689
Description: "Cloud Watch Log Group for Lambda Execution Logs"
693690
Value: !Sub "https://console.aws.amazon.com/cloudwatch/home?region=${AWS::Region}#logStream:group=%2Faws%2Flambda%2F${AppFunction}"

0 commit comments

Comments
 (0)