Device Public - Staging
| Compendium Reference | Route + Method | Comments |
|---|---|---|
| /product/{productCode} GET | ||
| 15. Register New Product Code | /product PUT | |
| /product/{productCode} DELETE | If there's a mistake. Soft delete. | |
| /device/{deviceId} GET | ||
| 22. Rec. of PIC | /devices/{PIC} GET | Reconciliation 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 GET | Get all the devices the user is associated with (can see). |
| 9. Register New Devices | /devices PUT | |
| 10. Register Livestock | ditto | |
| 23. Transfer Unused Device | ditto | When 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} DELETE | Soft delete. |
| /status/{deviceId} GET | ||
| 30. Create Remove Status & Flag | /status/{deviceId} PUT | |
| 16. Update Device Status or Fla | ditto | |
| /status/{deviceId} DELETE | If there's a mistake. Soft delete. | |
| 17. Record Sighted Livestock | /sighted PUT | How 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} DELETE | If there's a mistake. Soft delete. | |
| 19. Replace NLIS Device | /replace POST | How 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} DELETE | If there's a mistake. Soft delete. | |
| 8. Livestock Died on Property | /death POST | |
| /death/{deathId} DELETE | ||
| 21. Edit Remove Transaction | Covered by DELETE methods above. |