如何解决: ERROR: JSONAPI::Serializable::UndefinedSerializableClass: No
serializable class defined for Post
app/controllers/api/v1/posts_controller.rb:20:in `index'
使用这种宝石: gem 'jsonapi_suite'
gem 'js
我目前正在试图建模JSON API的查询参数结构,并将其应用到我的Spring Boot项目中。我将关注filters,排序,分页和可能的字段限制。 我想先下手过滤,所以我想我的REST端点能够处理像 GET /comments?filter[post]=1 HTTP/1.1
GET /comments?filter[post]=1,2 HTTP/1.1
GET /comments?fil