Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to define mulitple operation methods #1006

Merged
merged 3 commits into from
Aug 28, 2024

Commits on Aug 28, 2024

  1. Add support to define mulitple operation methods

    Add support for defining mulitple operation methods to
    `#[utoipa::path(...)]` attribte macro as follows.
    ```rust
     #[utoipa::path(method(head, get), ...)]
     async fn path() {}
    ```
    
    This PR also integrates this support for axum and actix-web frameworks.
    juhaku committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    968a762 View commit details
    Browse the repository at this point in the history
  2. Remove CONNECT and rename PathItemType

    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.
    juhaku committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    88c5f7a View commit details
    Browse the repository at this point in the history
  3. Add route macro support for acitx-web

    Add `#[route(...)]` macro support for `actix-web` library.
    juhaku committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    e813ff3 View commit details
    Browse the repository at this point in the history