wvteijlingen / Spine

A Swift library for working with JSON:API APIs. It supports mapping to custom model classes, fetching, advanced querying, linking and persisting.
MIT License
266 stars 109 forks source link

Include top level metadata in the promise of find methods #20

Closed wvteijlingen closed 8 years ago

wvteijlingen commented 9 years ago

Right now top level metadata is deserialized, but it is not included in the promise that is returned from find operations.

We need to decide what to return from a FetchOperation. Right now it's a ResourceCollection, but for this it might need to become a (ResourceCollection, NSDictionary) or maybe even a whole JSONAPIDocument.

wvteijlingen commented 8 years ago

Support for this has been added in the swift-2.0 branch (https://github.com/wvteijlingen/Spine/pull/36)