Api蓝图同时使用Body和Attributes,但保留指定的Body的JSON

时间:2018-10-17 05:29:15

标签: apiblueprint aglio

我有一个这样的apib文件,我希望显示响应正文而不是Attributes (SearchResult)生成的正文,但是我不能删除Attributes (SearchResult),因为我想保留{ {1}}。

Attributes (SearchResult)

从aglio生成的html将具有从FORMAT: 1A HOST: host.com # Data Structures ## SearchResult + totalResults (required, number) + hasMore (required, boolean) + results (required, Record) # Group Record Search ## Query [/api/graphql] ### Search Record [POST] + Response 200 (application/json) + Attributes (SearchResult) + Body { "data": "this is the response" } 生成的Responses正文,而不显示此指定的正文。

Attributes (SearchResult)

0 个答案:

没有答案