xebia-functional / appsly-android-rest

An Android client library for RESTful based web services.
209 stars 51 forks source link

restrung can't deal with that HTTP respone is a JsonArray? #23

Closed tommypink closed 11 years ago

tommypink commented 11 years ago

restrung can't deal with that HTTP respone is a JsonArray?

Can I fix it? Do we have the need?

raulraja commented 11 years ago

Sorry for the late response. RESTrung expects all responses to be object container that conforms to a JSONObject. We will consider support for arrays in the future. Note that by the nature of arrays the response can't contain other useful info such as pagination. We recommend as good rpactice for rest services that all server side responses are wrapped into object container even in the case of simple arrays.

haemi commented 10 years ago

is array support still not possible? I would love to use restrung and I have no influence to the api, which returns arrays, which is perfectly valid in my opinion.

raulraja commented 10 years ago

This is now possible. Appsly REST (RESTrung) uses plug-able serialization which defaults to Jackson. So array based responses are supported.