blessing-skin-server icon indicating copy to clipboard operation
blessing-skin-server copied to clipboard

能否添加上传材质API?

Open zhzhongshi opened this issue 3 years ago • 0 comments

POST /api/closet/upload?texture-name={string_textureName}&texture-type=[alex,steve,cape]&texture-description={string}&is-private={boolean_isPrivate} HTTP/1.1
Authorization: Bearer {"auth_jwtauth"}
Content-Type: image/png
Host: {Blessing Skin Host}

[message-body; type: "image/png", size: 1004 bytes]
HTTP/1.1 200
status: 200
server: nginx
content-type: application/json
cache-control: no-cache, private
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
x-authlib-injector-api-location: {Yggdrasil ApiRoot}
{
    "tid": {tid},
    "name": "{string_textureName}",
    "type": "[alex,steve,cape]",
    "hash": "{hash}",
    "size": {size_KB},
    "uploader": {uid},
    "public": {boolean_isPrivate},
    "upload_at": "YYYY-MM-DD hh:mm:ss",
}

我实在没找到上传材质的API,,

zhzhongshi avatar Aug 22 '20 02:08 zhzhongshi