geocollections / geokogud

Geocollections of Estonia
http://geocollections.arendus.geokogud.info/
GNU Affero General Public License v3.0
4 stars 2 forks source link

JSON serialization overhaul #75

Closed Kotodevochka closed 7 years ago

Kotodevochka commented 7 years ago

As a developer, I want to work with clean and simple code which contains no duplicated logic. API returns just bunch of fields with no structure. Currently we just unmarshal these fields without constructing any graph structure. But what we should do is construct an object which contains other objects that represent joined tables such as localities, reference etc...

AC:

  1. Implement such custom serializer using jackson library.
  2. Serializer is able to detect joined tables and construct subobjects from these fields with corresponding prefixes.
Kotodevochka commented 7 years ago

Done. Related data deserialization also works.