Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API endpoint for available dates #1283

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

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