由 均一教育平台 管理與維護。有使用問題,請以 問題回報
聯絡我們。
目前最簡單的方式是 topic_id 從 root
開始帶,並且依 response 中的 child[].topic_id
結構取下一層資料。
API 格式:
<https://www.junyiacademy.org/api/v2/open/content/topicpage/><topic_id>
Params:
範例:
GET <https://www.junyiacademy.org/api/v2/open/content/topicpage/root>
{
"banner_src": null,
"breadcrumb": [],
"child": [
{
"description": "",
"icon_src": "",
"tags": [
"has-pre-exam",
"has-post-exam",
"has-topic-exam"
],
"title": "數學",
"topic_id": "course-compare"
},
...
],
"description": "各科的知識從這裡開始分支",
"extended_slug": "root",
"icon_src": null,
"intro": null,
"is_content_topic": false,
"links": null,
"logo_src": null,
"tags": [],
"title": "知識樹",
"topic_id": "root"
}
實體結構可以參考均一平台首頁左上方的課程探索
API 格式:
<https://www.junyiacademy.org/api/v2/open/sub-tree/**><topic_id>**?depth=**<num>**
Params
範例:
GET <https://www.junyiacademy.org/api/v2/open/sub-tree/root?depth=3>
{
"data": {
"href": "/root",
"id": "root",
"title": "知識樹",
"children": [
{ // 下一層
"href": "/course-compare",
"children": [
{ // 下二層
"href": "/course-compare/math-elem",
"id": "math-elem",
"title": "國小",
"children": [
{ // 下三層
"href": "/course-compare/math-elem/math-1",
"children": [],
"id": "math-1",
"title": "一年級"
},
...
],
},
...
],
},
...
],
...
}
}