我有一个小问题。在API组级别定义响应的最佳方法是什么?
例如,如果整个小组都可以做出类似的错误响应:
# Group Users
## url 1 [/test]
### get request 1 [GET]
+ Response 200 (application/json)
{"name": "test"}
## url 2 [/test1]
### get request 1 [GET]
+ Response 200 (application/json)
{"name": "test1"}
## Group Level Response
+ Response 404 (application/json)
{"name": "not found"}