增加复制粘贴交互
This commit is contained in:
1 parent
4195525dc7
commit
deb9cc5bcf
14 files changed
+1144
-31
No files matched your search
@@ -8,6 +8,10 @@
|
||||
"publicNotDownloadable": { "status": 404, "body": { "error": "Asset file is not downloadable." } },
|
||||
"noFiles": { "status": 400, "body": { "error": "No files uploaded." } },
|
||||
"tooLarge": { "status": 413, "body": { "error": "Request body is too large." } },
|
||||
"importImageInvalidURL": { "status": 400, "body": { "error": "图片地址无效,请使用 http 或 https 链接" } },
|
||||
"importImageTooLarge": { "status": 413, "body": { "error": "图片过大" } },
|
||||
"importImageUnsupported": { "status": 415, "body": { "error": "不支持的图片格式" } },
|
||||
"importImageUnavailable": { "status": 502, "body": { "error": "图片地址不可访问" } },
|
||||
"internal": { "status": 500, "body": { "error": "Internal server error." } }
|
||||
},
|
||||
"methods": {
|
||||
@@ -20,9 +24,23 @@
|
||||
"downloadCacheControl": "private, no-store",
|
||||
"servedCacheControl": "public, max-age=31536000, immutable"
|
||||
},
|
||||
"importImage": {
|
||||
"method": "POST",
|
||||
"path": "/api/assets/import-image",
|
||||
"auth": "platform-session",
|
||||
"contentType": "application/json",
|
||||
"request": { "url": "string" },
|
||||
"success": { "status": 201, "body": { "asset": "Asset" } },
|
||||
"source": "upload",
|
||||
"formats": ["png", "jpeg", "webp", "gif", "bmp"],
|
||||
"maxURLBytes": 8192,
|
||||
"maxImageBytes": 20971520,
|
||||
"maxImagePixels": 25000000
|
||||
},
|
||||
"routes": [
|
||||
{ "path": "/api/assets", "allow": "GET, HEAD, POST, OPTIONS" },
|
||||
{ "path": "/api/assets/upload", "allow": "POST, OPTIONS" },
|
||||
{ "path": "/api/assets/import-image", "allow": "POST, OPTIONS" },
|
||||
{ "path": "/api/assets/{id}", "allow": "DELETE, OPTIONS" },
|
||||
{ "path": "/api/assets/{id}/download", "allow": "GET, HEAD, OPTIONS" },
|
||||
{ "path": "/api/v1/assets", "allow": "GET, HEAD, POST, OPTIONS" },
|
||||
|
||||
Reference in new issue
Block a user