Skip to content

QuerySong

Ken Luo edited this page May 17, 2020 · 16 revisions

QuerySong (歌曲查詢)

服務器位址:

https://127.0.0.1:22231

參數:

lang=語系

singer=歌手名稱

words=字數

condition=查詢條件(值須加單引號)

page=頁數

rows=項目數量

sort=排序條件

返回類型:

application/json

返回資料:

"Song_Id", "Song_SongName", "Song_Singer", "Song_WordCount", "Song_Lang", "Song_PlayCount", "Song_CreatDate", "Song_SingerType", "Song_SongType", "Song_SongStroke"

查無資料或錯誤返回:

空的 JSON 陣列

[{"Error":"Message"}]

查詢範例:

查詢歌手「A-Lin」:

https://127.0.0.1:22231/QuerySong?rows=50&condition=Song_Singer='A-Lin' or Song_Singer like '%&A-Lin' or Song_Singer like 'A-Lin&%' or Song_Singer like '%&A-Lin&%'&page=1

查詢國語五字部:

https://127.0.0.1:22231/QuerySong?rows=50&condition=Song_WordCount=5&lang=國語&page=1

查詢國語新進歌曲:

https://127.0.0.1:22231/QuerySong?rows=50&lang=國語&page=0&sort=Song_CreatDate DESC,Song_WordCount,Song_SongName

Clone this wiki locally