1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-04 15:54:48 +01:00

Api spec cleanup (#1869)

* Fix indentation

* Add parameter definition and remove unused model

* Update version

* Quote example string
This commit is contained in:
Richard Willis
2020-11-26 11:56:04 +00:00
committed by GitHub
parent b85b86e6de
commit f66e609d3f

View File

@@ -15,7 +15,7 @@ info:
license: license:
name: CC0 1.0 Universal name: CC0 1.0 Universal
url: https://creativecommons.org/publicdomain/zero/1.0/legalcode url: https://creativecommons.org/publicdomain/zero/1.0/legalcode
version: 0.47.0 version: 0.51.0
x-logo: x-logo:
url: https://mailinabox.email/static/logo.png url: https://mailinabox.email/static/logo.png
altText: Mail-in-a-Box logo altText: Mail-in-a-Box logo
@@ -744,11 +744,18 @@ paths:
schema: schema:
type: string type: string
/dns/zonefile/{zone}: /dns/zonefile/{zone}:
parameters:
- in: path
name: zone
schema:
$ref: '#/components/schemas/Hostname'
required: true
description: Hostname
get: get:
tags: tags:
- DNS - DNS
summary: Get DNS zonefile summary: Get DNS zonefile
description: Returns an array of all managed top-level domains. description: Returns a DNS zone file for a hostname.
operationId: getDnsZonefile operationId: getDnsZonefile
x-codeSamples: x-codeSamples:
- lang: curl - lang: curl
@@ -1806,7 +1813,7 @@ components:
text/plain: text/plain:
schema: schema:
type: string type: string
example: 1.2.3.4 example: '1.2.3.4'
description: The value of the DNS record. description: The value of the DNS record.
example: '1.2.3.4' example: '1.2.3.4'
schemas: schemas:
@@ -2690,13 +2697,6 @@ components:
type: string type: string
MfaEnableSuccessResponse: MfaEnableSuccessResponse:
type: string type: string
MfaEnableBadRequestResponse:
type: object
required:
- error
properties:
error:
type: string
MfaDisableRequest: MfaDisableRequest:
type: object type: object
properties: properties: