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