openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SCQADB_GET_QUESTIONNAIRE_HY:
    post:
      tags:
      - SCQADB01
      operationId: /rfc/SCQADB_GET_QUESTIONNAIRE_HY
      requestBody:
        content:
          application/json:
            schema:
              properties:
                QUESTIONNAIRE_ID:
                  type: string
                  maxLength: 32
                  description: Questionaire-ID
                QNAIRE_HIER:
                  type: array
                  items:
                    type: object
                    properties:
                      QNAIRE_ID:
                        type: string
                        maxLength: 32
                        description: Questionnaire ID
                      NODE_ID:
                        type: string
                        maxLength: 32
                        description: Unique ID - 32 characters
                      SEQUENCE:
                        type: integer
                        format: int64
                        description: 'Internal: Node ID'
                      NODE_LEVEL:
                        type: integer
                        format: int64
                        description: Node level
                      PARENT_ID:
                        type: string
                        maxLength: 32
                        description: Unique ID - 32 characters
                      NODE_TYPE:
                        type: string
                        maxLength: 4
                        description: Valid Node Types in Structure Repository
                      NO_QUEST:
                        type: integer
                        format: int64
                        description: Number of questions
                      TEXT:
                        type: string
                        maxLength: 75
                        description: Explanatory text
                      TREE_ID:
                        type: string
                        maxLength: 32
                        description: Unique ID - 32 characters
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  QNAIRE_HIER:
                    type: array
                    items:
                      type: object
                      properties:
                        QNAIRE_ID:
                          type: string
                          maxLength: 32
                          description: Questionnaire ID
                        NODE_ID:
                          type: string
                          maxLength: 32
                          description: Unique ID - 32 characters
                        SEQUENCE:
                          type: integer
                          format: int64
                          description: 'Internal: Node ID'
                        NODE_LEVEL:
                          type: integer
                          format: int64
                          description: Node level
                        PARENT_ID:
                          type: string
                          maxLength: 32
                          description: Unique ID - 32 characters
                        NODE_TYPE:
                          type: string
                          maxLength: 4
                          description: Valid Node Types in Structure Repository
                        NO_QUEST:
                          type: integer
                          format: int64
                          description: Number of questions
                        TEXT:
                          type: string
                          maxLength: 75
                          description: Explanatory text
                        TREE_ID:
                          type: string
                          maxLength: 32
                          description: Unique ID - 32 characters
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
