grape-slate:允许生成Slate(https

时间:2021-05-19 16:56:38
【文件属性】:
文件名称:grape-slate:允许生成Slate(https
文件大小:15KB
文件格式:ZIP
更新时间:2021-05-19 16:56:38
Ruby 葡萄石板 自动从您的 API创建的生成一个。 笔记 这是一个早期实现,对您的API做出了一些假设(遵循标准的REST模式),该假设可与我们的Grape API实现配合使用。 中有一个新的,可用于附加其他文档。 该项目依赖于此功能,以便创建示例JSON请求和响应。 安装 将此行添加到您的应用程序的Gemfile中: gem 'grape', github: 'intridea/grape' # see note above gem 'grape-slate' 然后执行: $ bundle 或将其自己安装为: $ gem install grape-slate 用法 添加有关您的API的一些元数据,然后在GrapeSlate::Blueprint类上执行generate方法。 配置 在初始化程序或类似程序中配置有关您的api的详细信息: GrapeSlate . config
【文件预览】:
grape-slate-master
----.gitignore(154B)
----Guardfile(296B)
----.rspec(26B)
----.travis.yml(180B)
----.rubocop.yml(382B)
----grape-slate.gemspec(1KB)
----LICENSE.txt(1KB)
----spec()
--------support()
--------grape-slate()
--------spec_helper.rb(407B)
----README.md(3KB)
----lib()
--------grape()
--------grape-slate.rb(458B)
--------grape-slate()
----Gemfile(135B)
----Rakefile(475B)

网友评论