- openapi: fix /add_url

This commit is contained in:
Simon Zolin 2019-06-03 11:52:39 +03:00
parent 302a11a6a3
commit fcf609ac1e
1 changed files with 16 additions and 8 deletions

View File

@ -466,15 +466,13 @@ paths:
operationId: filteringAddURL
summary: 'Add filter URL'
consumes:
- text/plain
- application/json
parameters:
- in: body
name: url
description: 'URL containing filtering rules'
required: true
schema:
type: string
example: 'url=https://filters.adtidy.org/windows/filters/15.txt'
- in: "body"
name: "body"
required: true
schema:
$ref: "#/definitions/AddUrlRequest"
responses:
200:
description: OK
@ -1290,6 +1288,16 @@ definitions:
type:
type: "string"
example: "A"
AddUrlRequest:
type: "object"
description: "/add_url request data"
properties:
name:
type: "string"
url:
description: "URL containing filtering rules"
type: "string"
example: "https://filters.adtidy.org/windows/filters/15.txt"
QueryLogItem:
type: "object"
description: "Query log item"