3D模型Api
注意:所有请求均需要token,如需使用该Api,请立即申请
名称 | 方式 | 地址 | 权限 | |
1 | 获取3D模型列表 | GET | /v1/threeds?token=:token&category=:category&page=:page | Open |
2 | 获取3D模型详情 | GET | /v1/threeds/:id?token=:token | Open |
模型信息
:threed
{
"Id": "1",
"Title": "Miniature",
"Tags": null,
"CategoryId": "100",
"Description": "Miniature martini",
"Image": "/uploads/models/160630/25f0b269fd8e5b9c1467264683.jpeg",
"Url": "",
"CompressedFiles": "http://www.mediafire.com/file/nau4z3mmd9u3xu2",
"Price": "0.00"
}
错误码
错误码 | 错误信息 | 含义 | status code |
-3 | request error | 用户不存在 | 400 |
-2 | api disable | Api不可用 | 404 |
-1 | user have not right | 没有权限 | 403 |
0 | request error | 其他 | 400 |
-
一,获取3D模型列表信息
GET http://api.techbrood.com/v1/threeds?token=:token&category=:category&q=:q&page=:page
:token 为用户申请api-token(必须)
:category 为所需获取模型类别(默认为空时返回所有家居3D模型)
:q 为搜索关键词(默认为空时返回所有3D模型)
:page 为所需获取列表的第:page页(默认为空时返回第一页)
{ "status":1, "message":"获取3D模型列表成功!", "result":{'count':10,'list':[:threed,:threed...]} }
其中count为总页数; :threed部分同上
-
二, 获取3D模型详细信息
GET http://api.techbrood.com/v1/threeds/:id?token=:token
返回详细信息,返回status=1
{ "status":1, "message":"获取详情成功!", "result"::threed }
其中:threed部分同上