-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support to define mulitple operation methods (#1006)
Add support for defining multiple operation methods to `#[utoipa::path(...)]` attribte macro as follows. ```rust #[utoipa::path(method(head, get), ...)] async fn path() {} ``` Remove `CONNECT` http method from supported path operation types since it actually is not supported by the OpenAPI specification. Also this commit renames the `PathItemType` `HttpMethod` to more precisely describe the use case. Add `#[route(...)]` macro support for `actix-web` library. Enhance `utoipa-axum` bindings to support multiple operation methods. ### Breaking This commit renames `PathItemType` to `HttpMethod` to better describe the usage. Also this commit removes `Connect` from the `HttpMethod` since it is not supported by OpenAPI specification. https://spec.openapis.org/oas/latest.html#path-item-object Fixes #827
- Loading branch information
Showing
15 changed files
with
605 additions
and
399 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.