openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SCQADB_GET_QUESTIONS:
    post:
      tags:
      - SCQADB01
      operationId: /rfc/SCQADB_GET_QUESTIONS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                NODE_ID:
                  type: string
                  maxLength: 32
                  description: Unique ID - 32 characters
                QUESTIONNAIRE_ID:
                  type: string
                  maxLength: 32
                  description: Questionaire-ID
              required:
              - NODE_ID
              - QUESTIONNAIRE_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  SCQADBOUT:
                    type: array
                    items:
                      type: object
                      properties:
                        ANSID:
                          type: string
                          maxLength: 32
                          description: Answer (32 byte GUID)
                        QTEXT:
                          type: string
                          maxLength: 255
                          description: Question text
                        ANSWERTEXT:
                          type: string
                          maxLength: 1000
                          description: Text of length 1000
                        ANSWERPOSS:
                          type: array
                          items:
                            type: object
                            properties:
                              CHTEXT:
                                type: string
                                maxLength: 60
                                description: Selection name
                              SELECTED:
                                type: string
                                maxLength: 1
                                description: Answer selected
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
