Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dksheffield/80f332d1151c2fcb59307c44b739e680 to your computer and use it in GitHub Desktop.
Save dksheffield/80f332d1151c2fcb59307c44b739e680 to your computer and use it in GitHub Desktop.
not-serverless-cft.yaml
ContactUsFormApi:
Type: "AWS::ApiGateway::RestApi"
Properties:
Description: "A test API"
Name:
Ref: AWS::StackName
Body:
swagger: '2.0'
info:
description: Contact Us API
version: 1.0.0
title:
Ref: AWS::StackName
# put the contact info for your development or API team
contact:
email: [email protected]
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
schemes:
- https
paths:
/contactus:
post:
consumes:
- "application/json"
responses: {}
x-amazon-apigateway-integration:
requestTemplates:
application/json: "{\"statusCode\": 200}"
passthroughBehavior: "when_no_match"
type: "mock"
# Added by API Auto Mocking Plugin
host: virtserver.swaggerhub.com
basePath: /dksheffield/ContactUsForm/1.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment