You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue specifies endpoints related to the Hitobito camp sync feature, which allows users to sync camps that have been linked to a Hitobito provider (i.e. MiData).
Sync Preview
The sync preview endpoint fetches the data from Hitobito and returns the new camp model, but does not persist the changes.
// GET /api/camps/<id>/hitobito_sync_preview// Response// <camp response model>
Implementation
Check whether the specified camp exists
If not, respond with 404 Not Found
Check whether the user has access to the camp (at least role manager)
Respond with the camp model without updating the camp and 200 OK
Sync
// POST /api/camps/<id>/hitobito_sync// Response// <camp response model>
Implementation
Exact same workflow as Sync Preview, but persist the camp before responding. Also set the hitobitoLastSyncTime to the current datetime when updating the camp.
Respond with 200 OK
This issue specifies endpoints related to the Hitobito camp sync feature, which allows users to sync camps that have been linked to a Hitobito provider (i.e. MiData).
Sync Preview
The sync preview endpoint fetches the data from Hitobito and returns the new camp model, but does not persist the changes.
Implementation
404 Not Foundmanager)403 Forbidden404 Not Foundand a corresponding error code.200 OKSync
Implementation
Exact same workflow as Sync Preview, but persist the camp before responding. Also set the
hitobitoLastSyncTimeto the current datetime when updating the camp.Respond with
200 OK