openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TWP_GET_ROLES_AND_SERVICES:
    post:
      tags:
      - PWP3
      operationId: /rfc/TWP_GET_ROLES_AND_SERVICES
      requestBody:
        content:
          application/json:
            schema:
              properties:
                LASTCHANGEDAT:
                  type: integer
                  format: int64
                LOGSYSTEM:
                  type: string
                  maxLength: 10
                SERVICETYPE:
                  type: string
                  maxLength: 20
                ROLES:
                  type: array
                  items:
                    type: object
                    properties:
                      ROLENAME:
                        type: string
                        maxLength: 40
                        description: 'PCD: Role Name'
                ROLESERVICES:
                  type: array
                  items:
                    type: object
                    properties:
                      ROLENAME:
                        type: string
                        maxLength: 40
                        description: 'PCD: Role Name'
                      SRVTYPE:
                        type: string
                        maxLength: 20
                        description: Service Type for PCD
                      SRVNAME:
                        type: string
                        maxLength: 60
                        description: Physical Service for PCD
                ROLETEXTS:
                  type: array
                  items:
                    type: object
                    properties:
                      ROLENAME:
                        type: string
                        maxLength: 40
                        description: 'PCD: Role Name'
                      SPRAS:
                        type: string
                        maxLength: 1
                        description: Language Key of Current Text Environment
                      TITLE:
                        type: string
                        maxLength: 70
                        description: 'PCD: Title (Short Text)'
                      DESCRIPT:
                        type: string
                        maxLength: 200
                        description: 'PCD: Description (Long Text)'
              required:
              - LOGSYSTEM
              - SERVICETYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ROLES:
                    type: array
                    items:
                      type: object
                      properties:
                        ROLENAME:
                          type: string
                          maxLength: 40
                          description: 'PCD: Role Name'
                  ROLESERVICES:
                    type: array
                    items:
                      type: object
                      properties:
                        ROLENAME:
                          type: string
                          maxLength: 40
                          description: 'PCD: Role Name'
                        SRVTYPE:
                          type: string
                          maxLength: 20
                          description: Service Type for PCD
                        SRVNAME:
                          type: string
                          maxLength: 60
                          description: Physical Service for PCD
                  ROLETEXTS:
                    type: array
                    items:
                      type: object
                      properties:
                        ROLENAME:
                          type: string
                          maxLength: 40
                          description: 'PCD: Role Name'
                        SPRAS:
                          type: string
                          maxLength: 1
                          description: Language Key of Current Text Environment
                        TITLE:
                          type: string
                          maxLength: 70
                          description: 'PCD: Title (Short Text)'
                        DESCRIPT:
                          type: string
                          maxLength: 200
                          description: 'PCD: Description (Long Text)'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
