openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/XDB_GET_META_DATA:
    post:
      tags:
      - SSHO
      operationId: /rfc/XDB_GET_META_DATA
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_DBAFID:
                  type: array
                  items:
                    type: object
                    properties:
                      DBNAME:
                        type: string
                        maxLength: 10
                        description: 'Database system  enumValues: DB2=DB2,SQLSERVER=Microsoft SQL Server,SAP DB=SAP DB,DB4=DB4,DB6=DB6,INFORMIX=Informix,ORACLE=Oracle'
                        enum:
                        - DB2
                        - SQLSERVER
                        - SAP DB
                        - DB4
                        - DB6
                        - INFORMIX
                        - ORACLE
                      TOOLSET:
                        type: string
                        maxLength: 30
                        description: Utility manufacturer
                      PROGNAME:
                        type: string
                        maxLength: 30
                        description: Name of program that executes database operation
                      FUNC_ID:
                        type: string
                        maxLength: 3
                        description: Oracle file ID
                      OPER_GROUP:
                        type: string
                        maxLength: 20
                        description: Assignment of identification (Func_ID) to operation groups
                      FUNC_DESC:
                        type: string
                        maxLength: 80
                        description: Description of DB Operation
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  NUMBER_OF_RECORDS:
                    type: integer
                    format: int32
                    description: DB operations, number of table lines processed
                  I_DBAFID:
                    type: array
                    items:
                      type: object
                      properties:
                        DBNAME:
                          type: string
                          maxLength: 10
                          description: 'Database system  enumValues: DB2=DB2,SQLSERVER=Microsoft SQL Server,SAP DB=SAP DB,DB4=DB4,DB6=DB6,INFORMIX=Informix,ORACLE=Oracle'
                          enum:
                          - DB2
                          - SQLSERVER
                          - SAP DB
                          - DB4
                          - DB6
                          - INFORMIX
                          - ORACLE
                        TOOLSET:
                          type: string
                          maxLength: 30
                          description: Utility manufacturer
                        PROGNAME:
                          type: string
                          maxLength: 30
                          description: Name of program that executes database operation
                        FUNC_ID:
                          type: string
                          maxLength: 3
                          description: Oracle file ID
                        OPER_GROUP:
                          type: string
                          maxLength: 20
                          description: Assignment of identification (Func_ID) to operation groups
                        FUNC_DESC:
                          type: string
                          maxLength: 80
                          description: Description of DB Operation
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
