Skip to content

Dynamic Path Parameters Not Functioning in Auto-Generated Swagger Documentation #703

@mahendra7041

Description

@mahendra7041

Description

Auto generated Swagger documentation is currently generating dynamic path parameters in the following format:

/api/v1/books/:id

However, Swagger / OpenAPI expects dynamic parameters to use curly brace syntax:

/api/v1/books/{id}

Because of this mismatch, when we run the endpoint from the Swagger documentation, the dynamic parameter is not replaced with the provided value. The request is sent exactly as shown in the path, which causes the API call to fail.

Screenshot

https://prnt.sc/u2pWPsLhss_2
https://prnt.sc/3o8qcNPmMgbj

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions