Hot answers tagged json
If you were defining common error format for your Api, see also "Problem Details for HTTP APIs". You don't need to say "status: fail" because it should be indicated already in status code. You can use "problemType" URI as key. For clients that don't want to translate error message themselves, they should use Accept-Language header so server knows what ...
Option 1 or 3 seems to be the best solutions for this situation. Option 2 Download by JSON and place in java array is not recommended since it's not reliable. The OS might kill your application process when it's in the background therefore destroying the memory cached images. This would require users to redownload the 100mb of images all over again next ...
For the "why" question, there is a really good definition in the book RESTful Web APIs - essentially OData implements a collection pattern, where a collection is a resource that provides a list of resources through links.
Only top voted, non community-wiki answers of a minimum length are eligible