Pull request: 2509 type-safety vol.1
Merge in DNS/adguard-home from 2509-type-safety to master Updates #2509. Squashed commit of the following: commit 535968eb7de3a9e0817ddb57bc2320e5c5a55086 Author: Eugene Burkov <e.burkov@adguard.com> Date: Wed Jan 20 15:06:16 2021 +0300 dhcpd: fix comments commit dc79b80381fe7a8ecec6f9659fd23710c9229f59 Author: Eugene Burkov <e.burkov@adguard.com> Date: Wed Jan 20 14:08:10 2021 +0300 all: improve docs commit 156ebf6c9bad95f82cd121f019f3b59b77b18ba6 Author: Eugene Burkov <e.burkov@adguard.com> Date: Tue Jan 19 17:08:15 2021 +0300 all: improve JSON encoding and decoding
This commit is contained in:
@@ -350,7 +350,26 @@
|
||||
'application/json':
|
||||
'schema':
|
||||
'$ref': '#/components/schemas/DhcpStatus'
|
||||
'501':
|
||||
'500':
|
||||
'content':
|
||||
'application/json':
|
||||
'schema':
|
||||
'$ref': '#/components/schemas/Error'
|
||||
'description': 'Not implemented (for example, on Windows).'
|
||||
'/dhcp/interfaces':
|
||||
'get':
|
||||
'tags':
|
||||
- 'dhcp'
|
||||
'operationId': 'dhcpInterfaces'
|
||||
'summary': 'Gets the available interfaces'
|
||||
'responses':
|
||||
'200':
|
||||
'description': 'OK.'
|
||||
'content':
|
||||
'application/json':
|
||||
'schema':
|
||||
'$ref': '#/components/schemas/NetInterfaces'
|
||||
'500':
|
||||
'content':
|
||||
'application/json':
|
||||
'schema':
|
||||
@@ -1620,6 +1639,12 @@
|
||||
'type': 'array'
|
||||
'items':
|
||||
'$ref': '#/components/schemas/DhcpStaticLease'
|
||||
'NetInterfaces':
|
||||
'type': 'object'
|
||||
'description': >
|
||||
Network interfaces dictionary, keys are interface names.
|
||||
'additionalProperties':
|
||||
'$ref': '#/components/schemas/NetInterface'
|
||||
|
||||
'DhcpSearchResult':
|
||||
'type': 'object'
|
||||
@@ -1650,7 +1675,12 @@
|
||||
'properties':
|
||||
'found':
|
||||
'type': 'string'
|
||||
'description': 'yes|no|error'
|
||||
'enum':
|
||||
- 'yes'
|
||||
- 'no'
|
||||
- 'error'
|
||||
'description': >
|
||||
The result of searching the other DHCP server.
|
||||
'example': 'no'
|
||||
'error':
|
||||
'type': 'string'
|
||||
@@ -1662,7 +1692,12 @@
|
||||
'properties':
|
||||
'static':
|
||||
'type': 'string'
|
||||
'description': 'yes|no|error'
|
||||
'enum':
|
||||
- 'yes'
|
||||
- 'no'
|
||||
- 'error'
|
||||
'description': >
|
||||
The result of determining static IP address.
|
||||
'example': 'yes'
|
||||
'ip':
|
||||
'type': 'string'
|
||||
@@ -2015,11 +2050,7 @@
|
||||
'format': 'uint16'
|
||||
'example': 80
|
||||
'interfaces':
|
||||
'type': 'object'
|
||||
'description': >
|
||||
Network interfaces dictionary, keys are interface names.
|
||||
'additionalProperties':
|
||||
'$ref': '#/components/schemas/NetInterface'
|
||||
'$ref': '#/components/schemas/NetInterfaces'
|
||||
'AddressesInfoBeta':
|
||||
'type': 'object'
|
||||
'description': 'AdGuard Home addresses configuration'
|
||||
|
||||
Reference in New Issue
Block a user