... | ... | @@ -205,7 +205,7 @@ GET web_url |
|
|
```
|
|
|
https://codechina.gitcode.host/programmer/10-years-of-mobile-dev/1-10-years-ios-and-android.html
|
|
|
```
|
|
|
### 首页
|
|
|
### 首页(master 版本)
|
|
|
```
|
|
|
GET /api/v4/projects/codechina%2Fprogrammer%2Fprogramer_magazine_list/repository/files/index.json/raw?ref=master
|
|
|
```
|
... | ... | @@ -285,3 +285,71 @@ GET /api/v4/projects/codechina%2Fprogrammer%2Fprogramer_magazine_list/repository |
|
|
* `username`:用户名
|
|
|
* `user_title`:用户 title
|
|
|
* `nickname`:昵称
|
|
|
### 首页(stable-v2版本)
|
|
|
正式地址:
|
|
|
```
|
|
|
GET /api/v4/projects/codechina%2Fprogrammer%2Fprogramer_magazine_list/repository/files/index.json/raw?ref=stable-v2
|
|
|
```
|
|
|
测试地址:
|
|
|
```
|
|
|
GET /api/v4/projects/codechina%2Fprogrammer%2Fprogramer_magazine_list/repository/files/index.json/raw?ref=develop
|
|
|
```
|
|
|
```
|
|
|
{
|
|
|
"magazines": [//轮播杂志
|
|
|
{
|
|
|
"id": "1",
|
|
|
"title": "《开发者黄金十年》",
|
|
|
"sub_title": "《新程序员》第一期",
|
|
|
"path": "new-programmer/2021-01",
|
|
|
"ref": "master",
|
|
|
"detail": "detail.json",
|
|
|
"chapters": "chapters.json",
|
|
|
"index_image": "https://img-home.csdnimg.cn/images/20210525124123.png",
|
|
|
"index_video": "",
|
|
|
"original_price": "48.0",
|
|
|
"line_price": "48.0",
|
|
|
"sale_price": "48.0",
|
|
|
"short_description": "",
|
|
|
"description": "",
|
|
|
"author": {
|
|
|
"username": "programmer",
|
|
|
"user_title": "国内开发者的权威刊物",
|
|
|
"nickname": "程序员杂志编辑组"
|
|
|
}
|
|
|
},..
|
|
|
],
|
|
|
"selected_chapters": [//精选章节
|
|
|
{
|
|
|
"id": "9",
|
|
|
"title": "对话Linus Torvalds:Linux 30年",
|
|
|
"sub_title": "",
|
|
|
"icon_image": "https://img-blog.csdnimg.cn/20210528131454954.jpeg",
|
|
|
"index": "9",
|
|
|
"path": "new-programmer/2021-01",//增加杂志路径分支等信息
|
|
|
"ref": "master",
|
|
|
"detail": "detail.json",
|
|
|
"chapters": "chapters.json",
|
|
|
"free_rate": "100",
|
|
|
"description": "",
|
|
|
"chapter_page_url": "https://new-programmer.gitcode.host/2021-01/25.html",
|
|
|
"chapter_limited_page_url": ""
|
|
|
},...
|
|
|
{
|
|
|
"id": "31",
|
|
|
"title": "走近低代码:人人都是开发者时代来临?",
|
|
|
"sub_title": "",
|
|
|
"icon_image": "https://img-blog.csdnimg.cn/20210528131457969.png",
|
|
|
"index": "31",
|
|
|
"path": "new-programmer/2021-01",
|
|
|
"ref": "master",
|
|
|
"detail": "detail.json",
|
|
|
"chapters": "chapters.json",
|
|
|
"free_rate": "20",
|
|
|
"description": "",
|
|
|
"chapter_page_url": "https://new-programmer.gitcode.host/2021-01/8.html",
|
|
|
"chapter_limited_page_url": "https://new-programmer.gitcode.host/2021-01/8-limit.html"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
``` |