openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DB6_GET_CATALOG_INFO:
    post:
      tags:
      - SDB6EXPLAIN
      summary: 'DB6: Fill Systables,syscolumns,sysindexes for a Given Object (Table/Index)'
      operationId: /rfc/DB6_GET_CATALOG_INFO
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ADVISE_MODE:
                  type: string
                  default: ABAP_FALSE
                  maxLength: 1
                  description: get index data from ADVISE_INDEX yes or no
                CONNECTION:
                  type: string
                  maxLength: 30
                  description: Logical name for a database connection
                EEE_FLAG:
                  type: string
                  maxLength: 1
                EXPLAIN_SCHEMA:
                  type: string
                  maxLength: 20
                  description: 'DB6: Schema Name'
                OBJECT_NAME:
                  type: string
                  maxLength: 128
                OBJECT_SCHEMA:
                  type: string
                  maxLength: 128
                OBJECT_TYPE:
                  type: string
                  default: TA
                  maxLength: 2
                SYSCOLUMNS:
                  type: array
                  items:
                    type: object
                    properties:
                      TABSCHEMA:
                        type: string
                        maxLength: 128
                        description: ''
                      TABNAME:
                        type: string
                        maxLength: 128
                        description: ''
                      COLNAME:
                        type: string
                        maxLength: 128
                        description: ''
                      COLNO:
                        type: integer
                        format: int32
                        description: ''
                      TYPENAME:
                        type: string
                        maxLength: 18
                        description: ''
                      LENGTH:
                        type: integer
                        format: int32
                        description: ''
                      COLCARD:
                        type: integer
                        format: int32
                        description: ''
                      HIGH2KEY:
                        type: string
                        maxLength: 254
                        description: ''
                      LOW2KEY:
                        type: string
                        maxLength: 254
                        description: ''
                      AVGCOLLEN:
                        type: integer
                        format: int32
                        description: ''
                      KEYSEQ:
                        type: integer
                        format: int32
                        description: ''
                SYSINDEXES:
                  type: array
                  items:
                    type: object
                    properties:
                      INDSCHEMA:
                        type: string
                        maxLength: 128
                        description: ''
                      INDNAME:
                        type: string
                        maxLength: 128
                        description: ''
                      TABSCHEMA:
                        type: string
                        maxLength: 128
                        description: ''
                      TABNAME:
                        type: string
                        maxLength: 128
                        description: ''
                      COLNAMES:
                        type: string
                        maxLength: 640
                        description: ''
                      UNIQUERULE:
                        type: string
                        maxLength: 1
                        description: ''
                      COLCOUNT:
                        type: integer
                        format: int32
                        description: ''
                      NLEAF:
                        type: integer
                        format: int32
                        description: ''
                      NLEVELS:
                        type: integer
                        format: int32
                        description: ''
                      FRSTKCARD:
                        type: integer
                        format: int32
                        description: ''
                      FRST2KCARD:
                        type: integer
                        format: int32
                        description: ''
                      FRST3KCARD:
                        type: integer
                        format: int32
                        description: ''
                      FRST4KCARD:
                        type: integer
                        format: int32
                        description: ''
                      FULLKCARD:
                        type: integer
                        format: int32
                        description: ''
                      CLSTRRATIO:
                        type: integer
                        format: int32
                        description: ''
                      CLSTRFACTR:
                        type: number
                        description: ''
                      CREA_TIME:
                        type: string
                        maxLength: 26
                        description: ''
                      STATS_TIME:
                        type: string
                        maxLength: 26
                        description: ''
                SYSNODES:
                  type: array
                  items:
                    type: object
                    properties:
                      NGNAME:
                        type: string
                        maxLength: 18
                        description: ''
                      PMAP_ID:
                        type: integer
                        format: int32
                        description: ''
                      NODENUM:
                        type: integer
                        format: int32
                        description: ''
                      IN_USE:
                        type: string
                        maxLength: 1
                        description: ''
                SYSTABLES:
                  type: array
                  items:
                    type: object
                    properties:
                      TABSCHEMA:
                        type: string
                        maxLength: 128
                        description: ''
                      TABNAME:
                        type: string
                        maxLength: 128
                        description: ''
                      TYPE:
                        type: string
                        maxLength: 1
                        description: ''
                      CREA_TIME:
                        type: string
                        maxLength: 26
                        description: ''
                      STATS_TIME:
                        type: string
                        maxLength: 26
                        description: ''
                      COLCOUNT:
                        type: integer
                        format: int32
                        description: ''
                      CARD:
                        type: integer
                        format: int32
                        description: ''
                      NPAGES:
                        type: integer
                        format: int32
                        description: ''
                      FPAGES:
                        type: integer
                        format: int32
                        description: ''
                      OVERFLOW:
                        type: integer
                        format: int32
                        description: ''
                      TBSPACE:
                        type: string
                        maxLength: 18
                        description: ''
                      IND_TBSP:
                        type: string
                        maxLength: 18
                        description: ''
                      LONG_TBSP:
                        type: string
                        maxLength: 18
                        description: ''
                      VOLATILE:
                        type: string
                        maxLength: 1
                        description: ''
                      TBSPNGNAME:
                        type: string
                        maxLength: 18
                        description: ''
                      TBSPNODNUM:
                        type: string
                        maxLength: 150
                        description: ''
              required:
              - EEE_FLAG
              - OBJECT_NAME
              - OBJECT_SCHEMA
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  SYSCOLUMNS:
                    type: array
                    items:
                      type: object
                      properties:
                        TABSCHEMA:
                          type: string
                          maxLength: 128
                          description: ''
                        TABNAME:
                          type: string
                          maxLength: 128
                          description: ''
                        COLNAME:
                          type: string
                          maxLength: 128
                          description: ''
                        COLNO:
                          type: integer
                          format: int32
                          description: ''
                        TYPENAME:
                          type: string
                          maxLength: 18
                          description: ''
                        LENGTH:
                          type: integer
                          format: int32
                          description: ''
                        COLCARD:
                          type: integer
                          format: int32
                          description: ''
                        HIGH2KEY:
                          type: string
                          maxLength: 254
                          description: ''
                        LOW2KEY:
                          type: string
                          maxLength: 254
                          description: ''
                        AVGCOLLEN:
                          type: integer
                          format: int32
                          description: ''
                        KEYSEQ:
                          type: integer
                          format: int32
                          description: ''
                  SYSINDEXES:
                    type: array
                    items:
                      type: object
                      properties:
                        INDSCHEMA:
                          type: string
                          maxLength: 128
                          description: ''
                        INDNAME:
                          type: string
                          maxLength: 128
                          description: ''
                        TABSCHEMA:
                          type: string
                          maxLength: 128
                          description: ''
                        TABNAME:
                          type: string
                          maxLength: 128
                          description: ''
                        COLNAMES:
                          type: string
                          maxLength: 640
                          description: ''
                        UNIQUERULE:
                          type: string
                          maxLength: 1
                          description: ''
                        COLCOUNT:
                          type: integer
                          format: int32
                          description: ''
                        NLEAF:
                          type: integer
                          format: int32
                          description: ''
                        NLEVELS:
                          type: integer
                          format: int32
                          description: ''
                        FRSTKCARD:
                          type: integer
                          format: int32
                          description: ''
                        FRST2KCARD:
                          type: integer
                          format: int32
                          description: ''
                        FRST3KCARD:
                          type: integer
                          format: int32
                          description: ''
                        FRST4KCARD:
                          type: integer
                          format: int32
                          description: ''
                        FULLKCARD:
                          type: integer
                          format: int32
                          description: ''
                        CLSTRRATIO:
                          type: integer
                          format: int32
                          description: ''
                        CLSTRFACTR:
                          type: number
                          description: ''
                        CREA_TIME:
                          type: string
                          maxLength: 26
                          description: ''
                        STATS_TIME:
                          type: string
                          maxLength: 26
                          description: ''
                  SYSNODES:
                    type: array
                    items:
                      type: object
                      properties:
                        NGNAME:
                          type: string
                          maxLength: 18
                          description: ''
                        PMAP_ID:
                          type: integer
                          format: int32
                          description: ''
                        NODENUM:
                          type: integer
                          format: int32
                          description: ''
                        IN_USE:
                          type: string
                          maxLength: 1
                          description: ''
                  SYSTABLES:
                    type: array
                    items:
                      type: object
                      properties:
                        TABSCHEMA:
                          type: string
                          maxLength: 128
                          description: ''
                        TABNAME:
                          type: string
                          maxLength: 128
                          description: ''
                        TYPE:
                          type: string
                          maxLength: 1
                          description: ''
                        CREA_TIME:
                          type: string
                          maxLength: 26
                          description: ''
                        STATS_TIME:
                          type: string
                          maxLength: 26
                          description: ''
                        COLCOUNT:
                          type: integer
                          format: int32
                          description: ''
                        CARD:
                          type: integer
                          format: int32
                          description: ''
                        NPAGES:
                          type: integer
                          format: int32
                          description: ''
                        FPAGES:
                          type: integer
                          format: int32
                          description: ''
                        OVERFLOW:
                          type: integer
                          format: int32
                          description: ''
                        TBSPACE:
                          type: string
                          maxLength: 18
                          description: ''
                        IND_TBSP:
                          type: string
                          maxLength: 18
                          description: ''
                        LONG_TBSP:
                          type: string
                          maxLength: 18
                          description: ''
                        VOLATILE:
                          type: string
                          maxLength: 1
                          description: ''
                        TBSPNGNAME:
                          type: string
                          maxLength: 18
                          description: ''
                        TBSPNODNUM:
                          type: string
                          maxLength: 150
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
