The objection is justified in principle, but in resource design the question must always be asked whether a separate data structure must be defined for each resource or whether it does not make more sense to use existing data structures more than once. Otherwise, the number of defined data structures becomes unmanageably large at some point.
In this case, the decision was made to use the same data structure in the response of the following two resources:
As a consequence, however, workplaceId and operationId must be returned in the response of both resources.
Please login or Register to submit your answer