Skip to content

Commit

Permalink
update:视频接口文档
Browse files Browse the repository at this point in the history
  • Loading branch information
Qsnh committed Oct 15, 2018
1 parent 2938701 commit 747c19a
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions docs/api/v1/课程接口.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,29 +32,29 @@
{
"data": [
{
"id": 334,
"title": "Prof. Brown Morar PhD",
"slug": "porro-voluptas-cum-unde",
"thumb": "https://lorempixel.com/640/480/?66402",
"id": 1,
"title": "Vivienne Reichel",
"slug": "ut-beatae-perspiciatis-sit-nisi-explicabo",
"thumb": "https://lorempixel.com/640/480/?87563",
"charge": 9,
"short_description": "<p>Prof.</p>",
"published_at": "2018-10-11 13:40:28"
"short_description": "<p>Miss</p>",
"published_at": 1539482458
}
],
"links": {
"first": "http://127.0.0.1:8000/api/v1/courses?page=1",
"last": "http://127.0.0.1:8000/api/v1/courses?page=268",
"last": "http://127.0.0.1:8000/api/v1/courses?page=5",
"prev": null,
"next": "http://127.0.0.1:8000/api/v1/courses?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 268,
"last_page": 5,
"path": "http://127.0.0.1:8000/api/v1/courses",
"per_page": "1",
"to": 1,
"total": 268
"per_page": 10,
"to": 10,
"total": 50
}
}
```
Expand All @@ -77,7 +77,7 @@
地址:

```angular2html
/api/v2/course/{id}
/api/v1/course/{id}
```

请求方法:GET
Expand All @@ -94,15 +94,15 @@

```angular2html
{
"data":{
"id":1,
"title":"Clifton Wunsch",
"slug":"officiis-doloremque-sit-sint-modi",
"thumb":"https://lorempixel.com/640/480/?61971",
"charge":2,
"short_description":"Dr.",
"description":"Doloribus qui labore deserunt et et. Id nihil minus reiciendis et impedit necessitatibus. Voluptas placeat odio ut eaque beatae.",
"published_at":"2018-10-08 09:34:08"
"data": {
"id": 1,
"title": "Vivienne Reichel",
"slug": "ut-beatae-perspiciatis-sit-nisi-explicabo",
"thumb": "https://lorempixel.com/640/480/?87563",
"charge": 9,
"short_description": "<p>Miss</p>",
"description": "<p>Eos et neque qui ut doloribus. Quis at consectetur recusandae sed eius non laborum aut. Et nihil laudantium est. Sint qui quidem labore enim vero autem aut.</p>",
"published_at": 1539482458
}
}
```
Expand Down Expand Up @@ -143,13 +143,13 @@
{
"data": [
{
"id": 3,
"title": "Clifton Will IV",
"slug": "est-dolore-temporibus-accusamus-placeat-impedit-tenetur-facere-harum",
"view_num": 5,
"charge": 0,
"short_description": "<p>Mr.</p>",
"published_at": "2013-05-01 04:31:51"
"id": 1,
"title": "Crystel Collier",
"slug": "quia-voluptatibus-eaque-debitis-placeat-iusto-libero-nulla-quibusdam",
"view_num": 4,
"charge": 179,
"short_description": "<p>Prof.</p>",
"published_at": 389614221
}
]
}
Expand Down Expand Up @@ -195,14 +195,14 @@
"avatar": "/images/default_avatar.jpg",
"nick_name": "小滕",
"mobile": "13675626825",
"role": []
"role": {
"role": "年度会员",
"expired_at": 1550196621
},
"unread_notification_num": 0
},
"content": "<p>123123123 &#x1f604;</p>",
"created_at": {
"date": "2018-10-09 14:31:36.000000",
"timezone_type": 3,
"timezone": "PRC"
}
"content": "<p>123123 &#x1f604;</p>",
"created_at": 1539570110
}
],
"links": {
Expand Down Expand Up @@ -248,14 +248,14 @@
"avatar": "/images/default_avatar.jpg",
"nick_name": "小滕",
"mobile": "13675626825",
"role": []
"role": {
"role": "年度会员",
"expired_at": 1550196621
},
"unread_notification_num": 0
},
"content": "<p>123123123</p>",
"created_at": {
"date": "2018-10-09 15:08:04.000000",
"timezone_type": 3,
"timezone": "PRC"
}
"content": "<p>123123 &#x1f604;</p>",
"created_at": 1539570110
}
}
```
Expand Down

0 comments on commit 747c19a

Please sign in to comment.