openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SRET_IDXCAT_CREATE:
    post:
      tags:
      - SRAD
      operationId: /rfc/SRET_IDXCAT_CREATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                APPLICATIONKEY:
                  type: string
                  maxLength: 10
                CLASS:
                  type: string
                  maxLength: 1
                CLASSIFICATION:
                  type: string
                  maxLength: 1
                CLIENT:
                  type: string
                  maxLength: 3
                  description: Client
                CLIENTDEPENDENCE:
                  type: string
                  maxLength: 1
                DESCRIPTION:
                  type: string
                  maxLength: 50
                  description: Short description of index category
                FCT_GETDAT:
                  type: string
                  maxLength: 30
                  description: Exit for data/text collection for indexing (non-KPRO)
                MODIFYCLS:
                  type: string
                  maxLength: 3
                SAPCODEPAGE:
                  type: integer
                  format: int64
                SRSVRID:
                  type: string
                  maxLength: 10
                STATTAB:
                  type: string
                  maxLength: 30
                  description: Table for indexing status
                SYINDEPEND:
                  type: string
                  maxLength: 1
                TYPE:
                  type: string
                  maxLength: 1
                USEFILTER:
                  type: string
                  maxLength: 1
                USETM:
                  type: string
                  maxLength: 1
                CATTATTRIBUTTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTRNAME:
                        type: string
                        maxLength: 25
                        description: Category attribute name
                      ATTRVAL:
                        type: string
                        maxLength: 64
                        description: Category attribute value
                DOCATTRIBUTETAB:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTRNAME:
                        type: string
                        maxLength: 25
                        description: Document attribute name of an index category
                      ATTRTYPE:
                        type: string
                        maxLength: 1
                        description: Document Attribute Type
                      CLASSREL:
                        type: string
                        maxLength: 1
                        description: 'Indicates whether Document Attribute is Class Hierarchy  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      ERRORCODE:
                        type: string
                        maxLength: 4
                        description: Error number
                LANGUAGETAB:
                  type: array
                  items:
                    type: object
                    properties:
                      LAISO:
                        type: string
                        maxLength: 2
                        description: Language According to ISO 639 (2 Character)
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language Key
                      ERRORCODE:
                        type: string
                        maxLength: 4
                        description: Error number
                TECHATTRTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 25
                        description: Attribute Name
                      VALUE1:
                        type: string
                        maxLength: 25
                        description: Attribute Value
                      VALUE2:
                        type: string
                        maxLength: 25
                        description: Attribute Value
                      OPERATOR:
                        type: string
                        maxLength: 5
                        description: Operator
                      ERROCODE:
                        type: string
                        maxLength: 4
                        description: Error number
              required:
              - DESCRIPTION
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ERRORCODE:
                    type: string
                    maxLength: 4
                  INDEXCATEGORYID:
                    type: string
                    maxLength: 32
                    description: Key of index category
                  CATTATTRIBUTTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        ATTRNAME:
                          type: string
                          maxLength: 25
                          description: Category attribute name
                        ATTRVAL:
                          type: string
                          maxLength: 64
                          description: Category attribute value
                  DOCATTRIBUTETAB:
                    type: array
                    items:
                      type: object
                      properties:
                        ATTRNAME:
                          type: string
                          maxLength: 25
                          description: Document attribute name of an index category
                        ATTRTYPE:
                          type: string
                          maxLength: 1
                          description: Document Attribute Type
                        CLASSREL:
                          type: string
                          maxLength: 1
                          description: 'Indicates whether Document Attribute is Class Hierarchy  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        ERRORCODE:
                          type: string
                          maxLength: 4
                          description: Error number
                  LANGUAGETAB:
                    type: array
                    items:
                      type: object
                      properties:
                        LAISO:
                          type: string
                          maxLength: 2
                          description: Language According to ISO 639 (2 Character)
                        LANGU:
                          type: string
                          maxLength: 1
                          description: Language Key
                        ERRORCODE:
                          type: string
                          maxLength: 4
                          description: Error number
                  TECHATTRTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 25
                          description: Attribute Name
                        VALUE1:
                          type: string
                          maxLength: 25
                          description: Attribute Value
                        VALUE2:
                          type: string
                          maxLength: 25
                          description: Attribute Value
                        OPERATOR:
                          type: string
                          maxLength: 5
                          description: Operator
                        ERROCODE:
                          type: string
                          maxLength: 4
                          description: Error number
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
