|
| 1 | +{ |
| 2 | + "openapi": "3.0.3", |
| 3 | + "info": { |
| 4 | + "title": "api", |
| 5 | + "description": "", |
| 6 | + "license": { |
| 7 | + "name": "" |
| 8 | + }, |
| 9 | + "version": "0.0.0" |
| 10 | + }, |
| 11 | + "paths": { |
| 12 | + "/api/v1/boards/export": { |
| 13 | + "get": { |
| 14 | + "tags": ["boards"], |
| 15 | + "summary": "Returns an export of a collection of boards.", |
| 16 | + "operationId": "export", |
| 17 | + "parameters": [ |
| 18 | + { |
| 19 | + "name": "name", |
| 20 | + "in": "query", |
| 21 | + "description": "The name of the resultant file (including extension).", |
| 22 | + "required": true, |
| 23 | + "schema": { |
| 24 | + "type": "string" |
| 25 | + } |
| 26 | + }, |
| 27 | + { |
| 28 | + "name": "boards[]", |
| 29 | + "in": "query", |
| 30 | + "description": "The boards to be included in this export.", |
| 31 | + "required": true, |
| 32 | + "schema": { |
| 33 | + "type": "array", |
| 34 | + "items": { |
| 35 | + "$ref": "#/components/schemas/BoardId" |
| 36 | + } |
| 37 | + } |
| 38 | + } |
| 39 | + ], |
| 40 | + "responses": { |
| 41 | + "200": { |
| 42 | + "description": "", |
| 43 | + "content": { |
| 44 | + "application/octet-stream": { |
| 45 | + "schema": { |
| 46 | + "type": "string", |
| 47 | + "format": "binary" |
| 48 | + } |
| 49 | + } |
| 50 | + } |
| 51 | + } |
| 52 | + } |
| 53 | + } |
| 54 | + }, |
| 55 | + "/api/v1/documents/{file}/export": { |
| 56 | + "get": { |
| 57 | + "tags": ["documents"], |
| 58 | + "summary": "Exports the document as a PDF with annotations included.", |
| 59 | + "operationId": "export", |
| 60 | + "parameters": [ |
| 61 | + { |
| 62 | + "name": "file", |
| 63 | + "in": "path", |
| 64 | + "required": true, |
| 65 | + "schema": { |
| 66 | + "$ref": "#/components/schemas/FileId" |
| 67 | + } |
| 68 | + } |
| 69 | + ], |
| 70 | + "responses": { |
| 71 | + "200": { |
| 72 | + "description": "", |
| 73 | + "content": { |
| 74 | + "application/pdf": { |
| 75 | + "schema": { |
| 76 | + "type": "string", |
| 77 | + "format": "binary" |
| 78 | + } |
| 79 | + } |
| 80 | + } |
| 81 | + } |
| 82 | + } |
| 83 | + } |
| 84 | + }, |
| 85 | + "/api/v1/tags/export": { |
| 86 | + "get": { |
| 87 | + "tags": ["tags"], |
| 88 | + "summary": "Returns an export of a collection of tags.", |
| 89 | + "operationId": "export", |
| 90 | + "parameters": [ |
| 91 | + { |
| 92 | + "name": "name", |
| 93 | + "in": "query", |
| 94 | + "description": "The name of the resultant file (including extension).", |
| 95 | + "required": true, |
| 96 | + "schema": { |
| 97 | + "type": "string" |
| 98 | + } |
| 99 | + }, |
| 100 | + { |
| 101 | + "name": "tags[]", |
| 102 | + "in": "query", |
| 103 | + "description": "The tags to be included in this export.", |
| 104 | + "required": true, |
| 105 | + "schema": { |
| 106 | + "type": "array", |
| 107 | + "items": { |
| 108 | + "$ref": "#/components/schemas/TagId" |
| 109 | + } |
| 110 | + } |
| 111 | + } |
| 112 | + ], |
| 113 | + "responses": { |
| 114 | + "200": { |
| 115 | + "description": "", |
| 116 | + "content": { |
| 117 | + "application/octet-stream": { |
| 118 | + "schema": { |
| 119 | + "type": "string", |
| 120 | + "format": "binary" |
| 121 | + } |
| 122 | + } |
| 123 | + } |
| 124 | + } |
| 125 | + } |
| 126 | + } |
| 127 | + } |
| 128 | + }, |
| 129 | + "components": { |
| 130 | + "schemas": { |
| 131 | + "BoardId": { |
| 132 | + "type": "string", |
| 133 | + "format": "base58 encoded UUID", |
| 134 | + "example": "CBD7wDFfZFjQfkvZ5BfC9" |
| 135 | + }, |
| 136 | + "FileId": { |
| 137 | + "type": "string", |
| 138 | + "format": "base58 encoded UUID", |
| 139 | + "example": "CBD7wDFfZFjQfkvZ5BfC9" |
| 140 | + }, |
| 141 | + "TagId": { |
| 142 | + "type": "string", |
| 143 | + "format": "base58 encoded UUID", |
| 144 | + "example": "CBD7wDFfZFjQfkvZ5BfC9" |
| 145 | + } |
| 146 | + } |
| 147 | + } |
| 148 | +} |
0 commit comments