github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/bugs/2919/edge-api/management/role-attributes.yml (about)

     1  ---
     2  paths:
     3    edge-router-role-attributes:
     4      get:
     5        summary: List role attributes in use by edge routers
     6        description: |
     7          Retrieves a list of role attributes in use by edge routers; supports filtering, sorting, and pagination. Requires admin access.
     8        security:
     9          - ztSession: [ ]
    10        tags:
    11          - Role Attributes
    12        operationId: listEdgeRouterRoleAttributes
    13        parameters:
    14          - $ref: '../shared/parameters.yml#/limit'
    15          - $ref: '../shared/parameters.yml#/offset'
    16          - $ref: '../shared/parameters.yml#/filter'
    17        responses:
    18          '200':
    19            $ref: '#/responses/listRoleAttributes'
    20          '401':
    21            $ref: '../shared/standard-responses.yml#/responses/unauthorizedResponse'
    22          '400':
    23            $ref: '../shared/standard-responses.yml#/responses/badRequestResponse'
    24  
    25    identity-role-attributes:
    26      get:
    27        summary: List role attributes in use by identities
    28        description: |
    29          Retrieves a list of role attributes in use by identities; supports filtering, sorting, and pagination. Requires admin access.
    30        security:
    31          - ztSession: [ ]
    32        tags:
    33          - Role Attributes
    34        operationId: listIdentityRoleAttributes
    35        parameters:
    36          - $ref: '../shared/parameters.yml#/limit'
    37          - $ref: '../shared/parameters.yml#/offset'
    38          - $ref: '../shared/parameters.yml#/filter'
    39        responses:
    40          '200':
    41            $ref: '#/responses/listRoleAttributes'
    42          '401':
    43            $ref: '../shared/standard-responses.yml#/responses/unauthorizedResponse'
    44          '400':
    45            $ref: '../shared/standard-responses.yml#/responses/badRequestResponse'
    46  
    47    service-role-attributes:
    48      get:
    49        summary: List role attributes in use by services
    50        description: |
    51          Retrieves a list of role attributes in use by services; supports filtering, sorting, and pagination. Requires admin access.
    52        security:
    53          - ztSession: [ ]
    54        tags:
    55          - Role Attributes
    56        operationId: listServiceRoleAttributes
    57        parameters:
    58          - $ref: '../shared/parameters.yml#/limit'
    59          - $ref: '../shared/parameters.yml#/offset'
    60          - $ref: '../shared/parameters.yml#/filter'
    61        responses:
    62          '200':
    63            $ref: '#/responses/listRoleAttributes'
    64          '401':
    65            $ref: '../shared/standard-responses.yml#/responses/unauthorizedResponse'
    66          '400':
    67            $ref: '../shared/standard-responses.yml#/responses/badRequestResponse'
    68  
    69  responses:
    70    listRoleAttributes:
    71      description: A list of role attributes
    72      schema:
    73        $ref: '#/definitions/listRoleAttributesEnvelope'
    74  
    75  definitions:
    76    listRoleAttributesEnvelope:
    77      type: object
    78      required:
    79        - meta
    80        - data
    81      properties:
    82        meta:
    83          $ref: '../shared/standard-responses.yml#/definitions/meta'
    84        data:
    85          $ref: '#/definitions/roleAttributesList'
    86    roleAttributesList:
    87      description: An array of role attributes
    88      type: array
    89      items:
    90        type: string