2017-05-03 39 views
0

生成JSON的身體是否有一個工具從API藍圖語法使得例如JSON機構幫助?API藍圖(例如:蜂房) - 工具從藍圖

例如,如果我已經制定了這樣的屬性:

+ 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身體或模式給我嗎?我用Google搜索,並通過工具看着https://apiblueprint.org/tools.html但他們都不適合。

回答

1

API Blueprint parser能夠爲您的MSON數據結構JSON模式,它只是從剖析結果的物質中提取它們。

你可以這樣做manually但也有準備好使用tools來做到這一點。

希望它澄清 - 我會確保更新工具部分!