adewg / ICAR

Standard messages and specifications for animal data exchange in livestock.
https://icar.org/
Apache License 2.0
46 stars 26 forks source link

Sorting of animals #457

Closed AndreasSchultzGEA closed 4 months ago

AndreasSchultzGEA commented 4 months ago

Animals might have to be sorted on a farm. Sorting in general is about getting animals from one area of a farm to another. The way in between has to be managed by the HMS. Therefore, a sorting-API should

deliver the sorting-areas of a location deliver the currently active sorting-command for an animal allow the inactivation of a sorting-command for an animal allow the setting of a new sorting-command for an animal

cookeac commented 4 months ago

This looks good. If this is approved I will also update #430 to allow site identifiers, optionally referring to the same sites. One final question: might someone want to query all the active animal sorting commands for a location? If so, we would need a collection and API query for this.

AndreasSchultzGEA commented 4 months ago

I added an endpoint to request al known sorting-commands. @cookeac, could you please review the changes again? Thx!