【发布时间】:2017-02-07 18:27:37
【问题描述】:
This 页面显示对于 JSONAPI 推荐的“id”类型是字符串。
identification
Every resource object MUST contain an id member and a type member. The values of the id and type members MUST be strings.
将它保存为字符串可以得到什么。换句话说,如果在某些情况下 id 只是数字,是否仍然建议将它们保留为字符串?
【问题讨论】:
标签: json web-services rest api