Migrated from Redmine #990 | Author: Jerome Bell
Status: Rejected | Priority: High, I’m very impatient | Created: 2022-12-19
When I query the availability for a service that takes 45 min, I get a time interval which is 15 min long (9:45-10:00). This seems completely inaccurate, I would expect only time intervals that are at least 45 min. Please advise.
POST https://user-api.simplybook.us/
200
334 ms
POST / HTTP/1.1
X-Company-Login: stjude
X-Token: b1351201d9254be615ed0405d99ceb485993dd65a448b7d7ddf233859be81806
x-functions-key: EY9ZVMi/o0TZAGP2XCeW8B7r0kXrb4sPgaJ2aikeZmLqkBh6iIAQyw==
Content-Type: application/json
User-Agent: PostmanRuntime/7.30.0
Accept: /
Postman-Token: 4963c9dd-81c6-4203-84e6-9fb60e0f14d4
Host: user-api.simplybook.us
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 180
{
“jsonrpc” : “2.0”,
“id”: 1,
“method” : “getServiceAvailableTimeIntervals”,
“params” : [
“2022-12-21”,
“2022-12-21”,
5,
1,
1
]
}
HTTP/1.1 200 OK
Server: nginx
Date: Mon, 19 Dec 2022 15:16:43 GMT
Content-Type: application/json
Content-Length: 166
Connection: keep-alive
Keep-Alive: timeout=20
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, GET, OPTIONS
Access-Control-Allow-Headers: content-type, x-company-login, x-application-token, x-user-token, x-token, x-requested-with, x-csrf-token
X-XSS-Protection: 1; mode=block
{“result”:{“2022-12-21”:{“5”:[{“from”:“09:45:00”,“to”:“10:00:00”},{“from”:“10:45:00”,“to”:“12:00:00”},{“from”:“12:30:00”,“to”:“17:00:00”}]}},“id”:“1”,“jsonrpc”:“2.0”}