openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SRET_IDXCAT_OPTIMIZE:
    post:
      tags:
      - SRIN
      operationId: /rfc/SRET_IDXCAT_OPTIMIZE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CATID:
                  type: string
                  maxLength: 32
                  description: Index category ID
                CLASSIFICATION:
                  type: string
                  maxLength: 1
                CLIENT:
                  type: string
                  maxLength: 3
                  description: Client
                DELAYMODE:
                  type: string
                  maxLength: 1
                LAISO:
                  type: string
                  maxLength: 2
                  description: Language key according to ISO 639
                LANGU:
                  type: string
                  maxLength: 1
                DOCUMENTTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      DOCID:
                        type: string
                        maxLength: 64
                        description: Document ID
                      STATUSID:
                        type: integer
                        format: int64
                        description: Return code
              required:
              - CATID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ERRORCODE:
                    type: string
                    maxLength: 4
                    description: Error Code
                  DOCUMENTTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        DOCID:
                          type: string
                          maxLength: 64
                          description: Document ID
                        STATUSID:
                          type: integer
                          format: int64
                          description: Return code
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
