我正在使用RSpec测试我的API,使用Grape和Rails进行构建,并获得大量唯一性验证错误。 我使用config.use_transactional_fixtures = true回滚每次测试后的数据库,但我得到这个错误: 7) API GET /api/v1/quotations returns 200 when there is at least one quotation
F
有没有办法让葡萄kaminari与葡萄jbuilder gem一起工作? 我已经试过只是分页记录在实际API模块端点: resource :groups do
desc "Return a list of groups belonging to your company."
get "/", jbuilder: "v3/groups" do
paginate(@gr
这里是我的API是什么样子: module ServiceRequests
class API < Grape::API
version 'v1', using: :path
format :json
namespace :companies do
params do
requires :company_id, type: Inte
我需要一些帮助来获得葡萄:: API并使用Rails 4 我跑即使puts告诉我该类已加载,也会获得Unable to autoload constant Base。 我在做什么错? 应用程序/ API/api.rb class API < Grape::API
prefix 'api'
format :json
default_format :json
m
葡萄有没有一种方法& Grape-Entity将数据自动序列化为实体?好像所有的例子都使用PARAMS [:VAR(来源:https://github.com/intridea/grape) desc "Create a status."
params do
requires :status, type: String, desc: "Your status."
end
post