Find worker activity by date
GET
http://localhost:8000/api/v1
/farms/{farm_id}/activities
Retrieves a list of activities recorded by a specific worker on a given date.
path Parameters
farm_idstring · requiredFarm ID
query Parameters
worker_idstring · requiredWorker ID
datestring · requiredDate in YYYY-MM-DD format
Responses
Successfully retrieved activities for the specified date
asset_idstringasset_typestringchanged_fieldstringcreated_atstringcreated_bystringcreator_namestringdescriptionstringnew_valuestringnote_idstringnote_typestringold_valuestringworker_codestringworker_idstringworker_namestring
Get a list of dates with worker activity
GET
http://localhost:8000/api/v1
/farms/{farm_id}/activities/summary
Retrieves a list of dates on which a specific worker has recorded activity, along with the count of activities for each date.
path Parameters
farm_idstring · requiredFarm ID
Responses
Successfully retrieved activity dates
datestringExample: 2006-01-18total_recordsintegerExample: 8total_workersintegerExample: 2workersobject[]