我想在多個文件中定義REST資源,並將其納入一個單一的錯構瘤文件 我試圖this但我總是錯構瘤的錯誤RAML 1.0包括與資源
Main.raml #%RAML 1.0 title: Main RAML file to include All APIs version: v1 baseUri: http://api.samplehost.com /student: !include student.raml
多個文件student.raml
#%RAML 1.0 title: student APIs version: v1 baseUri: http://api.samplehost.com /student: get: # ..etc
但我得到的包含文件未知錯誤:未知節點: '標題' 在Main.raml
當我從包含的文件「student.raml」 刪除「標題」我得到了在student.raml文件未知缺少必需的屬性「標題」
你能給我舉一個如何將類型關聯到路由的例子嗎? –
這裏有很多例子:https://github.com/raml-apis –