jsonapi-utils icon indicating copy to clipboard operation
jsonapi-utils copied to clipboard

Improvement/metadata on jsonapi render

Open idlechara opened this issue 6 years ago • 2 comments

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" } } 

idlechara avatar Jul 05 '18 16:07 idlechara

Any hold up on this change. It would be very useful!

npendery avatar Apr 10 '20 19:04 npendery

@tiagopog could we add this? It would be very useful

kceb avatar Aug 19 '21 19:08 kceb