From cce8c6d64843a4a9ca25c4807055f88832eef05d Mon Sep 17 00:00:00 2001 From: Colin Mitchell Date: Thu, 29 Mar 2018 14:15:55 -0400 Subject: [PATCH] Add parameters to swagger API definition for creating zone --- docs/http-api/swagger/authoritative-api-swagger.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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' -- 2.40.0