openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSDL_DB_GET_DATA_BWS:
    post:
      tags:
      - RSDL
      operationId: /rfc/RSDL_DB_GET_DATA_BWS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_S_DBCON:
                  type: object
                  properties:
                    CON_NAME:
                      type: string
                      maxLength: 30
                      description: Logical name for a database connection
                    DBMS:
                      type: string
                      maxLength: 3
                      description: 'Database system  enumValues: DB2=DB2 UDB for OS/390,MSS=Microsoft SQL Server,ADA=SAP DB (ADABAS/D),INF=Informix,ORA=Oracle,DB4=DB2 UDB for AS/400,DB6=DB2 UDB for Unix and Windows'
                      enum:
                      - DB2
                      - MSS
                      - ADA
                      - INF
                      - ORA
                      - DB4
                      - DB6
                    USER_NAME:
                      type: string
                      maxLength: 30
                      description: Database User
                    PASSWORD:
                      type: string
                      maxLength: 255
                      description: Password for setting up the connection to the database
                    CON_ENV:
                      type: string
                      maxLength: 255
                      description: Database-specific information for a database connection
                    DB_RECO:
                      type: string
                      maxLength: 1
                      description: 'Availability type for an open database connect  enumValues: ""=Not Selected,X=Selected'
                      enum:
                      - ''
                      - X
                    MAX_CONNECTIONS:
                      type: integer
                      format: int32
                      description: Maximum Number of Connections
                    OPT_CONNECTIONS:
                      type: integer
                      format: int32
                      description: Optimum Number of Connections
                I_S_OSOURCE:
                  type: object
                  properties:
                    OLTPSOURCE:
                      type: string
                      maxLength: 30
                      description: DataSource
                    LOGSYS:
                      type: string
                      maxLength: 10
                      description: Source system
                    OBJVERS:
                      type: string
                      maxLength: 1
                      description: 'Object version  enumValues: N=New,A=Active,M=Revised,D=Content,H=Historic,T=Transport'
                      enum:
                      - N
                      - A
                      - M
                      - D
                      - H
                      - T
                    TYPE:
                      type: string
                      maxLength: 1
                      description: 'Type of requested data  enumValues: T=Master data text (language dependent description),D=Transaction data,M=Master data attributes,H=Hierachies'
                      enum:
                      - T
                      - D
                      - M
                      - H
                    APPLNM:
                      type: string
                      maxLength: 30
                      description: Application Component
                    BASOSOURCE:
                      type: string
                      maxLength: 30
                      description: Internal Name of DataSource
                    DELTA:
                      type: string
                      maxLength: 4
                      description: Delta Process for a DataSource
                    STOCKUPD:
                      type: string
                      maxLength: 1
                      description: 'Flag: Creation of opening balance is supported  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    PACKGUPD:
                      type: string
                      maxLength: 1
                      description: 'Repeated request of a data packet supported  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    TIMDEPFL:
                      type: string
                      maxLength: 1
                      description: 'Flag: Master data is time-dependent  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    EXSTRUCTURE:
                      type: string
                      maxLength: 30
                      description: Name of the provider structure for an InfoSource
                    VIRTCUBE:
                      type: string
                      maxLength: 1
                      description: 'Direct Access to Data Using a DataSource  enumValues: 2=Extractor Supports Preaggregation,1=Extractor Does Not Support Preaggregation,D=Direct Access Not Possible'
                      enum:
                      - '2'
                      - '1'
                      - D
                    CHARONLY:
                      type: string
                      maxLength: 1
                      description: 'Structure only allows character fields  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    TSTPNM:
                      type: string
                      maxLength: 12
                      description: Last changed by
                    TIMESTMP:
                      type: integer
                      format: int64
                      description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                    DELTAACT:
                      type: string
                      maxLength: 1
                      description: 'Boolean  enumValues: X=True,""=False'
                      enum:
                      - X
                      - ''
                    ICON:
                      type: string
                      maxLength: 4
                      description: Icon in text fields (substitute display, alias)
                    CONTREL:
                      type: string
                      maxLength: 6
                      description: Content release
                    CONTTIMESTMP:
                      type: integer
                      format: int64
                      description: 'Content time stamp: Last modification to the object by SAP'
                    APPL_CALLBACK:
                      type: string
                      maxLength: 30
                      description: Function name
                    TFMETHODS:
                      type: string
                      maxLength: 1
                      description: 'Supported transfer methods  enumValues: 1=Only IDOC,2=Only PSA,3=IDOC and PSA,""=Default Value (depending on DataSource type)'
                      enum:
                      - '1'
                      - '2'
                      - '3'
                      - ''
                    ARCHMETHOD:
                      type: string
                      maxLength: 1
                      description: 'Archive Link of a DataSource  enumValues: 1=Archive Access with Mandatory File Selection,2=Archive Access with Optional File Selection,""=No Archive Access'
                      enum:
                      - '1'
                      - '2'
                      - ''
                    DUPREC:
                      type: string
                      maxLength: 1
                      description: 'Flag: DataSource returns duplicate records  enumValues: ""=Undefined,0=None,1=Allowed'
                      enum:
                      - ''
                      - '0'
                      - '1'
                    BCTCOMP:
                      type: string
                      maxLength: 10
                      description: Obsolete (Component of BI Content)
                    INITSIMU:
                      type: string
                      maxLength: 1
                      description: Delta process initialization simulation
                    ZDD_ABLE:
                      type: string
                      maxLength: 1
                      description: 'Boolean  enumValues: X=True,""=False'
                      enum:
                      - X
                      - ''
                    REALTIME:
                      type: string
                      maxLength: 1
                      description: 'Real-Time Property of a DataSource  enumValues: ""=Real-Time Data Acquisition Is Not Supported,X=Real-Time Data Acquisition Supported'
                      enum:
                      - ''
                      - X
                    OBSOLETE:
                      type: string
                      maxLength: 1
                      description: 'Indicator: The DataSource Is Obsolete  enumValues: X=True,""=False'
                      enum:
                      - X
                      - ''
                    PRIMSEGID:
                      type: integer
                      format: int64
                      description: Primary Segment
                    OBJECTFD:
                      type: string
                      maxLength: 30
                      description: 'Field Name: Object ID'
                    CONTSRCVERS:
                      type: string
                      maxLength: 6
                      description: Content Version of DataSource
                    RECONCILIATION:
                      type: string
                      maxLength: 1
                      description: 'DataSource for Data Synchronization  enumValues: X=True,""=False'
                      enum:
                      - X
                      - ''
                I_S_TABSEL:
                  type: object
                  properties:
                    SCHEMA:
                      type: string
                      maxLength: 30
                      description: Table or index name
                    NAME:
                      type: string
                      maxLength: 30
                      description: Table or index name
                    TYPE:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                I_T_DBFIELDS:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 30
                        description: Name of the DB field
                      COLUMN:
                        type: integer
                        format: int64
                        description: Position of the field in the table
                      KEYFLAG:
                        type: string
                        maxLength: 1
                        description: 'Identifies a key field of a table  enumValues: X=Key field,""=No key field'
                        enum:
                        - X
                        - ''
                      KEYPOS:
                        type: integer
                        format: int64
                        description: Position of the index column within the indexes (1,2..)
                      TYPE:
                        type: string
                        maxLength: 20
                        description: Database type
                      LENGTH:
                        type: integer
                        format: int64
                        description: Length (No. of Characters)
                      DECIMALS:
                        type: integer
                        format: int64
                        description: Number of Decimal Places
                      NULLABLE:
                        type: string
                        maxLength: 1
                        description: 'Null values allowed  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      DEFAULTVAL:
                        type: string
                        maxLength: 75
                        description: Default value for a DB column
                      DEFAULTPFX:
                        type: string
                        maxLength: 3
                        description: Prefix/Suffix for a DB default value
                I_T_SELECT:
                  type: array
                  items:
                    type: object
                    properties:
                      FIELDNM:
                        type: string
                        maxLength: 30
                        description: Field name
                      SIGN:
                        type: string
                        maxLength: 1
                        description: 'Selection criteria: SIGN'
                      OPTION:
                        type: string
                        maxLength: 2
                        description: 'Selection criteria: OPTION'
                      LOW:
                        type: string
                        maxLength: 45
                        description: 'Selection criteria: From value'
                      HIGH:
                        type: string
                        maxLength: 45
                        description: 'Selection criteria: To value'
              required:
              - I_S_DBCON
              - I_S_OSOURCE
              - I_S_TABSEL
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  I_T_DBFIELDS:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 30
                          description: Name of the DB field
                        COLUMN:
                          type: integer
                          format: int64
                          description: Position of the field in the table
                        KEYFLAG:
                          type: string
                          maxLength: 1
                          description: 'Identifies a key field of a table  enumValues: X=Key field,""=No key field'
                          enum:
                          - X
                          - ''
                        KEYPOS:
                          type: integer
                          format: int64
                          description: Position of the index column within the indexes (1,2..)
                        TYPE:
                          type: string
                          maxLength: 20
                          description: Database type
                        LENGTH:
                          type: integer
                          format: int64
                          description: Length (No. of Characters)
                        DECIMALS:
                          type: integer
                          format: int64
                          description: Number of Decimal Places
                        NULLABLE:
                          type: string
                          maxLength: 1
                          description: 'Null values allowed  enumValues: ""=Do not set flag,X=Set flag'
                          enum:
                          - ''
                          - X
                        DEFAULTVAL:
                          type: string
                          maxLength: 75
                          description: Default value for a DB column
                        DEFAULTPFX:
                          type: string
                          maxLength: 3
                          description: Prefix/Suffix for a DB default value
                  I_T_SELECT:
                    type: array
                    items:
                      type: object
                      properties:
                        FIELDNM:
                          type: string
                          maxLength: 30
                          description: Field name
                        SIGN:
                          type: string
                          maxLength: 1
                          description: 'Selection criteria: SIGN'
                        OPTION:
                          type: string
                          maxLength: 2
                          description: 'Selection criteria: OPTION'
                        LOW:
                          type: string
                          maxLength: 45
                          description: 'Selection criteria: From value'
                        HIGH:
                          type: string
                          maxLength: 45
                          description: 'Selection criteria: To value'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
