easyappointments
easyappointments copied to clipboard
API endpoint for available dates
An endpoint that returns all dates with availabilities for a certain month.
/availabilities/dates?month=2022-07&providerId=xx&serviceId=xx
Returns:
["2022-07-05", "2022-07-14", "2022-07-22"]
See #1282
Hello!
Thanks for this PR.
I just saw that you already submitted it, so could you please perform the missing changes so that I can merge this:
https://github.com/alextselegidis/easyappointments/issues/1282
![]() |
Alex Tselegidis, Easy!Appointments Creator Need a customization? Get a free quote! |
Any updates on this?
![]() |
Alex Tselegidis, Easy!Appointments Creator Need a customization? Get a free quote! |
I was waiting for your reply to my question in https://github.com/alextselegidis/easyappointments/issues/1282#issuecomment-1180739154 :
Change the endpoint to /api/v1/availabilities?date=2022-07&providerId=&serviceId=
Do you mean I should replace the current existing endpoint? Because
/api/v1/availabilitiesalready exists. Or you just meant that the new endpoint should begin with/api/v1/?
Hello!
Sorry I accidentally skipped your comment, but it now has a reply:
https://github.com/alextselegidis/easyappointments/issues/1282#issuecomment-1236839778
![]() |
Alex Tselegidis, Easy!Appointments Creator Need a customization? Get a free quote! |
As requested, I put the new code in place of the previous /availabilities endpoint.
/api/v1/availabilities?date=2022-09&providerId=<id>&serviceId=<id> now returns:
{
"2022-09-06": [
"09:00",
"09:30"
],
"2022-09-07": [
"09:00",
"09:30"
],
...
}
Hello!
Thanks for the updated PR!
I'll review and merge for 1.5
![]() |
Alex Tselegidis, Easy!Appointments Creator Need a customization? Get a free quote! |
