mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
73 lines
1.9 KiB
YAML
73 lines
1.9 KiB
YAML
service: service
|
|
disabledDeprecations: AWS_API_GATEWAY_SCHEMAS
|
|
|
|
provider:
|
|
name: aws
|
|
runtime: nodejs12.x
|
|
lambdaHashingVersion: 20201221
|
|
apiGateway:
|
|
request:
|
|
schemas:
|
|
test-model:
|
|
name: 'TestModel'
|
|
description: 'Test Description'
|
|
schema: '${file(dummySchema.json)}'
|
|
test-model-simple:
|
|
schema: '${file(dummySchema.json)}'
|
|
unused-model:
|
|
name: 'UnusedModel'
|
|
description: 'I should not be created'
|
|
schema: '${file(dummySchema.json)}'
|
|
|
|
functions:
|
|
target:
|
|
handler: target.handler
|
|
events:
|
|
- http:
|
|
path: test-model-full
|
|
method: get
|
|
request:
|
|
schemas:
|
|
application/json: test-model
|
|
- http:
|
|
path: test-model-simple
|
|
method: get
|
|
request:
|
|
schemas:
|
|
application/json: test-model-simple
|
|
- http:
|
|
path: test-direct-simple
|
|
method: get
|
|
request:
|
|
schemas:
|
|
application/json: '${file(dummySchema.json)}'
|
|
- http:
|
|
path: test-direct-full
|
|
method: get
|
|
request:
|
|
schemas:
|
|
application/json:
|
|
name: TestMethodModel
|
|
description: 'Test Method Model Desc'
|
|
schema: '${file(dummySchema.json)}'
|
|
- http:
|
|
path: test-deprecated-simple
|
|
method: get
|
|
request:
|
|
schema:
|
|
application/json: '${file(dummySchema.json)}'
|
|
- http:
|
|
path: test-multiple
|
|
method: get
|
|
request:
|
|
schemas:
|
|
application/json: '${file(dummySchema.json)}'
|
|
text/plain: 'foo'
|
|
- http:
|
|
path: test-deprecated-multiple
|
|
method: get
|
|
request:
|
|
schema:
|
|
application/json: '${file(dummySchema.json)}'
|
|
text/plain: 'foo'
|