是否有一个工具可以帮助从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蓝图解析器能够为您的MSON数据结构生成JSON模式,这只是从Parse结果中提取它们的问题。
您可以手动执行此操作,但是可以使用工具来做到这一点。
希望它澄清 - 我将确保更新工具部分!