Migrated from Redmine #851 | Author: David Wildman
Status: New | Priority: Normal | Created: 2022-03-16
In the SimplyBook user api, there is a method to retrieve the configured company timeframe:
getTimeframe ()
Returns company’s timeframe configuration (in minutes). Timeframe can be either 5, 10, 15, 20, 30 or 60 minutes.
You can find more details about timeframe [[Settings#Timeframe|here]].@return Integer
However, in the REST API there is no way to retrieve the timeframe from an endpoint.
It would be great to have this information available on its own endpoint, e.g.:
/admin/timeframe
Equally, it would be useful to have this on the time slots endpoint.
/admin/timeline/slots
Timeline_SlotsDateEntity
Entity for daily timeline
Name Type Description
date string Date
slots Timeline_SlotEntity Slots
timeframe int Configured company timeframe
Currently, I am manually computing the timeframe using the time difference in minutes between the first two times returned for “all slots”. It would be much better to have certainty of this value by being able to retrieve it explicitly from an endpoint.