...

Text file src/github.com/go-openapi/analysis/fixtures/securitydef.yml

Documentation: github.com/go-openapi/analysis/fixtures

     1---
     2swagger: '2.0'
     3info:
     4  title: extension of securityDefinitions
     5  version: 4.2.0
     6schemes:
     7  - http
     8basePath: /api
     9consumes:
    10  - application/json
    11produces:
    12  - application/json
    13securityDefinitions:
    14  myOtherRoles:
    15    description: definition of scopes as roles
    16    type: oauth2
    17    flow: accessCode 
    18    authorizationUrl: https://foo.bar.com/authorize
    19    tokenUrl: https://foo.bar.com/token
    20    scopes:
    21      otherSellers: group of sellers
    22      otherBuyers: group of buyers
    23  mySecondaryApiKey:
    24    type: apiKey
    25    name: X-secondaryApiKey
    26    in: header
    27  myBasicAuth:
    28    type: basic
    29    description: basic primary auth
    30security:
    31  - myBasicAuth: []
    32
    33paths:

View as plain text