openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SEFS_GET_INDEX_CRAWL_STATE:
    post:
      tags:
      - SEFS_INDEX
      summary: Get Index State and Crawl State
      operationId: /rfc/SEFS_GET_INDEX_CRAWL_STATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IT_OBJECT_TYPE_INDEX:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJECT_TYPE:
                        type: string
                        maxLength: 40
                        description: Object Type
                      INDEX_NAME:
                        type: string
                        maxLength: 40
                        description: Index Name
                      INDEX_ID:
                        type: string
                        maxLength: 64
                        description: Index ID
                IV_LOG_HANDLE:
                  type: string
                  maxLength: 22
                  description: 'Application Log: Log Handle'
              required:
              - IT_OBJECT_TYPE_INDEX
              - IV_LOG_HANDLE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_CRAWL_STATE:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJECT_TYPE:
                          type: string
                          maxLength: 40
                          description: Object Type
                        INDEX_NAME:
                          type: string
                          maxLength: 40
                          description: Index Name
                        INDEX_ID:
                          type: string
                          maxLength: 64
                          description: Index ID
                        CRAWL_NAME:
                          type: string
                          maxLength: 40
                          description: Crawl Name
                        CRAWL_ID:
                          type: string
                          maxLength: 64
                          description: Crawl ID
                        CRAWL_STATE:
                          type: integer
                          format: int64
                          description: Crawl Status
                        CRAWL_STATE_DESCR:
                          type: string
                          maxLength: 60
                          description: Crawl Status Description
                        CRAWL_START_TIME:
                          type: integer
                          format: int64
                          description: Crawl Start Time (Timestamp)
                        CRAWL_FINISH_TIME:
                          type: integer
                          format: int64
                          description: Crawl End Time (Timestamp)
                        SEEDURL:
                          type: string
                          description: Seed URL
                        URLS_INDEXED:
                          type: integer
                          format: int64
                          description: Send URLs to Index
                        ERROR_COUNT:
                          type: integer
                          format: int64
                          description: Errors
                  ET_INDEX_STATE:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJECT_TYPE:
                          type: string
                          maxLength: 40
                          description: Object Type
                        INDEX_NAME:
                          type: string
                          maxLength: 40
                          description: Index Name
                        INDEX_ID:
                          type: string
                          maxLength: 64
                          description: Index ID
                        INDEX_STATE:
                          type: integer
                          format: int64
                          description: Index Status
                        INDEX_STATE_DESCR:
                          type: string
                          maxLength: 60
                          description: Index Status Description
                        LAST_INDEXING:
                          type: integer
                          format: int64
                          description: Last Indexing (Timestamp)
                        LAST_OPTIMIZE:
                          type: integer
                          format: int64
                          description: Last Optimization (Timestamp)
                        QUEUE_CNT_IPROC:
                          type: integer
                          format: int32
                          description: Number of Objects in Process
                        QUEUE_CNT_ERROR:
                          type: integer
                          format: int32
                          description: Number of Objects with Error Status
                        QUEUE_CNT_SEARCH:
                          type: integer
                          format: int32
                          description: Number of Searchable Objects
                  ET_RETURN_CODES:
                    type: array
                    items:
                      type: object
                      properties:
                        LOGSYS:
                          type: string
                          maxLength: 60
                          description: Logical system (format length like XI)
                        OBJECT_TYPE_ID:
                          type: string
                          maxLength: 255
                          description: Object type within a search service provider
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                        ID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        NUMBER:
                          type: integer
                          format: int64
                          description: Message Number
                        MESSAGE:
                          type: string
                          maxLength: 220
                          description: Message Text
                        LOG_NO:
                          type: string
                          maxLength: 20
                          description: 'Application log: log number'
                        LOG_MSG_NO:
                          type: integer
                          format: int64
                          description: 'Application log: Internal message serial number'
                        MESSAGE_V1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        PARAMETER:
                          type: string
                          maxLength: 32
                          description: Parameter Name
                        ROW:
                          type: integer
                          format: int32
                          description: Lines in parameter
                        FIELD:
                          type: string
                          maxLength: 30
                          description: Field in parameter
                  EV_LOG_HANDLE:
                    type: string
                    maxLength: 22
                    description: 'Application Log: Log Handle'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
