openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TR_GTADIR_SERVER:
    post:
      tags:
      - SR01
      summary: RFC Interface to GTADIR (Server Part)
      operationId: /rfc/TR_GTADIR_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
                TAB_IN:
                  type: array
                  items:
                    type: object
                    properties:
                      PGMID:
                        type: string
                        maxLength: 4
                        description: ''
                      OBJECT:
                        type: string
                        maxLength: 4
                        description: ''
                      OBJ_NAME:
                        type: string
                        maxLength: 30
                        description: ''
                      SRCSYSTEM:
                        type: string
                        maxLength: 10
                        description: ''
                      AUTHOR:
                        type: string
                        maxLength: 12
                        description: ''
                      DEVCLASS:
                        type: string
                        maxLength: 4
                        description: ''
                      GENFLAG:
                        type: string
                        maxLength: 1
                        description: ''
                      STATUS:
                        type: string
                        maxLength: 1
                        description: ''
                      REFCNT:
                        type: integer
                        format: int64
                        description: ''
                      MOVING:
                        type: string
                        maxLength: 1
                        description: ''
                TAB_OUT:
                  type: array
                  items:
                    type: object
                    properties:
                      PGMID:
                        type: string
                        maxLength: 4
                        description: ''
                      OBJECT:
                        type: string
                        maxLength: 4
                        description: ''
                      OBJ_NAME:
                        type: string
                        maxLength: 30
                        description: ''
                      SRCSYSTEM:
                        type: string
                        maxLength: 10
                        description: ''
                      AUTHOR:
                        type: string
                        maxLength: 12
                        description: ''
                      DEVCLASS:
                        type: string
                        maxLength: 4
                        description: ''
                      GENFLAG:
                        type: string
                        maxLength: 1
                        description: ''
                      STATUS:
                        type: string
                        maxLength: 1
                        description: ''
                      REFCNT:
                        type: integer
                        format: int64
                        description: ''
                      MOVING:
                        type: string
                        maxLength: 1
                        description: ''
                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
                  TAB_IN:
                    type: array
                    items:
                      type: object
                      properties:
                        PGMID:
                          type: string
                          maxLength: 4
                          description: ''
                        OBJECT:
                          type: string
                          maxLength: 4
                          description: ''
                        OBJ_NAME:
                          type: string
                          maxLength: 30
                          description: ''
                        SRCSYSTEM:
                          type: string
                          maxLength: 10
                          description: ''
                        AUTHOR:
                          type: string
                          maxLength: 12
                          description: ''
                        DEVCLASS:
                          type: string
                          maxLength: 4
                          description: ''
                        GENFLAG:
                          type: string
                          maxLength: 1
                          description: ''
                        STATUS:
                          type: string
                          maxLength: 1
                          description: ''
                        REFCNT:
                          type: integer
                          format: int64
                          description: ''
                        MOVING:
                          type: string
                          maxLength: 1
                          description: ''
                  TAB_OUT:
                    type: array
                    items:
                      type: object
                      properties:
                        PGMID:
                          type: string
                          maxLength: 4
                          description: ''
                        OBJECT:
                          type: string
                          maxLength: 4
                          description: ''
                        OBJ_NAME:
                          type: string
                          maxLength: 30
                          description: ''
                        SRCSYSTEM:
                          type: string
                          maxLength: 10
                          description: ''
                        AUTHOR:
                          type: string
                          maxLength: 12
                          description: ''
                        DEVCLASS:
                          type: string
                          maxLength: 4
                          description: ''
                        GENFLAG:
                          type: string
                          maxLength: 1
                          description: ''
                        STATUS:
                          type: string
                          maxLength: 1
                          description: ''
                        REFCNT:
                          type: integer
                          format: int64
                          description: ''
                        MOVING:
                          type: string
                          maxLength: 1
                          description: ''
                  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.
