openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CAT_VARIANT_EXISTS:
    post:
      tags:
      - STTF
      operationId: /rfc/CAT_VARIANT_EXISTS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ABLNR:
                  type: string
                  maxLength: 30
                  description: CATT procedure
                SPRAS:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                VARNT:
                  type: string
                  default: ' '
                  maxLength: 8
                VARIANTS:
                  type: array
                  items:
                    type: object
                    properties:
                      VARID:
                        type: string
                        maxLength: 8
                        description: CATT - Variant ID
                      VARTX:
                        type: string
                        maxLength: 50
                        description: 'CATT: Parameter Text'
              required:
              - ABLNR
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  VARTX:
                    type: string
                    maxLength: 50
                  VARIANTS:
                    type: array
                    items:
                      type: object
                      properties:
                        VARID:
                          type: string
                          maxLength: 8
                          description: CATT - Variant ID
                        VARTX:
                          type: string
                          maxLength: 50
                          description: 'CATT: Parameter Text'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
