API蓝图-组级别的响应

时间:2018-10-08 15:02:23

标签: grouping apiblueprint

我有一个小问题。在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"}

0 个答案:

没有答案