Skip to content

Docs: HTTP options not supported in decorator #1922

@TownCube

Description

@TownCube

What were you searching in the docs?

HTTP Methods states:

You can use named decorators to specify the HTTP method that should be handled in your functions. That is, app.<http_method>, where the HTTP method could be get, post, put, patch, delete, and options.

However when you try and use app.options you get:

AttributeError: 'APIGatewayRestResolver' object has no attribue 'options'

Is this related to an existing documentation section?

https://awslabs.github.io/aws-lambda-powertools-python/2.8.0/core/event_handler/api_gateway/#http-methods

How can we improve?

Amend the documentation to make it clear not all HTTP methods are supported.

Got a suggestion in mind?

No response

Acknowledgment

  • I understand the final update might be different from my proposed suggestion, or refused.

Metadata

Metadata

Labels

documentationImprovements or additions to documentationevent_handlersfeatureNew feature or functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions