swagger: '2.0'
info:
  version: v1
  title: CheckApi
host: check.wanfangdata.com.cn
basePath: /api
schemes:
  - https
paths:
  /Check:
    post:
      tags:
        - Check
      summary: 检测
      operationId: Check
      consumes:
        - application/json
      produces:
        - application/json
      security:
        - apiKey: []
      parameters:
        - name: checkRequest
          in: body
          description: 检测请求
          required: true
          schema:
            $ref: '#/definitions/CheckRequest'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/CheckResponse'
definitions:
  CheckRequest:
    description: 检测请求
    type: object
    properties:
      PublishDate:
        description: 比对库限定日期
        type: string
        format: date-time
      FileName:
        description: 文件名
        type: string
      Content:
        description: 检测文本
        type: string
  CheckResponse:
    description: 检测响应
    type: object
    properties:
      Status:
        description: 状态
        enum:
          - Success
          - WordsCountOutOfRange
          - ServiceNotOpen
          - OutOfMoney
          - AuthenticateFailed
          - DetectFailed
          - TransFailed
        type: string
      Message:
        description: 消息
        type: string
      CheckId:
        format: uuid
        description: 检测ID
        type: string
      Payment:
        format: double
        description: 花费金额
        type: number
      Data:
        $ref: '#/definitions/CheckApiResult'
        description: 数据
  CheckApiResult:
    description: 检测结果
    type: object
    properties:
      CopyPercent:
        format: float
        description: 抄袭相似比
        type: number
      SimpleReport:
        format: byte
        description: 简明报告
        type: string
      DetailReport:
        format: byte
        description: 详细报告
        type: string
securityDefinitions:
  apiKey:
    name: token
    in: header
    type: apiKey
    description: API Key Authentication
