jsonapi-utils
jsonapi-utils copied to clipboard
Improvement/metadata on jsonapi render
Currently there is no way to pass top-level meta
objects in the current implementation as it only filters for pagination options, record_count and page_count.
This line allows to jsonapi_render
to include top-level meta information in the following way:
jsonapi_render json: MyResource.first, status: :ok, options: { meta: { author: "Erik Regla", pls_approve_dis: "true" } }
Any hold up on this change. It would be very useful!
@tiagopog could we add this? It would be very useful