basePath: /
definitions:
  server.Req:
    properties:
      options:
        additionalProperties: true
        type: object
      url:
        type: string
    type: object
  server.Res:
    properties:
      code:
        type: integer
      data:
        type: string
      msg:
        type: string
    type: object
host: localhost:6664
info:
  contact: {}
  description: This is a dalfox api swagger
  license:
    name: MIT
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  termsOfService: http://swagger.io/terms/
  title: Dalfox API
  version: "1.0"
paths:
  /scan:
    post:
      consumes:
      - application/json
      description: add dalfox scan
      parameters:
      - description: json data
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/server.Req'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/server.Res'
      summary: scan
  /scan/{scanid}:
    get:
      consumes:
      - application/json
      description: get scan info
      parameters:
      - description: scan id
        in: path
        name: scanid
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/server.Res'
      summary: scan
  /scans:
    get:
      consumes:
      - application/json
      description: show scan list
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            items:
              type: string
            type: array
      summary: scan
swagger: "2.0"
