From: Krzysztof B. <go...@ic...> - 2015-06-17 08:38:56
|
Hi, W dniu 15.06.2015 o 16:39, Terefang Verigorn pisze: > hi! > > i am currently trying to implement a rest client in java using > 'retrofit' and dtos. > > the problem that i am having is that that objects returned by a GET > to "/entity/{entityId}/attribute" are not structurally equivalent to the > object used in a PUT. > > eg. in the first case we have a list of strings (possible base64 > encoded), and in the second case there is a list of json objects. > > is this a mistake ? I don't think there is a mistake. The object used to the put command should be similar (same in the syntax sense) as returned in GET. However in case of GET you will receive more information (whether the attribute is directly defined and what is the syntax). Maybe you refer to attribute values? Values are always in a json array and what is the syntax of the element of the array is governed by the attribute syntax. The JPEG image value is encoded in a totally different way than say integer number. If you are asking about something different can you please paste the example? Best, Krzysztof |