Skip to content

Commit

Permalink
Search Tag API is not update to date
Browse files Browse the repository at this point in the history
from bangumi.moe dump data, I find that /api/tag/search actually make a different request body and response is also different from this API document.
Change:
request body no longer have `type` but added `keywords`, `multi` field. Currently I don't know these two field meaning.
response tag is an array of tags instead of a tag object
  • Loading branch information
lordfriend authored Apr 10, 2017
1 parent 5efd830 commit 9c2b734
Showing 1 changed file with 30 additions and 27 deletions.
57 changes: 30 additions & 27 deletions DOC/api/tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -631,40 +631,43 @@
```javascript
{
"name": "akame ga kill",
"type": "bangumi"
"keywords": true,
"multi": true
}
```
* return:
```javascript
{
"success": true,
"found": true,
"tag": {
"_id": "548f0004f892774b140ac618",
"activity": 0,
"locale": {
"ja": "アカメが斬る!",
"zh_cn": "斩·赤红之瞳!",
"en": "Akame Ga Kill",
"zh_tw": "斬!赤紅之瞳"
},
"name": "アカメが斬る!",
"syn_lowercase": [
"アカメが斬る!",
"斩·赤红之瞳!",
"akame ga kill",
"akame ga kiru",
"斬!赤紅之瞳"
],
"synonyms": [
"アカメが斬る!",
"斩·赤红之瞳!",
"Akame Ga Kill",
"Akame Ga Kiru",
"斬!赤紅之瞳"
],
"type": "bangumi"
}
"tag": [
{
"_id": "548f0004f892774b140ac618",
"activity": 0,
"locale": {
"ja": "アカメが斬る!",
"zh_cn": "斩·赤红之瞳!",
"en": "Akame Ga Kill",
"zh_tw": "斬!赤紅之瞳"
},
"name": "アカメが斬る!",
"syn_lowercase": [
"アカメが斬る!",
"斩·赤红之瞳!",
"akame ga kill",
"akame ga kiru",
"斬!赤紅之瞳"
],
"synonyms": [
"アカメが斬る!",
"斩·赤红之瞳!",
"Akame Ga Kill",
"Akame Ga Kiru",
"斬!赤紅之瞳"
],
"type": "bangumi"
}
]
}
```
* note:
Expand Down

0 comments on commit 9c2b734

Please sign in to comment.