openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSAQ_REMOTE_QUERY_GENERATION:
    post:
      tags:
      - AQRC
      operationId: /rfc/RSAQ_REMOTE_QUERY_GENERATION
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DISPLAY_BY_ALV:
                  type: string
                  default: X
                  maxLength: 1
                FUNCAREA:
                  type: string
                  maxLength: 24
                  description: InfoSet
                QU_TITLE:
                  type: string
                  default: ' '
                  maxLength: 70
                  description: Title of query
                WITH_SYSTEM_OBJECTS:
                  type: string
                  default: ' '
                  maxLength: 1
                WORKSPACE:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Work Area
                FIELDS:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 70
                        description: 'SAP Query (S): Field name (table field)'
                SELECT_FIELDS:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 70
                        description: 'SAP Query (S): Field name (table field)'
                SORT_FIELDS:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 70
                        description: 'SAP Query (S): Field name (table field)'
                      DESCENDING:
                        type: string
                        maxLength: 1
                        description: 'SAP Query (S): Flag'
              required:
              - FUNCAREA
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  QUERY:
                    type: string
                    maxLength: 14
                  USERGROUP:
                    type: string
                    maxLength: 12
                    description: User Group
                  FIELDS:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 70
                          description: 'SAP Query (S): Field name (table field)'
                  SELECT_FIELDS:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 70
                          description: 'SAP Query (S): Field name (table field)'
                  SORT_FIELDS:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 70
                          description: 'SAP Query (S): Field name (table field)'
                        DESCENDING:
                          type: string
                          maxLength: 1
                          description: 'SAP Query (S): Flag'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
