openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TR_EXT_GET_REQUESTS:
    post:
      tags:
      - TRWB_REQUESTS
      summary: Get changeable requests of given  user
      operationId: /rfc/TR_EXT_GET_REQUESTS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IV_ALL_REQ_AND_ALL_OWN_TASK:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: All request of user, all requests with tasks of user
                IV_ALL_REQ_WITH_OWN_TASK:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: All requests with tasks of user, NO requests without task
                IV_ATTR_REF:
                  type: string
                  default: ' '
                  maxLength: 32
                  description: Attribute value
                IV_AUTHOR:
                  type: string
                  default: ' '
                  maxLength: 12
                  description: User who owns a request or task
                IV_REQ_ATTR:
                  type: string
                  default: ' '
                  maxLength: 30
                  description: Request attribute
                IV_REQ_STATUS:
                  type: string
                  default: C
                  maxLength: 1
                  description: 'Status of requests: C changeable, R released, A all'
                IV_REQ_TYPE:
                  type: string
                  default: K
                  maxLength: 1
                  description: Type of request/task; K,T,W possible here
                ET_REQUESTS:
                  type: array
                  items:
                    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
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ES_MSG:
                    type: string
                    maxLength: 200
                    description: Log line
                  EV_EXCEPTION:
                    type: string
                    maxLength: 50
                    description: Name of exception
                  ET_REQUESTS:
                    type: array
                    items:
                      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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
