refactor(server): immich file responses (#5641)

* refactor(server): immich file response

* chore: open api

* chore: tests

* chore: fix logger import

---------

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
Jason Rasmussen
2023-12-12 09:58:25 -05:00
committed by GitHub
parent af7c4ae090
commit cbca69841a
25 changed files with 186 additions and 154 deletions

View File

@@ -1465,6 +1465,15 @@
"get": {
"operationId": "serveFile",
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
},
{
"name": "isThumb",
"required": false,
@@ -1483,15 +1492,6 @@
"type": "boolean"
}
},
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
},
{
"name": "key",
"required": false,
@@ -1926,13 +1926,7 @@
"responses": {
"200": {
"content": {
"image/jpeg": {
"schema": {
"format": "binary",
"type": "string"
}
},
"image/webp": {
"application/octet-stream": {
"schema": {
"format": "binary",
"type": "string"
@@ -4499,7 +4493,7 @@
"responses": {
"200": {
"content": {
"image/jpeg": {
"application/octet-stream": {
"schema": {
"format": "binary",
"type": "string"
@@ -6080,9 +6074,10 @@
"responses": {
"200": {
"content": {
"application/json": {
"application/octet-stream": {
"schema": {
"type": "object"
"format": "binary",
"type": "string"
}
}
},