每天的 1%
筆記一些每天學習到的東西,希望一年可以至少筆記 365 篇,一天 1% 一年就可以進步 37.8 倍
2018年8月13日 星期一
JSON API 什麼時候用 included 什麼時候用 relationships
resource 有可能在兩邊都出現,relationships 出現的原因是給 API user 知道有哪些相關連資料,但不一定要給 data details。而 included 則是把關聯資料的 details 也一次回傳。
https://stackoverflow.com/questions/35991897/json-api-questions-included-vs-relationships
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言