openapi: 3.0.3
info: { title: TIIX Perms API — Roles, version: v1.0.0 }
servers: [ { url: /adm/api } ]
paths:
  /Roles/list:
    post:
      summary: Lista papéis
      responses:
        "200":
          description: OK
          content: { application/json: { schema: { $ref: '#/components/schemas/DefaultResponse' } } }
  /Roles/upsert:
    post:
      summary: Cria/atualiza papel
      responses:
        "200":
          description: OK
          content: { application/json: { schema: { $ref: '#/components/schemas/DefaultResponse' } } }
  /Roles/delete:
    post:
      summary: Remove papel
      responses:
        "200":
          description: OK
          content: { application/json: { schema: { $ref: '#/components/schemas/DefaultResponse' } } }
  /RoleBindings/list:
    post:
      summary: Lista bindings
      responses:
        "200":
          description: OK
          content: { application/json: { schema: { $ref: '#/components/schemas/DefaultResponse' } } }
  /RoleBindings/bind:
    post:
      summary: Cria binding
      responses:
        "200":
          description: OK
          content: { application/json: { schema: { $ref: '#/components/schemas/DefaultResponse' } } }
  /RoleBindings/unbind:
    post:
      summary: Remove binding
      responses:
        "200":
          description: OK
          content: { application/json: { schema: { $ref: '#/components/schemas/DefaultResponse' } } }
components:
  schemas:
    DefaultResponse:
      type: object
      properties: { erro: {type: integer}, msg: {type: string}, data: {type: object}, id: {type: integer} }
