Compendium ReferenceRoute + MethodComments
/product/{productCode} GET
15. Register New Product Code/product PUT
/product/{productCode} DELETEIf there's a mistake. Soft delete.
/device/{deviceId} GET
22. Rec. of PIC/devices/{PIC} GETReconciliation is performed by client, but it needs a list of all the devices the system believes are on the PIC.
27. Manage My Devices/devices GETGet all the devices the user is associated with (can see).
9. Register New Devices/devices PUT
10. Register Livestockditto
23. Transfer Unused DevicedittoWhen this upsert comes through, the View Calculator picks up that the device's PIC has changed, and creates the 'transfer' in the data (if that's what we need, depending on how device transfers are being represented in the data). From an API perspective, we're just updating the device record with a new PIC.
14. Remove (Delete) Device/device/{deviceId} DELETESoft delete.
/status/{deviceId} GET
30. Create Remove Status & Flag/status/{deviceId} PUT
16. Update Device Status or Fladitto
/status/{deviceId} DELETEIf there's a mistake. Soft delete.
17. Record Sighted Livestock/sighted PUTHow are we representing 'sighted livestock' in the system (from a data perspective)? I remember that Michael found a problem with my 'null movement' idea (to from the same PIC), but I can't remember what it was. This could belong in movement.
/sighted/{sightingId} DELETEIf there's a mistake. Soft delete.
19. Replace NLIS Device/replace POSTHow are we representing device replacement in the system (from a data perspective)? A device represents an animal everywhere else in the system, but here we have more than one device (and its associated id) associated with the same animal.
/replace/{replacementId} DELETEIf there's a mistake. Soft delete.
8. Livestock Died on Property/death POST
/death/{deathId} DELETE
21. Edit Remove TransactionCovered by DELETE methods above.