openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSAQ_REMOTE_QUERY_CATALOG:
    post:
      tags:
      - AQRC
      summary: Query catalog
      operationId: /rfc/RSAQ_REMOTE_QUERY_CATALOG
      requestBody:
        content:
          application/json:
            schema:
              properties:
                GENERIC_FUNCAREA:
                  type: string
                  default: '*'
                  maxLength: 24
                GENERIC_QUERYNAME:
                  type: string
                  default: '*'
                  maxLength: 14
                GENERIC_USERGROUP:
                  type: string
                  default: '*'
                  maxLength: 12
                WITH_SYSTEM_OBJECTS:
                  type: string
                  default: ' '
                  maxLength: 1
                WORKSPACE:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Work Area
                QUERYCATALOG:
                  type: array
                  items:
                    type: object
                    properties:
                      NUM:
                        type: string
                        maxLength: 12
                        description: 'SAP Query (S): Name of a user group'
                      QUERY:
                        type: string
                        maxLength: 14
                        description: 'SAP Query (S): Query name'
                      QTEXT:
                        type: string
                        maxLength: 60
                        description: 'SAP Query: Title/notes'
                      CLAS:
                        type: string
                        maxLength: 24
                        description: 'SAP Query (S): InfoSet'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  QUERYCATALOG:
                    type: array
                    items:
                      type: object
                      properties:
                        NUM:
                          type: string
                          maxLength: 12
                          description: 'SAP Query (S): Name of a user group'
                        QUERY:
                          type: string
                          maxLength: 14
                          description: 'SAP Query (S): Query name'
                        QTEXT:
                          type: string
                          maxLength: 60
                          description: 'SAP Query: Title/notes'
                        CLAS:
                          type: string
                          maxLength: 24
                          description: 'SAP Query (S): InfoSet'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
