git://www.github.com/farolfo/raml-server.git
git clone http://www.github.com/farolfo/raml-server
$ svn co --depth empty http://www.github.com/farolfo/raml-server
Checked out revision 1.
$ cd repo
$ svn up trunk
通过写一个 RAML,得到一个完全假的假 REST API,代码。
为基于的服务器构建新的? 导致这一工作与 json服务器一起工作,因此没有很多代码可以做。
这是一个开源项目,因此问题。PRs和建议都是 wellcome。
在 node v0.12下测试RAML服务器。 如果还没有安装 node,建议通过 进行安装。
如果已经安装 node,请运行
$ npm install -g raml-server
基于 exampleApi.raml
文件启动服务器
$ raml-server exampleApi.raml
然后点击 localhost:3000/songs
。同时,在服务器上发布/songs的后端将被保存 !
通过在JSON模式下生成responses数据读取JSON模式data并使用服务器运行响应'完成这一任务。
api.raml
文件启动服务器。