I am working on the definition of a service contract with swagger 2.0. my question is : what is the right method to define Bearer token authentication in swagger 2.0? FYI : I have find to methods in internet what is the right one?
method 1 : securityDefinitions: Bearer: type: apiKey name: Authorization in: header security: - Bearer: []
method 2 : securityDefinitions: ApiKeyAuth: type: apiKey name: X-API-Key in: header security: - ApiKeyAuth: []