First iteration of v1 lambdarouter, full API change

This commit is contained in:
mitchell 2019-04-07 15:22:26 -07:00
parent 83bb9a2aa1
commit f65f17158c
12 changed files with 376 additions and 392 deletions

View file

@ -0,0 +1,42 @@
service: lambdarouter-hello-world
frameworkVersion: ">=1.28.0 <2.0.0"
provider:
name: aws
runtime: go1.x
stage: ${opt:stage, 'dev'}
region: us-west-2
# iamRoleStatements:
# environment:
package:
exclude:
- ./**
include:
- ./bin/**
functions:
hello:
handler: bin/hello
events:
- http:
path: hellosrv/hello
method: post
- http:
path: hellosrv/hello/{name}
method: get
request:
parameters:
path:
name: true
- http:
path: hellosrv/hello/french
method: put
- http:
path: hellosrv/hello/french/{prenom}
method: get
request:
parameters:
path:
prenom: true
#resources: