diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index 318849b0..1f3897ab 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -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"