Skip to content

Class Diagrams

Marco Nembrini edited this page Feb 9, 2018 · 2 revisions

Harvest JSON to classes

With the Domain object we need to map the fields of a JSON response directly. Harvest flattens object relationships in their responses, so that e.g. if there is a chain of objects A -> B -> C, GET on A would return the id of B and the id of C in the response, so you can GET C directly without going through B.

Here is what it looks like:

If you unflatted the diagram (do no show the arrow A -> C if A -> B -> C are connected):

If you further hide the *Assignment classes for a moment, you get this more readable version:

harvest-client Diagrams

Api classes

Exceptions

Clone this wiki locally