-
Notifications
You must be signed in to change notification settings - Fork 0
Using Path Parameters with Golang Serverless
ZadenRB edited this page Mar 19, 2019
·
1 revision
Events:
CatchAll:
Type: Api # More info about API Event Source: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#api
Properties:
Path: /api/{foo}
Request:
Parameters:
Paths:
foo: true
Setting foo
to true will make it required, false for an optional path parameter. To access the path parameter values from the request, req.PathParameters
, will return a map in the format of foo:value