Need advice on developing the type of API for the site quests.
I have a quest aggregator (PHP, Wordpress) with questroom sessions on it. Now, with the help of Curl, I get the following data from all the sites of the quest rooms: quest, date, time, whether it is free.
I want to make an API, since there are a lot of problems with parsing.
While there is such an option, steelen from one of the major aggregators:
The client generates a json-file with the schedule, from where I get the data using a GET request. This file is automatically generated every day and changes when booking a session (instead of changing the file, I would add a post-request with the booking data to my site).
The client generates a URL to which I will send booking data already from my aggregator by post request. Thus, it will also be possible to book a session on my website, and the owners of the questroom will receive this reservation.
I hope, clearly described. Is this a normal algorithm? Maybe something is wrong, or can something be improved or done differently? I would be grateful for the advice.