openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_RFC_CREATE_CRUISE:
    post:
      tags:
      - TREX_RFC_CRUISER
      summary: create cruise
      operationId: /rfc/TREX_RFC_CREATE_CRUISE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CRUISE_NAME:
                  type: string
                  format: byte
                DEINDEX_FLAG:
                  type: integer
                  format: int64
                  description: File extensions that are to be crawled
                FILE_EXTENSIONS:
                  type: object
                  properties:
                    LINE:
                      type: string
                      format: byte
                      description: ''
                INDEX_ID:
                  type: string
                  format: byte
                  description: IndexId
                MAX_DEPTH:
                  type: integer
                  format: int64
                  description: IndexId
                MAX_RETRY_COUNT:
                  type: integer
                  format: int64
                  description: IndexId
                OPTIMIZE_EVERY:
                  type: integer
                  format: int64
                  description: File extensions that are to be crawled
                RUN_MODE:
                  type: integer
                  format: int64
                  description: IndexId
                USE_QUEUESERVER:
                  type: string
                  format: byte
                  description: File extensions that are to be crawled
                DOC_ATTRIBUTE_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      DOC_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                      ATTR_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                      ATTR_NAME:
                        type: string
                        format: byte
                        description: ''
                      VALUE1:
                        type: string
                        format: byte
                        description: ''
                      ATTR_TYPE:
                        type: string
                        format: byte
                        description: ''
                EXCLUDE_DIRS:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        format: byte
                        description: ''
                INDEX_DOCUMENT_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      DOC_KEY:
                        type: string
                        format: byte
                        description: ''
                      DOC_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                      DOC_LANGU:
                        type: string
                        format: byte
                        description: ''
                      DOC_STATUS:
                        type: integer
                        format: int64
                        description: ''
                      CLASS_REL:
                        type: string
                        format: byte
                        description: ''
                      SEARCH_REL:
                        type: string
                        format: byte
                        description: ''
                      MIME_TYPE:
                        type: string
                        format: byte
                        description: ''
                      DOC_TYPE:
                        type: string
                        format: byte
                        description: ''
                      DOC_ACTION:
                        type: string
                        format: byte
                        description: ''
                REGULAR_EXPRESSION:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        format: byte
                        description: ''
              required:
              - CRUISE_NAME
              - DEINDEX_FLAG
              - FILE_EXTENSIONS
              - INDEX_ID
              - MAX_DEPTH
              - MAX_RETRY_COUNT
              - OPTIMIZE_EVERY
              - RUN_MODE
              - USE_QUEUESERVER
      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
                  DOC_ATTRIBUTE_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        DOC_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                        ATTR_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                        ATTR_NAME:
                          type: string
                          format: byte
                          description: ''
                        VALUE1:
                          type: string
                          format: byte
                          description: ''
                        ATTR_TYPE:
                          type: string
                          format: byte
                          description: ''
                  EXCLUDE_DIRS:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          format: byte
                          description: ''
                  INDEX_DOCUMENT_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        DOC_KEY:
                          type: string
                          format: byte
                          description: ''
                        DOC_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                        DOC_LANGU:
                          type: string
                          format: byte
                          description: ''
                        DOC_STATUS:
                          type: integer
                          format: int64
                          description: ''
                        CLASS_REL:
                          type: string
                          format: byte
                          description: ''
                        SEARCH_REL:
                          type: string
                          format: byte
                          description: ''
                        MIME_TYPE:
                          type: string
                          format: byte
                          description: ''
                        DOC_TYPE:
                          type: string
                          format: byte
                          description: ''
                        DOC_ACTION:
                          type: string
                          format: byte
                          description: ''
                  REGULAR_EXPRESSION:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          format: byte
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
