数据库操作结果映射 http 状态码

2018-08-25  本文已影响27人  萧哈哈

出自

DB Basic Operations

Create

Read

Update

Delete

Notes
1- { Record } is the full record, and behaves similar to the current insert operation in that it returns the defined record in the model.
2- statusCode is evaluated internally today and that’s the number placed in the http status header
3- 201 In the insert should also include A Location Header field with /newlycreatedID appended

上一篇下一篇

猜你喜欢

热点阅读