Skip to content

Swagger Doc: Incorrect authorization header in the generated curl command #186

Description

@toch

In the swagger doc, it is well described in the top summary that the JWT has to be passed in an HTTP header like this:

Authorization: Bearer <Token>

image

However, the header is incorrect in the generated curl command. For instance, for GetPaymentLists, you get:

curl -X POST "https://demo.openimis.org/api/claim/GetPaymentLists" -H  "accept: application/json" -H  "Authorization: <token>" -H  "api-version: 3" -H  "Content-Type: application/json" -d "{  \"claim_administrator_code\": \"string\",  \"last_update_date\": \"2023-05-25T12:42:29.830Z\"}"

image

The string Bearer is missing.

Maybe AddSecurityRequirement can help to fix that.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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