Chronopolis - API - Bag API results inconsistent with page size
When querying on the Bag API (/api/bags
), a join is done to retrieve the nodes which have replicated which causes the result set and page size to differ.
The easiest way to resolve this would likely to be to remove the replicatingNodes
field from that endpoint as it can be retrieved from /api/bags/{id}
. As this would count as a change to the API we would need to keep in mind this should bring in a major version bump.
IMO it would also be good to define the different models in the BagService
interface so that they are explicitly marked as having less information. So instead of having a single Bag
class in rest-models
, there would be two separate classes defining the information being returned.
Edited by Jessica Hilt