openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TR_GOSDIR_SERVER:
    post:
      tags:
      - SR02
      operationId: /rfc/TR_GOSDIR_SERVER
      requestBody:
        content:
          application/json:
            schema:
              properties:
                COMMAND:
                  type: string
                  default: READ
                  maxLength: 10
                HOST:
                  type: string
                  maxLength: 8
                IS_GOSDIR:
                  type: object
                  properties:
                    TYPE:
                      type: string
                      maxLength: 4
                      description: Type of GOSDIR Entry
                    HASHCODE:
                      type: string
                      maxLength: 40
                      description: Hash Value (160 Bits)
                    OBJ_STRING:
                      type: string
                      description: String for GOSDIR
                    ABAP_PGMID:
                      type: string
                      maxLength: 4
                      description: Program ID in Requests and Tasks
                    ABAP_TYPE:
                      type: string
                      maxLength: 4
                      description: Object Type
                    ABAP_NAME:
                      type: string
                      maxLength: 40
                      description: Object Name in Object Directory
              required:
              - COMMAND
              - IS_GOSDIR
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ES_GOSDIR:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 4
                        description: Type of GOSDIR Entry
                      HASHCODE:
                        type: string
                        maxLength: 40
                        description: Hash Value (160 Bits)
                      OBJ_STRING:
                        type: string
                        description: String for GOSDIR
                      ABAP_PGMID:
                        type: string
                        maxLength: 4
                        description: Program ID in Requests and Tasks
                      ABAP_TYPE:
                        type: string
                        maxLength: 4
                        description: Object Type
                      ABAP_NAME:
                        type: string
                        maxLength: 40
                        description: Object Name in Object Directory
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
