|
| 1 | +# WARNING - EXPERIMENTAL |
| 2 | +# This file was auto generated from the existing API using an IntelliJ plugin, |
| 3 | +# see https://www.jetbrains.com/help/idea/openapi.html#generate_openapi |
| 4 | +# |
| 5 | +# Manual changes were done for this 'spec' to work in-place with the |
| 6 | +# model-server for now. A lot of changes were done and are still necessary |
| 7 | +# to make this OpenAPI a viable artifact. It will most likely be split |
| 8 | +# into multiple OpenAPI files. |
| 9 | + |
| 10 | +openapi: "3.0.3" |
| 11 | +info: |
| 12 | + title: "model-server deprecated API" |
| 13 | + description: "modelix deprecated API" |
| 14 | + version: "1.0.0" |
| 15 | +servers: |
| 16 | + - url: '/' |
| 17 | + description: model-server |
| 18 | +paths: |
| 19 | + /json: |
| 20 | + get: |
| 21 | + responses: |
| 22 | + "200": |
| 23 | + $ref: '#/components/responses/200' |
| 24 | + /json/{repositoryId}: |
| 25 | + get: |
| 26 | + parameters: |
| 27 | + - name: repositoryId |
| 28 | + in: "path" |
| 29 | + required: true |
| 30 | + schema: |
| 31 | + type: string |
| 32 | + responses: |
| 33 | + "200": |
| 34 | + $ref: '#/components/responses/200json' |
| 35 | + /json/{repositoryId}/{versionHash}: |
| 36 | + get: |
| 37 | + parameters: |
| 38 | + - name: versionHash |
| 39 | + in: "path" |
| 40 | + required: true |
| 41 | + schema: |
| 42 | + type: string |
| 43 | + - name: repositoryId |
| 44 | + in: "path" |
| 45 | + required: true |
| 46 | + schema: |
| 47 | + type: string |
| 48 | + responses: |
| 49 | + "200": |
| 50 | + $ref: '#/components/responses/200json' |
| 51 | + /json/{repositoryId}/{versionHash}/poll: |
| 52 | + get: |
| 53 | + parameters: |
| 54 | + - name: repositoryId |
| 55 | + in: "path" |
| 56 | + required: true |
| 57 | + schema: |
| 58 | + type: string |
| 59 | + - name: versionHash |
| 60 | + in: "path" |
| 61 | + required: true |
| 62 | + schema: |
| 63 | + type: string |
| 64 | + responses: |
| 65 | + "200": |
| 66 | + $ref: '#/components/responses/200json' |
| 67 | + /json/{repositoryId}/{versionHash}/update: |
| 68 | + post: |
| 69 | + parameters: |
| 70 | + - name: repositoryId |
| 71 | + in: "path" |
| 72 | + required: true |
| 73 | + schema: |
| 74 | + type: string |
| 75 | + - name: versionHash |
| 76 | + in: "path" |
| 77 | + required: true |
| 78 | + schema: |
| 79 | + type: string |
| 80 | + responses: |
| 81 | + "404": |
| 82 | + description: "Not Found" |
| 83 | + content: |
| 84 | + '*/*': |
| 85 | + schema: |
| 86 | + type: string |
| 87 | + "403": |
| 88 | + $ref: '#/components/responses/403' |
| 89 | + "401": |
| 90 | + $ref: '#/components/responses/401' |
| 91 | + "500": |
| 92 | + $ref: '#/components/responses/500' |
| 93 | + "200": |
| 94 | + $ref: '#/components/responses/200json' |
| 95 | + /json/{repositoryId}/init: |
| 96 | + post: |
| 97 | + parameters: |
| 98 | + - name: repositoryId |
| 99 | + in: "path" |
| 100 | + required: true |
| 101 | + schema: |
| 102 | + type: string |
| 103 | + responses: |
| 104 | + "200": |
| 105 | + $ref: '#/components/responses/200json' |
| 106 | + /json/{repositoryId}/ws: |
| 107 | + get: |
| 108 | + parameters: |
| 109 | + - name: repositoryId |
| 110 | + in: "path" |
| 111 | + required: true |
| 112 | + schema: |
| 113 | + type: string |
| 114 | + - name: Connection |
| 115 | + in: "header" |
| 116 | + required: true |
| 117 | + description: "Websocket Connection parameter" |
| 118 | + schema: |
| 119 | + type: string |
| 120 | + - name: Upgrade |
| 121 | + in: "header" |
| 122 | + required: true |
| 123 | + description: "Websocket Upgrade parameter" |
| 124 | + schema: |
| 125 | + type: string |
| 126 | + - name: Sec-WebSocket-Key |
| 127 | + in: "header" |
| 128 | + required: true |
| 129 | + description: "Websocket Sec-WebSocket-Key parameter" |
| 130 | + schema: |
| 131 | + type: string |
| 132 | + responses: |
| 133 | + "403": |
| 134 | + $ref: '#/components/responses/403' |
| 135 | + "401": |
| 136 | + $ref: '#/components/responses/401' |
| 137 | + "500": |
| 138 | + $ref: '#/components/responses/500' |
| 139 | + "101": |
| 140 | + description: "Switching Protocols" |
| 141 | + headers: |
| 142 | + Connection: |
| 143 | + required: true |
| 144 | + schema: |
| 145 | + type: string |
| 146 | + Upgrade: |
| 147 | + required: true |
| 148 | + schema: |
| 149 | + type: string |
| 150 | + Sec-WebSocket-Accept: |
| 151 | + required: true |
| 152 | + schema: |
| 153 | + type: string |
| 154 | + /json/generate-ids: |
| 155 | + post: |
| 156 | + parameters: |
| 157 | + - name: quantity |
| 158 | + in: "query" |
| 159 | + required: false |
| 160 | + schema: |
| 161 | + type: integer |
| 162 | + responses: |
| 163 | + "403": |
| 164 | + $ref: '#/components/responses/403' |
| 165 | + "401": |
| 166 | + $ref: '#/components/responses/401' |
| 167 | + "500": |
| 168 | + $ref: '#/components/responses/500' |
| 169 | + "200": |
| 170 | + $ref: '#/components/responses/200json' |
| 171 | + |
| 172 | +components: |
| 173 | + responses: |
| 174 | + "200": |
| 175 | + description: OK |
| 176 | + content: |
| 177 | + text/plain: |
| 178 | + schema: |
| 179 | + type: string |
| 180 | + "200json": |
| 181 | + description: OK |
| 182 | + content: |
| 183 | + application/json: |
| 184 | + schema: |
| 185 | + type: string |
| 186 | + "400": |
| 187 | + description: "Bad Request" |
| 188 | + content: |
| 189 | + text/plain: |
| 190 | + schema: |
| 191 | + type: string |
| 192 | + "401": |
| 193 | + description: "Unauthorized" |
| 194 | + content: |
| 195 | + text/plain: |
| 196 | + schema: |
| 197 | + type: string |
| 198 | + 403: |
| 199 | + description: "Forbidden" |
| 200 | + content: |
| 201 | + text/plain: |
| 202 | + schema: |
| 203 | + type: string |
| 204 | + "404": |
| 205 | + description: "Not Found" |
| 206 | + content: |
| 207 | + text/plain: |
| 208 | + schema: |
| 209 | + type: string |
| 210 | + "500": |
| 211 | + description: "Internal Server Error" |
| 212 | + content: |
| 213 | + text/plain: |
| 214 | + schema: |
| 215 | + type: string |
0 commit comments