openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SPROJECT_TR_REQUEST_CREATE_R:
    post:
      tags:
      - PROJECT_TR_INTERFACES
      operationId: /rfc/SPROJECT_TR_REQUEST_CREATE_R
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CTS_IDENTIFIER:
                  type: string
                  maxLength: 32
                LIST_OF_RESOURCES:
                  type: array
                  items:
                    type: object
                    properties:
                      PROJECT_ID:
                        type: string
                        maxLength: 10
                        description: Project name
                      PROJ_RES:
                        type: string
                        maxLength: 12
                        description: Employee responsible
                      TEXT:
                        type: string
                        maxLength: 40
                        description: Explanatory text
                      SAP_USER:
                        type: string
                        maxLength: 12
                        description: User Name in User Master Record
                NO_DIALOG:
                  type: string
                  maxLength: 1
                NO_TASKS:
                  type: string
                  maxLength: 1
                PROJECT_CLASS:
                  type: string
                  maxLength: 6
                PROJECT_ID:
                  type: string
                  maxLength: 10
                PROJECT_TITLE:
                  type: string
                  maxLength: 60
                TRREQUEST_TYPE:
                  type: string
                  maxLength: 1
                TR_ATTRIBUTES:
                  type: array
                  items:
                    type: object
                    properties:
                      TRKORR:
                        type: string
                        maxLength: 20
                        description: Request/Task
                      POS:
                        type: integer
                        format: int64
                        description: 'Dictionary: Line item'
                      ATTRIBUTE:
                        type: string
                        maxLength: 30
                        description: Request attribute
                      REFERENCE:
                        type: string
                        maxLength: 32
                        description: Attribute value
                WORKBENCH_ON:
                  type: string
                  maxLength: 1
                TASKS:
                  type: array
                  items:
                    type: object
                    properties:
                      TASKID:
                        type: string
                        maxLength: 20
                        description: Request/Task
                      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
                      AUTHOR:
                        type: string
                        maxLength: 12
                        description: Owner of a Request or Task
                      TEXT:
                        type: string
                        maxLength: 60
                        description: Short Description of Repository Objects
                      CHANGEDATE:
                        type: string
                        format: date
                        description: Date of Last Change
                      CHANGETIME:
                        type: string
                        maxLength: 6
                        description: Last changed at
                      REQUESTID:
                        type: string
                        maxLength: 20
                        description: Request/Task
              required:
              - PROJECT_CLASS
              - PROJECT_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ERROR_MESSAGE:
                    type: object
                    properties:
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      MSGTY:
                        type: string
                        maxLength: 1
                        description: Message Type
                      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
                      MSGTXT:
                        type: string
                        maxLength: 256
                        description: Text, 256 Characters
                  TRKORR:
                    type: string
                    maxLength: 20
                  TASKS:
                    type: array
                    items:
                      type: object
                      properties:
                        TASKID:
                          type: string
                          maxLength: 20
                          description: Request/Task
                        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
                        AUTHOR:
                          type: string
                          maxLength: 12
                          description: Owner of a Request or Task
                        TEXT:
                          type: string
                          maxLength: 60
                          description: Short Description of Repository Objects
                        CHANGEDATE:
                          type: string
                          format: date
                          description: Date of Last Change
                        CHANGETIME:
                          type: string
                          maxLength: 6
                          description: Last changed at
                        REQUESTID:
                          type: string
                          maxLength: 20
                          description: Request/Task
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
