rave-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erin Noe-Payne <erin.noe.pa...@gmail.com>
Subject Re: REST API & Metadata
Date Wed, 09 Apr 2014 06:03:22 GMT
The angular branch wraps & unwraps the responses using http
interceptors - it's centrally located so it would be easy to change if
the data format changes.

On Tue, Apr 8, 2014 at 11:49 PM, Chris Geer <chris@cxtsoftware.com> wrote:
> At some point the new CXF calls all got wrapped with a metadata object. For
> the return types that are lists I understand why we did it but for the
> single objects we are returning an empty block. Is there a reason we are
> wrapping the non-list data?
>
> Another thing is, is wrapping the data the right thing to do or should we
> be using something like link headers [1] like github does [2][3]?
>
> I could go either way with representing the list data (headers or metadata)
> but I definitely think we should remove the wrapping for the non-list data.
> What impact will that have on the Angular branch?
>
> Chris
>
> [1] http://tools.ietf.org/html/rfc5988
> [2] https://developer.github.com/v3/#pagination
> [3]
> http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api#pagination

Mime
View raw message