Fix endpoint responses for bi-directional relationships

Description

All OpenLMIS endpoints that return entities with bi-directional relationships currently seem to fall into a loop during generating the JSON response for the view. An example is the search requistions endpoint, that returns the requisitions and the requisition lines that belong to them, that again contain the requisitions they belong to and so on. We should look into that and adjust the endpoints so we do not fall into a loop while generating the JSON responses.

Environment

None

Status

Assignee

Paweł Gesek

Reporter

Sebastian Brudziński

Labels

None

Sprint

None

Fix versions

Priority

Major
Configure