openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_RFC_GET_INDEX_HIERARCHY:
    post:
      tags:
      - TREX_RFC_INDEX
      summary: Get ierarchy of all indexes in a TREX Landscape
      operationId: /rfc/TREX_RFC_GET_INDEX_HIERARCHY
      requestBody:
        content:
          application/json:
            schema:
              properties:
                SHOW_TEMP_INDEXES:
                  type: integer
                  format: int64
                  description: Indicator
                INDEX_HIERARCHY:
                  type: array
                  items:
                    type: object
                    properties:
                      NODE_ID:
                        type: integer
                        format: int64
                        description: Node ID for ALV Tree
                      PARENT_ID:
                        type: integer
                        format: int64
                        description: Parent ID for ALV Tree
                      INDEX_ID:
                        type: string
                        format: byte
                        description: Index ID in TREX
                      INDEX_TYPE:
                        type: integer
                        format: int64
                        description: Index Type
                      DESCRIPTION:
                        type: string
                        format: byte
                        description: Index Description
                      SHARED:
                        type: integer
                        format: int64
                        description: Index is shared with another cube (0, 1)
              required:
              - SHOW_TEMP_INDEXES
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN_CODE:
                    type: integer
                    format: int64
                    description: Return Code
                  RETURN_TEXT:
                    type: string
                    format: byte
                    description: Return Text
                  INDEX_HIERARCHY:
                    type: array
                    items:
                      type: object
                      properties:
                        NODE_ID:
                          type: integer
                          format: int64
                          description: Node ID for ALV Tree
                        PARENT_ID:
                          type: integer
                          format: int64
                          description: Parent ID for ALV Tree
                        INDEX_ID:
                          type: string
                          format: byte
                          description: Index ID in TREX
                        INDEX_TYPE:
                          type: integer
                          format: int64
                          description: Index Type
                        DESCRIPTION:
                          type: string
                          format: byte
                          description: Index Description
                        SHARED:
                          type: integer
                          format: int64
                          description: Index is shared with another cube (0, 1)
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
