我想在多个文件中定义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 –