定格童年
金色童年
获取定格童年栏目列表
按图片上的顺序返回栏目,并且返回最新相册的前三张照片
Method and URL Structure
| Method |
Resource URL |
| GET |
/photograph/categroy/ |
Request
No Applicated
cURL Example
{ "count":1, "next":null, "previous":null, "results":[{ "name":"first_month", "name_display":"满月", "desc":"描述", "first_album":{ "pk":15,"name":"相册第二", "desc":"南柯郡汶汶乡大槐树", "shared":true, "created":"2016-09-29T08:45:58.013808Z", "new_list": [{ "url": { "url": "http://example.com/1.jpg", "url_150x150": "http://example/1.jpg-150x150", }...] }, } }....]}
获取定格童年相册列表
Method and URL Structure
| Method |
Resource URL |
| GET |
/photograph/system_album/ |
Request
| Name |
Descript |
Required |
Default |
| category |
类型 |
YES |
|
Category List
| Value |
Text |
Descript |
| pregnancy |
孕味 |
|
| first_month |
满月 |
|
| 100_day |
百天 |
|
| choildren |
大童 |
|
| parent-child |
亲子 |
|
| faimily |
全家福 |
|
| exterior |
外景 |
|
cURL Example
curl http://localhost/photograph/system_album/?category=first_month
Response
{ "count":1, "next":null, "previous":null, "results":[{ "pk":25, "name":"相册第二", "desc":"南柯郡汶汶乡大槐树", "shared":true, "created":"2016-09-28T02:42:17.418206Z", "profile":{ "owner":14, "nickname":"xiaoming", "avatar_url":"http://www.example.com/xiaoming.jpg", "slogan":"xiaoming's slogan" }, "cover":{ "pk":37, "title":"xiaoming's photo", "file_url": { "url": "http://exmple.com/1.jpg" "url_150x150": "http://example.com/1.jpg-150x150", }, "taken_date":"2016-07-01T03:00:03Z" } }]}