... | ... | @@ -157,4 +157,47 @@ GET web_url |
|
|
```
|
|
|
```
|
|
|
https://codechina.gitcode.host/programmer/10-years-of-mobile-dev/1-10-years-ios-and-android.html
|
|
|
``` |
|
|
\ No newline at end of file |
|
|
```
|
|
|
### 首页
|
|
|
```
|
|
|
GET /api/v4/projects/codechina%2Fprogrammer%2Fprogramer_magazine_list/repository/files/index.json/raw?ref=master
|
|
|
```
|
|
|
```
|
|
|
{
|
|
|
"id": "1",
|
|
|
"title": "《移动开发十年》",
|
|
|
"path": "codechina/programmer/10-years-of-mobile-dev",
|
|
|
"ref": "master",
|
|
|
"detail": "detail.json",
|
|
|
"chapters": "chapters.json",
|
|
|
"index_image": "https://images.gitbook.cn/Fg_-eDnBvuAVxBrBv2vjzMpQ3e3E",
|
|
|
"index_video": "https://live.csdn.net/v/embed/34453",
|
|
|
"original_price": "19.9",
|
|
|
"line_price": "19.9",
|
|
|
"sale_price": "9.9",
|
|
|
"short_description": "我们特别组织了数十位开发者,一方面,是十年改变与回顾...",
|
|
|
"description": "<div id=\"content_views\" class=\"htmledit_views\">\n ...",
|
|
|
"author": {
|
|
|
"username": "programmer",
|
|
|
"user_title": "国内开发者的权威刊物",
|
|
|
"nickname": "程序员杂志编辑组"
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
`id`:刊物唯一ID(由编辑人员自行定义,如:1)
|
|
|
`title`:刊物标题
|
|
|
`path`:刊物在 code 上的路径(刊物在 code 平台的唯一标识之一,关键字段,可作为项目id使用,使用时必须将 `\` 转译为 `%2F`)
|
|
|
`detail`:详情文件(由编辑定义,协议定为:`detail.json`,程序需根据实际值使用,不可直接采用 `detail.json`)
|
|
|
`chapters`:章节文件(协议定为:`chapters.json`)
|
|
|
`ref`:分支(必要字段,默认为:`master`)
|
|
|
`index_image`:首页图
|
|
|
`index_video`: 首页视频
|
|
|
`original_price`:原价
|
|
|
`line_price`:划线价格
|
|
|
`sale_price`:售价
|
|
|
`short_description`:短描述
|
|
|
`description`: 描述 html
|
|
|
`author`:作者
|
|
|
* `username`:用户名
|
|
|
* `user_title`:用户 title
|
|
|
* `nickname`:昵称 |