API Swagger SecurityDefinitions

code-engineering

#1

is there any way to specify a SecurityDefinition like Api Key or Oauth in the API designer?

Swagger Example:

securityDefinitions:
store_auth:
type: oauth2
flow: accessCode
authorizationUrl: ‘https://xxxx.xxx.com/oauth/authorize
tokenUrl: ‘https://xxxx.xxx.com/oauth/token
scopes:
‘write:redeem’: Approve/Update redeem
‘read:clientFullName’: read client name
api_key:
type: apiKey
name: api_key
in: header
api_secret:
type: apiKey
name: api_secret
in: header


#3

We are sorry that SecurityDefinition is not yet supported in Swagger generation.
It will be support in future release.
We will notify you when Swagger generation is enhanced to support SecurityDefinition.