Skip to content

Conversation

@gabrielfin
Copy link

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

@alextselegidis
Copy link
Owner

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:

#1282

Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!

@alextselegidis
Copy link
Owner

Any updates on this?

Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!

@gabrielfin
Copy link
Author

I was waiting for your reply to my question in #1282 (comment) :

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/availabilities already exists. Or you just meant that the new endpoint should begin with /api/v1/?

@alextselegidis
Copy link
Owner

Hello!

Sorry I accidentally skipped your comment, but it now has a reply:

#1282 (comment)

Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!

@gabrielfin
Copy link
Author

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"
  ],
  ...
}

@alextselegidis
Copy link
Owner

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!

@luzpaz
Copy link

luzpaz commented Jul 7, 2024

Is this getting bumped to the next release ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants