openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TR_GTADIR4_SERVER:
    post:
      tags:
      - SR01
      summary: RFC Interface to GTADIR (Server Part)
      operationId: /rfc/TR_GTADIR4_SERVER
      requestBody:
        content:
          application/json:
            schema:
              properties:
                HOST:
                  type: string
                  maxLength: 8
                MESSAGE:
                  type: string
                  default: GETLIST
                  maxLength: 10
                OPTION:
                  type: string
                  default: ' '
                  maxLength: 10
                ET_TAB_OUT:
                  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: 40
                        description: Object Name in Object Directory
                      SRCSYSTEM:
                        type: string
                        maxLength: 10
                        description: Original System of Object
                      AUTHOR:
                        type: string
                        maxLength: 12
                        description: Author of the Repository object
                      DEVCLASS:
                        type: string
                        maxLength: 30
                        description: Package
                      GENFLAG:
                        type: string
                        maxLength: 1
                        description: 'Generation flag  enumValues: X=generated, is retained during the upgrade,T=generated, can be deleted during the upgrade,""=not generated'
                        enum:
                        - X
                        - T
                        - ''
                      STATUS:
                        type: string
                        maxLength: 1
                        description: Delivery Status (L)ocal, (S)AP, (K)customer
                      MOVING:
                        type: string
                        maxLength: 1
                        description: 'Move active: ''X'', inactive: SPACE'
                      MAINTSYS:
                        type: string
                        maxLength: 10
                        description: Maintenance system of object (release-specific)
                      MASTERLANG:
                        type: string
                        maxLength: 1
                        description: Original Language in Repository objects
                      DELETEFLAG:
                        type: string
                        maxLength: 1
                        description: Deletion Indicator
                      MAINTMOVE:
                        type: string
                        maxLength: 1
                        description: 'Move active: ''X'', inactive: SPACE'
                      RELEASE:
                        type: string
                        maxLength: 10
                        description: Release of release-specific attributes
                IT_TAB_IN:
                  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: 40
                        description: Object Name in Object Directory
                      SRCSYSTEM:
                        type: string
                        maxLength: 10
                        description: Original System of Object
                      AUTHOR:
                        type: string
                        maxLength: 12
                        description: Author of the Repository object
                      DEVCLASS:
                        type: string
                        maxLength: 30
                        description: Package
                      GENFLAG:
                        type: string
                        maxLength: 1
                        description: 'Generation flag  enumValues: X=generated, is retained during the upgrade,T=generated, can be deleted during the upgrade,""=not generated'
                        enum:
                        - X
                        - T
                        - ''
                      STATUS:
                        type: string
                        maxLength: 1
                        description: Delivery Status (L)ocal, (S)AP, (K)customer
                      MOVING:
                        type: string
                        maxLength: 1
                        description: 'Move active: ''X'', inactive: SPACE'
                      MAINTSYS:
                        type: string
                        maxLength: 10
                        description: Maintenance system of object (release-specific)
                      MASTERLANG:
                        type: string
                        maxLength: 1
                        description: Original Language in Repository objects
                      DELETEFLAG:
                        type: string
                        maxLength: 1
                        description: Deletion Indicator
                      MAINTMOVE:
                        type: string
                        maxLength: 1
                        description: 'Move active: ''X'', inactive: SPACE'
                      RELEASE:
                        type: string
                        maxLength: 10
                        description: Release of release-specific attributes
                TT_QUERY:
                  type: array
                  items:
                    type: object
                    properties:
                      QUERY:
                        type: string
                        maxLength: 72
                        description: Structure for Dynamic SQL Queries
              required:
              - HOST
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ACTION:
                    type: string
                    maxLength: 10
                  ERROR:
                    type: integer
                    format: int32
                  RUNTIME:
                    type: integer
                    format: int32
                  ET_TAB_OUT:
                    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: 40
                          description: Object Name in Object Directory
                        SRCSYSTEM:
                          type: string
                          maxLength: 10
                          description: Original System of Object
                        AUTHOR:
                          type: string
                          maxLength: 12
                          description: Author of the Repository object
                        DEVCLASS:
                          type: string
                          maxLength: 30
                          description: Package
                        GENFLAG:
                          type: string
                          maxLength: 1
                          description: 'Generation flag  enumValues: X=generated, is retained during the upgrade,T=generated, can be deleted during the upgrade,""=not generated'
                          enum:
                          - X
                          - T
                          - ''
                        STATUS:
                          type: string
                          maxLength: 1
                          description: Delivery Status (L)ocal, (S)AP, (K)customer
                        MOVING:
                          type: string
                          maxLength: 1
                          description: 'Move active: ''X'', inactive: SPACE'
                        MAINTSYS:
                          type: string
                          maxLength: 10
                          description: Maintenance system of object (release-specific)
                        MASTERLANG:
                          type: string
                          maxLength: 1
                          description: Original Language in Repository objects
                        DELETEFLAG:
                          type: string
                          maxLength: 1
                          description: Deletion Indicator
                        MAINTMOVE:
                          type: string
                          maxLength: 1
                          description: 'Move active: ''X'', inactive: SPACE'
                        RELEASE:
                          type: string
                          maxLength: 10
                          description: Release of release-specific attributes
                  IT_TAB_IN:
                    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: 40
                          description: Object Name in Object Directory
                        SRCSYSTEM:
                          type: string
                          maxLength: 10
                          description: Original System of Object
                        AUTHOR:
                          type: string
                          maxLength: 12
                          description: Author of the Repository object
                        DEVCLASS:
                          type: string
                          maxLength: 30
                          description: Package
                        GENFLAG:
                          type: string
                          maxLength: 1
                          description: 'Generation flag  enumValues: X=generated, is retained during the upgrade,T=generated, can be deleted during the upgrade,""=not generated'
                          enum:
                          - X
                          - T
                          - ''
                        STATUS:
                          type: string
                          maxLength: 1
                          description: Delivery Status (L)ocal, (S)AP, (K)customer
                        MOVING:
                          type: string
                          maxLength: 1
                          description: 'Move active: ''X'', inactive: SPACE'
                        MAINTSYS:
                          type: string
                          maxLength: 10
                          description: Maintenance system of object (release-specific)
                        MASTERLANG:
                          type: string
                          maxLength: 1
                          description: Original Language in Repository objects
                        DELETEFLAG:
                          type: string
                          maxLength: 1
                          description: Deletion Indicator
                        MAINTMOVE:
                          type: string
                          maxLength: 1
                          description: 'Move active: ''X'', inactive: SPACE'
                        RELEASE:
                          type: string
                          maxLength: 10
                          description: Release of release-specific attributes
                  TT_QUERY:
                    type: array
                    items:
                      type: object
                      properties:
                        QUERY:
                          type: string
                          maxLength: 72
                          description: Structure for Dynamic SQL Queries
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
