json-api icon indicating copy to clipboard operation
json-api copied to clipboard

Top level Meta for Collection

Open snellingio opened this issue 3 years ago • 1 comments

Even though this is specifically in the To Do section, I'm making an issue for it to bump the urgency of it as I need it to pass back some additional data.

I am imagining an API that looks something like this: Resource::collection($data)->withMeta($meta)

Again, if @timacdonald has a specific implementation in mind, let me know. If it sounds good in theory, I can try to take a stab at it.

snellingio avatar May 31 '22 14:05 snellingio

Hey, just a heads up I'll be merging support for this shortly!

timacdonald avatar Jun 16 '22 06:06 timacdonald

This is the exact API that will land in v1. Docs are being written at the moment. Thanks Sam.

timacdonald avatar Jan 26 '23 22:01 timacdonald