openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RRXWS_WEBPUB_CALL_SERVICE:
    post:
      tags:
      - RRXWS
      operationId: /rfc/RRXWS_WEBPUB_CALL_SERVICE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_ACTION:
                  type: string
                  maxLength: 30
                I_CONTEXTDESCRIPTION:
                  type: string
                I_CONTEXTFRAGMENT:
                  type: string
                I_NODEFRAGMENT:
                  type: string
                I_TEMPLATE:
                  type: string
                I_TMPLID:
                  type: string
                  maxLength: 30
                E_T_MESSAGE:
                  type: array
                  items:
                    type: object
                    properties:
                      CONTEXT_ID:
                        type: integer
                        format: int32
                        description: Object ID
                      MSGTY:
                        type: string
                        maxLength: 1
                        description: Message Type
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      MSGNO:
                        type: integer
                        format: int64
                        description: Message Number
                      MSGV1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      TEXT:
                        type: string
                        maxLength: 220
                        description: Message Text
              required:
              - I_ACTION
              - I_CONTEXTDESCRIPTION
              - I_CONTEXTFRAGMENT
              - I_NODEFRAGMENT
              - I_TEMPLATE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_MAX_MESSAGE_TYPE:
                    type: string
                    maxLength: 1
                  E_MESSAGES:
                    type: string
                  E_RESULT:
                    type: string
                  E_SUBRC:
                    type: integer
                    format: int32
                  E_T_MESSAGE:
                    type: array
                    items:
                      type: object
                      properties:
                        CONTEXT_ID:
                          type: integer
                          format: int32
                          description: Object ID
                        MSGTY:
                          type: string
                          maxLength: 1
                          description: Message Type
                        MSGID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        MSGNO:
                          type: integer
                          format: int64
                          description: Message Number
                        MSGV1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        TEXT:
                          type: string
                          maxLength: 220
                          description: Message Text
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
