1
REST APIの応答構造とレイアウトのベストプラクティスは何ですか? scrathのREST APIの応答にはどのような方法がありますか?
例:
成功応答:
{
"status": "success",
"data": # some data here
}
失敗応答:
{
"status": "fail",
"data": {
"code": # some error code,
"message": # some error explaining message
}
}