2 ms·
A few additions that I'd like to see: * Standardized paging * Optional side-loading - GET /albums.json?include=artists,songs * Multiple meta elements - so we
by gavinjoyce 13y ago
A few additions that I'd like to see:
* Standardized paging
* Optional side-loading - GET /albums.json?include=artists,songs
* Multiple meta elements - so we'd have "albums_meta", "artists_meta" and "songs_meta" in the example above. This allows us to include 'has_n' relationship paging data.
- wycats 13y agoThanks for the feedback :) Standardized paging seems to come up a lot, so it seems like a good thing to add once the core spec stabilizes. Optional sideloading also has come up a few times, and seems easy to add as a MAY in the spec. I need to flesh out the meta stuff in general, and the ability to have "meta anywhere" as well as top-level metas is coming.
- gavinjoyce 13y agoNice, thanks. I've been building an alternative to ActiveModel::Serializers which provides these features. https://github.com/RestPack/restpack-serializer https://github.com/RestPack/restpack-serializer In the light of your proposals, I'll either implement JSON API or switch back to AM:Serializers. Side-loading, paging and Ember Data compatibility are my main goals.
- steveklabnik 13y agoI'd love to have your feedback from what you've learned about building stuff with restpack. https://github.com/json-api/json-api/ https://github.com/json-api/json-api/ is the repo, please open up issues for any questions/comments :)
- steveklabnik 13y agoI've filed an issue for you about sideloading https://github.com/json-api/json-api/issues/5 https://github.com/json-api/json-api/issues/5