[#884] REST API not returning bookings_limit and min_group_booking

Migrated from Redmine #884 | Author: Erik Borge
Status: Feedback | Priority: High, I’m very impatient | Created: 2022-05-27


Hi.
I have activated the custom feature “Group Bookings” and on some of my services the options “Limit bookings” and “Min allowed bookings at a time” under “More options” in the right menu. When I call the endpoint /services with the REST API, these two properties are not present. In my test booking flow, I can see them when I inspect the data coming in. I’m assuming you are using the JSON RPC API there, and after having made a test with that on my own, I have confirmed that these properties are present when I make a call for a service.

Why are those properties not present with the REST API? Is there a way I can get them? I really want to continue using the REST API.

Thanks.

Erik

Dmytro Bondarev wrote:

Hi,

Thank you for your feedback.
We will add “Limit bookings” value for services.
And we will make config endpoint for REST API.

Unfortunately we do not exact ETA for now.

Erik Borge wrote:

Ok, thanks.
Does that mean you will add “min_group_booking” as well?

Erik Borge wrote:

By the way, what do you mean with “make config endpoint for REST API”?
Thanks

Dmytro Bondarev wrote:

Yes we will add min_group_booking as well.
Config can be useful for other parameters, that set for all services. (not per service)

Erik Borge wrote:

Ok thanks.
Please keep me posted about the progress and when you can give an ETA for this. Thanks

Erik Borge wrote:

Can you give me something to tell my client regarding this feature? Will it come in a week, a month, three months?

Thanks

Erik Borge wrote:

Hi. Still looking for an answer to the ETA.
Thanks

Dmytro Bondarev wrote:

Hi,

It will be available next week.

Erik Borge wrote:

ok, very good! Please keep me posted. Thank you :slight_smile:

Erik Borge wrote:

Is this implemented now?