I have an HTTP POST and Graph QL based authentication endpoint that takes the following parameters:
1. API_subscription_key (Header)
2. Content-Type: application/graphql (Header)
3. Query (QueryString), that looks like:
I am building an API that uses Oauth 2 clientCredentials flow, to fetch the token from the above authentication endpoint and calls the subsequent APIs with the token to fetch data.
How do I define the above securitySchemes using Open API 3 or Swagger 2.0?
I tried defining like below but the swagger UI only shows Client ID, Client Secret text boxes and give an "Auth ErrorTypeError: Failed to fetch" when I input the client ID and client secret.
read_data: read the data