Forum Discussion

wijetnga's avatar
2 months ago

Import API using API endpoint with Authorization

I need to generate OpenAPI specifications from an existing API endpoint that requires an "Authorization" in header. How can I do this in Swagger UI, specifically in the "Path or URL" section?

For example, my curl command looks like this:

curl -H "Authorization:xxxxxxx-xxxxxxx-xxxxxxxxx-xxxxxxxx" "https://server:676/api/1.4/pet/allsummary"

Thanks in advance!

 

No RepliesBe the first to reply