Skip to content

Instantly share code, notes, and snippets.

@antklim
Created July 12, 2022 22:09
Show Gist options
  • Save antklim/17c8e6d1dd38b7b060bb2598a0fef563 to your computer and use it in GitHub Desktop.
Save antklim/17c8e6d1dd38b7b060bb2598a0fef563 to your computer and use it in GitHub Desktop.
FormDataInputModel:
Type: AWS::ApiGateway::Model
Properties:
ContentType: application/json
Description: A form data input model
Name: FormDataRequest
RestApiId: !Ref APIGW
Schema:
$schema: "http://json-schema.org/draft-04/schema#"
title: FormDataInputModel
type: object
properties:
email:
type: string
format: email
fullName:
type: string
maxLength: 255
comment:
type: string
maxLength: 255
required:
- email
- fullName
FormDataOutputModel:
Type: AWS::ApiGateway::Model
Properties:
ContentType: application/json
Description: A response on form data processing
Name: FormDataResponse
RestApiId: !Ref APIGW
Schema:
$schema: "http://json-schema.org/draft-04/schema#"
title: FormDataOutputModel
type: object
properties:
message:
type: string
statusCode:
type: number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment