I want to document the events in the AWS API Gateway. I figured out how to document the lambda functions but a single lambda function contains multiple events. So I want my documentation to be displayed in the screenshot below. How can I achieve this?
functions:
usercreate:
handler: src/users.create_user
description: Description for Lambda function
events:
- http:
method: post
path: ${self:custom.restApiPath}
authorizer:
name: cognitousers
arn: ${self:custom.restApiAuthorizer}