【发布时间】:2017-05-03 11:02:06
【问题描述】:
是否有工具可以帮助根据 API 蓝图语法制作示例 JSON 主体?
例如,如果我这样布置属性:
+ Attributes (object)
+ data (array)
+ (object)
+ id: 100 (number) - The ID for the particular EPG object
+ title: "Vikings" (string) - The title for the program item
+ lang: "English" (string) - The language that the program is in
+ desc: "Lorem ipsum" (string) - The long description
+ start: 1492700179 (number) - The UNIX epoch timestamp for when the program starts
+ duration: 2816 (number) - For how many seconds the program will last
+ links (array)
+ (object)
+ rel: "self",
+ uri: "/epg/100"
+ (object)
+ rel: "image"
+ uri: "http://cdn.inquisitr.com/wp-content/uploads/2017/02/Vikings-Season-5-1.jpg"
是否有工具可以由此为我生成 JSON 正文或架构?我用谷歌搜索并查看了https://apiblueprint.org/tools.html 的工具,但它们似乎都不合适。
【问题讨论】:
标签: api apiblueprint apiary.io