【文件属性】:
文件名称:esthry-api:用于从Amazon S3上传和下载图像的库
文件大小:24KB
文件格式:ZIP
更新时间:2021-05-03 23:12:04
JavaScript
eththry-api
REST API,用于管理由Amazon S3支持的媒体资产和集合。
开始使用
$ git clone https://github.com/tkuminecz/esthry-api.git
$ cd esthry-api/
$ npm install
$ gulp
$ npm start
API文档
所有请求都应使用Content-Type: application/json 。
GET /资产
返回资产ID的数组。
Response
[
'8asd8fa7dsfadsfasfa'
]
GET / asset /:id
返回由:id标识的资产
Response
{
"_id": "8asd8fa7dsfadsfasfa",
"collection_id": "test",
"description": "the description",
【文件预览】:
esthry-api-master
----.travis.yml(53B)
----package.json(1KB)
----post(28B)
----gulpfile.js(845B)
----api(164B)
----put(27B)
----src()
--------collection()
--------asset.js(332B)
--------config.js(176B)
--------index.js(105B)
--------routes.js(679B)
--------tag()
--------asset()
--------routes()
--------tag.js(233B)
--------validation.js(3KB)
--------main.js(896B)
--------collection.js(275B)
--------cache.js(2KB)
--------s3()
--------transform.js(3KB)
--------util()
--------db.js(3KB)
----.gitignore(39B)
----get(27B)
----README.md(2KB)
----.jshintrc(19B)
----delete(30B)