openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SRET_SRSVR_READ:
    post:
      tags:
      - SRAD
      operationId: /rfc/SRET_SRSVR_READ
      requestBody:
        content:
          application/json:
            schema:
              properties:
                SRSVRID:
                  type: string
                  maxLength: 10
                SRRFCDESTINFO:
                  type: array
                  items:
                    type: object
                    properties:
                      SRSVRID:
                        type: string
                        maxLength: 10
                        description: Search server relation ID
                      ACTION:
                        type: string
                        maxLength: 1
                        description: Search server relation task (search or index)
                      SSRCNT:
                        type: integer
                        format: int64
                        description: Search server relation counter for database uniqueness
                      STATUS:
                        type: string
                        maxLength: 1
                        description: Status of RFC destination for a search server relation
                      RFCDEST:
                        type: string
                        maxLength: 32
                        description: RFC Destination for Indexing and Searching (TCPIP)
                      RFCDEAM:
                        type: string
                        maxLength: 32
                        description: RFC destination for administration calls
                      SEARCHENG:
                        type: string
                        maxLength: 8
                        description: 'Search engine used  enumValues: VERITY=VERITY Search Engine,DRFUZZY=DRFUZZY Search Engine'
                        enum:
                        - VERITY
                        - DRFUZZY
                      ERRCNT:
                        type: integer
                        format: int64
                        description: Counter for RFC errors and search engine errors
                      THRESH:
                        type: integer
                        format: int64
                        description: Error threshhold
                      TIMEDEL:
                        type: integer
                        format: int64
                        description: Time interval in seconds between two error situations
                      LERTIM:
                        type: integer
                        format: int64
                        description: Time stamp for when an error last occurred
                      CHNG_USER:
                        type: string
                        maxLength: 12
                        description: SAP user who last changed the index category
                      CHTIME:
                        type: integer
                        format: int64
                        description: Last change - date and time (UTC)
              required:
              - SRSVRID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  SRSVRDEF:
                    type: object
                    properties:
                      SRSVRID:
                        type: string
                        maxLength: 10
                        description: Search server relation ID
                      SEARCHENG:
                        type: string
                        maxLength: 8
                        description: 'Search engine used  enumValues: VERITY=VERITY Search Engine,DRFUZZY=DRFUZZY Search Engine'
                        enum:
                        - VERITY
                        - DRFUZZY
                      CREA_USER:
                        type: string
                        maxLength: 12
                        description: User who created the search server relation
                      CRTIME:
                        type: integer
                        format: int64
                        description: Creation time - date and time
                      CHNG_USER:
                        type: string
                        maxLength: 12
                        description: Last changed by (user)
                      CHTIME:
                        type: integer
                        format: int64
                        description: 'Time of last change: Date/Time (UTC)'
                      BLKFAC:
                        type: integer
                        format: int64
                        description: Blocking factor for indexing
                      SRSVRACT:
                        type: string
                        maxLength: 1
                        description: Active flag for automatic assigment to an index category
                  SRRFCDESTINFO:
                    type: array
                    items:
                      type: object
                      properties:
                        SRSVRID:
                          type: string
                          maxLength: 10
                          description: Search server relation ID
                        ACTION:
                          type: string
                          maxLength: 1
                          description: Search server relation task (search or index)
                        SSRCNT:
                          type: integer
                          format: int64
                          description: Search server relation counter for database uniqueness
                        STATUS:
                          type: string
                          maxLength: 1
                          description: Status of RFC destination for a search server relation
                        RFCDEST:
                          type: string
                          maxLength: 32
                          description: RFC Destination for Indexing and Searching (TCPIP)
                        RFCDEAM:
                          type: string
                          maxLength: 32
                          description: RFC destination for administration calls
                        SEARCHENG:
                          type: string
                          maxLength: 8
                          description: 'Search engine used  enumValues: VERITY=VERITY Search Engine,DRFUZZY=DRFUZZY Search Engine'
                          enum:
                          - VERITY
                          - DRFUZZY
                        ERRCNT:
                          type: integer
                          format: int64
                          description: Counter for RFC errors and search engine errors
                        THRESH:
                          type: integer
                          format: int64
                          description: Error threshhold
                        TIMEDEL:
                          type: integer
                          format: int64
                          description: Time interval in seconds between two error situations
                        LERTIM:
                          type: integer
                          format: int64
                          description: Time stamp for when an error last occurred
                        CHNG_USER:
                          type: string
                          maxLength: 12
                          description: SAP user who last changed the index category
                        CHTIME:
                          type: integer
                          format: int64
                          description: Last change - date and time (UTC)
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
