HACKER
TALK
Home
Channels
beta
Bookmarks
Messages
Notifications
Sign In
Comment
API 返回数据结构设计怎么做
restful api 返回数据结构大家都是怎么设计的,如何包含错误信息或者额外信息呢?有没最佳实践或者大公司都是怎么做的。
HD Superman
·
3 years ago
Across the Great Wall, we can reach every corner in the world.
没有错误信息的话 error 字段就是空的,不返回
Reply
Report
HD Superman
Joined 3 years ago
Across the Great Wall, we can reach every corner in the world.
github.com/hdsuperman
Follow
Message