Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 94 additions & 0 deletions openapi/schemas/asset.openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,77 @@
}
],
"paths": {
"/asset/compress": {
"post": {
"tags": [
"Asset"
],
"summary": "Compresses an image and returns the WebP result with compression metrics.",
"parameters": [
{
"name": "library",
"in": "query",
"schema": {
"$ref": "#/components/schemas/CompressionLibrary"
}
},
{
"name": "quality",
"in": "query",
"schema": {
"type": "integer",
"format": "int32",
"default": 85
}
},
{
"name": "maxdim",
"in": "query",
"schema": {
"type": "integer",
"format": "int32",
"default": 800
}
}
],
"requestBody": {
"content": {
"multipart/form-data": {
"schema": {
"required": [
"file"
],
"type": "object",
"properties": {
"file": {
"$ref": "#/components/schemas/IFormFile"
}
}
}
}
},
"required": true
},
"responses": {
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
},
"401": {
"description": "Unauthenticated"
},
"403": {
"description": "Forbidden"
}
}
}
},
"/asset/file": {
"post": {
"tags": [
Expand Down Expand Up @@ -165,6 +236,12 @@
},
"components": {
"schemas": {
"CompressionLibrary": {
"enum": [
"ImageSharp",
"NetVips"
]
},
"FileType": {
"enum": [
"Unknown",
Expand Down Expand Up @@ -512,6 +589,23 @@
"properties": {
"fileName": {
"type": "string"
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"wasCompressed": {
"type": "boolean"
},
"originalSizeBytes": {
"type": "integer",
"format": "int64"
},
"finalSizeBytes": {
"type": "integer",
"format": "int64"
}
}
}
Expand Down
7 changes: 7 additions & 0 deletions openapi/schemas/dataset.openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,13 @@
"transcription": {
"type": "string",
"nullable": true
},
"privateTags": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"nullable": true
}
}
},
Expand Down
116 changes: 116 additions & 0 deletions openapi/schemas/rapidata.filtered.openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,92 @@
}
],
"paths": {
"/asset/compress": {
"post": {
"tags": [
"Asset"
],
"summary": "Compresses an image and returns the WebP result with compression metrics.",
"parameters": [
{
"name": "library",
"in": "query",
"schema": {
"$ref": "#/components/schemas/CompressionLibrary"
}
},
{
"name": "quality",
"in": "query",
"schema": {
"type": "integer",
"format": "int32",
"default": 85
}
},
{
"name": "maxdim",
"in": "query",
"schema": {
"type": "integer",
"format": "int32",
"default": 800
}
}
],
"requestBody": {
"content": {
"multipart/form-data": {
"schema": {
"required": [
"file"
],
"type": "object",
"properties": {
"file": {
"$ref": "#/components/schemas/IFormFile"
}
}
}
}
},
"required": true
},
"responses": {
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
},
"401": {
"description": "Unauthenticated"
},
"403": {
"description": "Forbidden"
}
},
"security": [
{
"Bearer": [],
"OpenIdConnect": [
"openid",
"profile",
"email"
],
"OAuth2": [
"openid",
"profile",
"email"
]
}
]
}
},
"/asset/file": {
"post": {
"tags": [
Expand Down Expand Up @@ -8998,6 +9084,12 @@
},
"components": {
"schemas": {
"CompressionLibrary": {
"enum": [
"ImageSharp",
"NetVips"
]
},
"FileType": {
"enum": [
"Unknown",
Expand Down Expand Up @@ -9345,6 +9437,23 @@
"properties": {
"fileName": {
"type": "string"
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"wasCompressed": {
"type": "boolean"
},
"originalSizeBytes": {
"type": "integer",
"format": "int64"
},
"finalSizeBytes": {
"type": "integer",
"format": "int64"
}
}
},
Expand Down Expand Up @@ -11659,6 +11768,13 @@
"transcription": {
"type": "string",
"nullable": true
},
"privateTags": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"nullable": true
}
}
},
Expand Down
Loading