diff --git a/components/DoveadmComponent.vue b/components/DoveadmComponent.vue index 50e55403a..050cec2b9 100644 --- a/components/DoveadmComponent.vue +++ b/components/DoveadmComponent.vue @@ -49,7 +49,7 @@ function httpClick(k) { - +
@@ -79,28 +79,6 @@ function httpClick(k) { - - - - -
Man Page
Response Values - - - - - - - - - - - - - -
KeyTypeDescription
{{ elem.key }} - -
-
diff --git a/components/DoveadmHttpApiComponent.vue b/components/DoveadmHttpApiComponent.vue index 4feacb1c2..8217fef44 100644 --- a/components/DoveadmHttpApiComponent.vue +++ b/components/DoveadmHttpApiComponent.vue @@ -21,21 +21,10 @@ const jsonReq = ] ] -const resp = {} -if (d.response) { - for (let elem of d.response) { - resp[elem.key] = elem.example - } -} +const jsonResp = d.response?.example + ? [ [ "doveadmResponse", [ d.response.example ], "tag1" ] ] + : null -const jsonResp = -[ - [ - "doveadmResponse", - [ resp ], - "tag1" - ] -]