openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TWP_GET_ROLES:
    post:
      tags:
      - PWP2
      operationId: /rfc/TWP_GET_ROLES
      requestBody:
        content:
          application/json:
            schema:
              properties:
                GET_ROLE_TEXTS:
                  type: string
                  default: ' '
                  maxLength: 1
                TEXT_LANGUAGE:
                  type: string
                  maxLength: 1
                VALUE_RANGE:
                  type: string
                  maxLength: 30
                ROLE_TABLE:
                  type: array
                  items:
                    type: object
                    properties:
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client ID of Current User
                      AGR_NAME:
                        type: string
                        maxLength: 30
                        description: 30 Characters
                      PARENT_AGR:
                        type: string
                        maxLength: 30
                        description: 30 Characters
                      SPRAS:
                        type: string
                        maxLength: 1
                        description: Language Key of Current Text Environment
                      TEXT:
                        type: string
                        maxLength: 80
                        description: Char 80
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ROLE_TABLE:
                    type: array
                    items:
                      type: object
                      properties:
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client ID of Current User
                        AGR_NAME:
                          type: string
                          maxLength: 30
                          description: 30 Characters
                        PARENT_AGR:
                          type: string
                          maxLength: 30
                          description: 30 Characters
                        SPRAS:
                          type: string
                          maxLength: 1
                          description: Language Key of Current Text Environment
                        TEXT:
                          type: string
                          maxLength: 80
                          description: Char 80
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
