Swagger API upload security headers

Has anyone had any joy with the Platform inserting the headers as defined in the swagger document?

We have the below security definition at the top of the swagger file but OutSystems isn't creating the authorization parameter on the API Methods during import.

 

"securityDefinitions": {
 "JWT": {
 "type": "apiKey",
 "name": "Authorization",
 "in": "header",
 "description": "To authorize a request add a valid jwt prececded by ‘Bearer ’ in the box below"
 },
 "Authorization": {
 "type": "apiKey",
 "name": "Bearer",
 "in": "header"
 }
 },

 

Solution

Hi Paul,

You are able to send the Authorisations in header as it's described here.


Hope it helps you!

Solution