2017-05-03 8 views
0

APIの青写真の構文からJSON本体の例を作成するのに役立つツールはありますか?例えばAPIの青写真(例:Apiary) - 青写真からjson bodyを生成するツール

私はこのような属性を打ち出している場合:

+ 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のツールを見てみましたが、どれも適切ではないようです。

答えて

1

API Blueprint parserは、MSONデータ構造用のJSONスキーマを生成できます。解析結果から抽出するだけです。

manuallyでもできますが、それにはtoolsを使用する準備が整っています。

希望があることを明確にしてください - 私はツールのセクションを更新してください!

関連する問題