0
我在我的数据库中有一个列类型TEXT
。我应该在API中声明什么类型的参数?葡萄“文本”类型参数
params do
requires :body, type: Text
end
上面的代码生成此error: uninitialized constant API::Articles::Text (NameError)
我尝试设置参数作为type: String
,但具有ArgumentError
我的测试响应。