This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.
BMC Discovery 11.3
When using the Swagger UI, the API key authorization doesn't seem to work.
The UI accepts the token , however testing with the API key generated from "Generate API Token" returns response code 401.
The doc at https://docs.bmc.com/docs/display/DISCO113/Authentication+and+permissions+in+the+REST+API says:
"Following the OAuth 2.0 specification, every HTTP request to the API must contain an "Authorization" header with the value "bearer <your_token>"."
When using swagger, it is necessary to add "bearer" in front of the token key when registering the API key authorization: