Pull request: return 501 when we don't support features
Merge in DNS/adguard-home from 2295-dhcp-windows to master Updates #2295. Squashed commit of the following: commit 3b00a90c3d9bc33e9af478e4062c0f938d4f327d Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Mon Nov 16 16:45:43 2020 +0300 all: use the 501 handlers instead of the real ones, revert other changes commit 0a3b37736a21abd6181e0d28c32069e8d7a576d0 Merge: 45feba7556358240e9Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Mon Nov 16 15:59:15 2020 +0300 Merge branch 'master' into 2295-dhcp-windows and update commit 45feba755dde37e43cc8075b896e1576157341e6 Merge: cd987d8bca19523b25Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Mon Nov 16 15:51:16 2020 +0300 Merge branch 'master' into 2295-dhcp-windows commit cd987d8bc2cd524b7454d9037b595069714645f9 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Fri Nov 13 15:55:23 2020 +0300 all: improve tests and refactor dhcp checking code even more commit 3aad675443f325b5909523bcc1c987aa04ac61d9 Merge: 70c477e6109196118eAuthor: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Fri Nov 13 14:44:43 2020 +0300 Merge branch 'master' into 2295-dhcp-windows commit 70c477e61cdc1237603918f1c44470c1549f1136 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Fri Nov 13 14:34:06 2020 +0300 home: fix dhcpd test on windows commit e59597d783fb9304e63f94eee2b5a5d67a5b2169 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Fri Nov 13 13:38:25 2020 +0300 all: mention the feature in the changelog commit 5555c8d881b1c20b5b0a0cb096a17cf56e209c06 Merge: c3b6a5a93e802e6645Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Fri Nov 13 13:35:35 2020 +0300 Merge branch 'master' into 2295-dhcp-windows commit c3b6a5a930693090838eb1ef9f75a09b5b223ba6 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Thu Nov 12 20:37:09 2020 +0300 util: fix comment commit ed92dfdb5d3a6c4ba5d032cbe781e7fd87882813 Author: ArtemBaskal <asbaskal@miem.hse.ru> Date: Thu Nov 12 20:24:14 2020 +0300 Adapt client commit e6f0494c20a4ad5388492af9091568eea5c6e2d6 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Thu Nov 12 13:35:25 2020 +0300 return 501 when we don't support features
This commit is contained in:
@@ -339,6 +339,12 @@ paths:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/DhcpStatus"
|
||||
"501":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Error"
|
||||
description: Not implemented (for example, on Windows).
|
||||
/dhcp/set_config:
|
||||
post:
|
||||
tags:
|
||||
@@ -353,6 +359,12 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
"501":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Error"
|
||||
description: Not implemented (for example, on Windows).
|
||||
/dhcp/find_active_dhcp:
|
||||
post:
|
||||
tags:
|
||||
@@ -366,6 +378,12 @@ paths:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/DhcpSearchResult"
|
||||
"501":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Error"
|
||||
description: Not implemented (for example, on Windows).
|
||||
/dhcp/add_static_lease:
|
||||
post:
|
||||
tags:
|
||||
@@ -377,6 +395,12 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
"501":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Error"
|
||||
description: Not implemented (for example, on Windows).
|
||||
/dhcp/remove_static_lease:
|
||||
post:
|
||||
tags:
|
||||
@@ -388,6 +412,12 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
"501":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Error"
|
||||
description: Not implemented (for example, on Windows).
|
||||
/dhcp/reset:
|
||||
post:
|
||||
tags:
|
||||
@@ -397,6 +427,12 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
"501":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Error"
|
||||
description: Not implemented (for example, on Windows).
|
||||
/filtering/status:
|
||||
get:
|
||||
tags:
|
||||
@@ -1976,3 +2012,10 @@ components:
|
||||
password:
|
||||
type: string
|
||||
description: Password
|
||||
Error:
|
||||
description: A generic JSON error response.
|
||||
properties:
|
||||
message:
|
||||
type: string
|
||||
description: The error message, an opaque string.
|
||||
type: object
|
||||
|
||||
Reference in New Issue
Block a user