- openapi: fix /add_url
This commit is contained in:
parent
302a11a6a3
commit
fcf609ac1e
|
@ -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'
|
||||
- in: "body"
|
||||
name: "body"
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
example: 'url=https://filters.adtidy.org/windows/filters/15.txt'
|
||||
$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"
|
||||
|
|
Loading…
Reference in New Issue