From: Colin Mitchell Date: Thu, 29 Mar 2018 18:15:55 +0000 (-0400) Subject: Add parameters to swagger API definition for creating zone X-Git-Tag: dnsdist-1.3.1~183^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cce8c6d64843a4a9ca25c4807055f88832eef05d;p=pdns Add parameters to swagger API definition for creating zone --- diff --git a/docs/http-api/swagger/authoritative-api-swagger.yaml b/docs/http-api/swagger/authoritative-api-swagger.yaml index 24e10bba4..8c91d30ef 100644 --- a/docs/http-api/swagger/authoritative-api-swagger.yaml +++ b/docs/http-api/swagger/authoritative-api-swagger.yaml @@ -93,6 +93,12 @@ paths: description: '“true” (default) or “false”, whether to include the “rrsets” in the response Zone object.' type: boolean default: true + - name: zone_struct + description: The zone struct to patch with + required: true + in: body + schema: + $ref: '#/definitions/Zone' responses: '201': description: A zone @@ -368,6 +374,10 @@ paths: schema: type: array items: + # these can be commented because the swagger code generator fails on them + # and replaced with + # type: string + # or something like that - $ref: '#/definitions/StatisticItem' - $ref: '#/definitions/MapStatisticItem' - $ref: '#/definitions/RingStatisticItem' @@ -864,7 +874,7 @@ definitions: account: type: string description: 'Name of an account that added the comment' - modifided_at: + modified_at: type: integer description: 'Timestamp of the last change to the comment'