mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-22 13:05:36 +03:00
- openapi: fix /add_url
This commit is contained in:
parent
302a11a6a3
commit
fcf609ac1e
1 changed files with 16 additions and 8 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue