openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TR_EXT_CREATE_REQUEST:
    post:
      tags:
      - TRWB_REQUESTS
      summary: Creation of change request
      operationId: /rfc/TR_EXT_CREATE_REQUEST
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IV_ATTR_REF:
                  type: string
                  maxLength: 32
                  description: Attribute value
                IV_AUTHOR:
                  type: string
                  maxLength: 12
                  description: Owner of request
                IV_REQUEST_TYPE:
                  type: string
                  default: K
                  maxLength: 1
                  description: Type of request; KTW are possible
                IV_REQ_ATTR:
                  type: string
                  maxLength: 30
                  description: Request attribute
                IV_TARGET:
                  type: string
                  default: ' '
                  maxLength: 10
                  description: 'Only Type T: Transport target of a request'
                IV_TEXT:
                  type: string
                  maxLength: 60
                  description: Short text describing R/3 Repository objects
              required:
              - IV_AUTHOR
              - IV_TEXT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ES_MSG:
                    type: string
                    maxLength: 200
                    description: Log line
                  ES_REQ_HEADER:
                    type: object
                    properties:
                      REQ_ID:
                        type: string
                        maxLength: 20
                        description: Request/Task
                      TEXT:
                        type: string
                        maxLength: 60
                        description: Short Description of Repository Objects
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'Type of request/task  enumValues: P=Piece List for Upgrade,C=Relocation of Objects Without Package Change,M=Client Transport Request,K=Workbench Request,T=Transport of Copies,X=Unclassified Task,Q=Customizing Task,S=Development/Correction,O=Relocation of Objects with Package Change,E=Relocation of Complete Package,G=Piece List for CTS Project,F=Piece List,W=Customizing Request,R=Repair,D=Piece List for Support Package'
                        enum:
                        - P
                        - C
                        - M
                        - K
                        - T
                        - X
                        - Q
                        - S
                        - O
                        - E
                        - G
                        - F
                        - W
                        - R
                        - D
                      STATUS:
                        type: string
                        maxLength: 1
                        description: 'Status of request/task  enumValues: N=Released (with Import Protection for Repaired Objects),L=Modifiable, Protected,R=Released,O=Release Started,D=Modifiable'
                        enum:
                        - N
                        - L
                        - R
                        - O
                        - D
                      TARGET:
                        type: string
                        maxLength: 10
                        description: Transport Target of Request
                      AUTHOR:
                        type: string
                        maxLength: 12
                        description: Owner of a Request or Task
                      CHANGEDATE:
                        type: string
                        format: date
                        description: Date of Last Change
                      CHANGETIME:
                        type: string
                        maxLength: 6
                        description: Last changed at
                      SRC_CLIENT:
                        type: string
                        maxLength: 3
                        description: Source client of request
                  ES_REQ_ID:
                    type: string
                    maxLength: 20
                    description: Request/task
                  EV_EXCEPTION:
                    type: string
                    maxLength: 50
                    description: Name of exception
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
