openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TR_EXT_INSERT_IN_REQUEST:
    post:
      tags:
      - TRWB_REQUESTS
      summary: Inserting object in given request
      operationId: /rfc/TR_EXT_INSERT_IN_REQUEST
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IV_REQ_ID:
                  type: string
                  maxLength: 20
                  description: Request/task
                IT_OBJECTS:
                  type: array
                  items:
                    type: object
                    properties:
                      PGMID:
                        type: string
                        maxLength: 4
                        description: Program ID in Requests and Tasks
                      OBJECT:
                        type: string
                        maxLength: 4
                        description: Object Type
                      OBJ_NAME:
                        type: string
                        maxLength: 120
                        description: Object Name in Object List
              required:
              - IV_REQ_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ES_MSG:
                    type: string
                    maxLength: 200
                    description: 'Correction Requests: Error Messages'
                  EV_EXCEPTION:
                    type: string
                    maxLength: 50
                    description: Name of exception
                  IT_OBJECTS:
                    type: array
                    items:
                      type: object
                      properties:
                        PGMID:
                          type: string
                          maxLength: 4
                          description: Program ID in Requests and Tasks
                        OBJECT:
                          type: string
                          maxLength: 4
                          description: Object Type
                        OBJ_NAME:
                          type: string
                          maxLength: 120
                          description: Object Name in Object List
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
