]> granicus.if.org Git - pdns/commitdiff
Add parameters to swagger API definition for creating zone
authorColin Mitchell <colin@muffinlabs.com>
Thu, 29 Mar 2018 18:15:55 +0000 (14:15 -0400)
committerColin Mitchell <colin@muffinlabs.com>
Thu, 29 Mar 2018 18:15:55 +0000 (14:15 -0400)
docs/http-api/swagger/authoritative-api-swagger.yaml

index 24e10bba48439d1023f0b88cef159be2656a130a..8c91d30ef23d53edef51cfe9811a97b493f9c5ff 100644 (file)
@@ -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'