Le 13 mars 2015 19:50, "Inderjeet Singh" <inder_at_alumni.stanford.edu> a
écrit :
>
>
>
> On Fri, Mar 13, 2015 at 10:57 AM, Romain MB <rmannibucau_at_tomitribe.com>
wrote:
>>
>>
>> > Map may have the same issue but in practice I don't see APIs using Map
as
>> > the return type. Instead people use a regular class. OTOH, Lists are
common
>> > because often REST APIs return collections of resources.
>> >
>> >
>>
>> Well saw it regularly on cloud solutions and devoxx API at least.
>
>
> If I was a client developer for those APIs, I would use a Class instead
of a Map to convert the API JSON response.
> Unless the API is too crazy (where the field names keep changing at
random, or are just too numerous), this remains a viable option that we
will tell the developers to use.
>
>
Well that is in a perfect world. Not doable in previous samples. Think to a
schedule indexed by conferences hours or name or environment keys...