What happend with api key inputbox in Tyk Developer Portal?

Hi,

I upgraded Tyk dashboard and Tyk Gateway to the newest version. I noticed that the api key inputbox in the develop portal is gone now when you view the documentation of an api. Why is inputbox removed?

Kind regards,

Tim

Hi tim,

The portal now respects the changes in the swagger document more critically, so in order for the authorization section to appear you will need to add a security spec to your swagger doc:

"securityDefinitions": {
        "api_key": {
            "type": "apiKey",
            "name": "api_key",
            "in": "header"
        }
    },

And in your endpoint spec:

"security": [
                    {
                        "api_key": [ ]
                    }
                ]

Martin,

Thanks for your reply.

Kind regards,

Tim