openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_RFC_DEFINE_ATTRIBUTE:
    post:
      tags:
      - TREX_RFC_ADMINISTRATION
      summary: define attribute
      operationId: /rfc/TREX_RFC_DEFINE_ATTRIBUTE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                INDEXSERVER_LOCATION:
                  type: string
                  format: byte
                  description: Host:Port
                INDEX_ID:
                  type: string
                  format: byte
                  description: IndexId
                ATTRIBUTE_DEFINITIONS:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTRNAME:
                        type: string
                        format: byte
                        description: ''
                      ATTRTYPE:
                        type: string
                        format: byte
                        description: ''
                      IMPLFLAGS:
                        type: integer
                        format: int64
                        description: ''
                      TMRELEVANT:
                        type: string
                        format: byte
                        description: ''
                      GROUP:
                        type: string
                        format: byte
                        description: ''
                ATTRIBUTE_DEFINITIONS_V2:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTRNAME:
                        type: string
                        format: byte
                        description: ''
                      ATTRTYPE:
                        type: string
                        format: byte
                        description: ''
                      IMPLFLAGS:
                        type: integer
                        format: int64
                        description: ''
                      TMRELEVANT:
                        type: string
                        format: byte
                        description: ''
                      GROUP:
                        type: string
                        format: byte
                        description: ''
                      DIGITS_BEFORE:
                        type: integer
                        format: int64
                        description: ''
                      DIGITS_AFTER:
                        type: integer
                        format: int64
                        description: ''
              required:
              - INDEX_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN_CODE:
                    type: integer
                    format: int64
                    description: Return Code
                  RETURN_TEXT:
                    type: string
                    format: byte
                    description: Return Text
                  ATTRIBUTE_DEFINITIONS:
                    type: array
                    items:
                      type: object
                      properties:
                        ATTRNAME:
                          type: string
                          format: byte
                          description: ''
                        ATTRTYPE:
                          type: string
                          format: byte
                          description: ''
                        IMPLFLAGS:
                          type: integer
                          format: int64
                          description: ''
                        TMRELEVANT:
                          type: string
                          format: byte
                          description: ''
                        GROUP:
                          type: string
                          format: byte
                          description: ''
                  ATTRIBUTE_DEFINITIONS_V2:
                    type: array
                    items:
                      type: object
                      properties:
                        ATTRNAME:
                          type: string
                          format: byte
                          description: ''
                        ATTRTYPE:
                          type: string
                          format: byte
                          description: ''
                        IMPLFLAGS:
                          type: integer
                          format: int64
                          description: ''
                        TMRELEVANT:
                          type: string
                          format: byte
                          description: ''
                        GROUP:
                          type: string
                          format: byte
                          description: ''
                        DIGITS_BEFORE:
                          type: integer
                          format: int64
                          description: ''
                        DIGITS_AFTER:
                          type: integer
                          format: int64
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
