diff options
| author | Jan Friedli | 2020-07-13 08:21:08 +0200 |
|---|---|---|
| committer | Jan Friedli | 2020-07-13 08:21:08 +0200 |
| commit | 77269a82e62025b915e939b93b59ae1be03497cc (patch) | |
| tree | 959a97e73b870d74d3c945dc3063c7ab4ecbfee7 /matweb/oas | |
| parent | 2c1bc2f05af93e13d331e0f6a5c1b617717a50e3 (diff) | |
documented extension endpoint
Diffstat (limited to 'matweb/oas')
| -rw-r--r-- | matweb/oas/download.yml | 6 | ||||
| -rw-r--r-- | matweb/oas/extension.yml | 17 |
2 files changed, 19 insertions, 4 deletions
diff --git a/matweb/oas/download.yml b/matweb/oas/download.yml index 4c101a4..899d103 100644 --- a/matweb/oas/download.yml +++ b/matweb/oas/download.yml | |||
| @@ -26,8 +26,6 @@ parameters: | |||
| 26 | 26 | ||
| 27 | responses: | 27 | responses: |
| 28 | 200: | 28 | 200: |
| 29 | description: "An object containing all info about the cleaned file" | 29 | description: "" |
| 30 | schema: | ||
| 31 | $ref: '#/definitions/UploadResponse' | ||
| 32 | 404: | 30 | 404: |
| 33 | description: "The filename, key or secret are wrong" \ No newline at end of file | 31 | description: "The filename, key or secret are wrong or the link is too old and the file has been deleted" \ No newline at end of file |
diff --git a/matweb/oas/extension.yml b/matweb/oas/extension.yml new file mode 100644 index 0000000..3e31034 --- /dev/null +++ b/matweb/oas/extension.yml | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | --- | ||
| 2 | tags: | ||
| 3 | - "Supported Extensions" | ||
| 4 | summary: 'Returns a list of all supported file extensions' | ||
| 5 | consumes: | ||
| 6 | - "application/json" | ||
| 7 | produces: | ||
| 8 | - "application/json" | ||
| 9 | |||
| 10 | responses: | ||
| 11 | 200: | ||
| 12 | description: "A list of all supported file extensions" | ||
| 13 | schema: | ||
| 14 | type: "array" | ||
| 15 | items: | ||
| 16 | type: "string" | ||
| 17 | example: ".jpeg" \ No newline at end of file | ||
