From: Pieter Lexis Date: Wed, 15 Aug 2018 07:56:22 +0000 (+0200) Subject: Write swagger documentation for #6668 X-Git-Tag: dnsdist-1.3.3~134^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=76e96a862ee5d5ddbc8b598fe04ca528a01a8029;p=thirdparty%2Fpdns.git Write swagger documentation for #6668 --- diff --git a/docs/http-api/swagger/authoritative-api-swagger.yaml b/docs/http-api/swagger/authoritative-api-swagger.yaml index 8c91d30ef2..1088a6a179 100644 --- a/docs/http-api/swagger/authoritative-api-swagger.yaml +++ b/docs/http-api/swagger/authoritative-api-swagger.yaml @@ -70,6 +70,14 @@ paths: required: true description: The id of the server to retrieve type: string + - name: zone + in: query + required: false + type: string + description: | + When set to the name of a zone, only this zone is returned. + If no zone with that name exists, the response is an empty array. + This can e.g. be used to check if a zone exists in the database without having to guess/encode the zone's id or to check if a zone exists. responses: '200': description: An array of Zones