我在我的数据库中有一个列类型TEXT。我应该在API中声明什么类型的参数? params do
requires :body, type: Text
end
上面的代码生成此error: uninitialized constant API::Articles::Text (NameError) 我尝试设置参数作为type: String,但具有ArgumentError我的测试响
葡萄有没有一种方法& Grape-Entity将数据自动序列化为实体?好像所有的例子都使用PARAMS [:VAR(来源:https://github.com/intridea/grape) desc "Create a status."
params do
requires :status, type: String, desc: "Your status."
end
post