PluginProbe
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution / 2.5.0
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution v2.5.0
2.5.0 2.4.0 2.3.0 2.2.5 2.2.0 2.1.2 2.1.1 trunk 1.10.0 1.10.01 1.10.02 1.5.0 1.5.01 1.5.02 1.5.1 1.5.10 1.5.20 1.5.21 1.5.22 1.5.23 1.5.24 1.5.25 1.6.0 1.7.0 1.7.1 All 34 releases
← All changes | app/Http/Routes/api.php +14 -7 2.3.0 → 2.5.0 View file →
@@ -2,9 +2,9 @@
2 2
3 3 defined('ABSPATH') || exit;
4 4
5 5 /**
6 - * @var $router FluentBooking\Framework\Http\Router
6 + * @var FluentBooking\Framework\Http\Router $router
7 7 */
8 8
9 9 $router->prefix('calendars')->withPolicy('CalendarPolicy')->group(function ($router) {
10 10
@@ -9,12 +9,11 @@
9 9 $router->prefix('calendars')->withPolicy('CalendarPolicy')->group(function ($router) {
10 10
11 11 $router->get('/', 'CalendarController@getAllCalendars')->meta('calendar_type', 'booking');
12 12
13 - $router->get('event-lists', 'CalendarController@getCalendarEventLists');
14 -
15 13 $router->post('/', 'CalendarController@createCalendar');
16 14 $router->post('check-slug', 'CalendarController@checkSlug');
15 + $router->get('location-fields', 'CalendarController@getNewEventLocationFields');
17 16
18 17 $router->get('/{id}', 'CalendarController@getCalendar')->int('id');
19 18 $router->post('/{id}', 'CalendarController@updateCalendar')->int('id');
20 19 $router->delete('/{id}', 'CalendarController@deleteCalendar')->int('id');
@@ -33,9 +32,9 @@
33 32 $router->get('/{id}/events/{event_id}', 'CalendarController@getEvent')->int('id')->int('event_id');
34 33 $router->put('/{id}/events/{event_id}', 'CalendarController@patchCalendarEvent')->int('id')->int('event_id');
35 34 $router->delete('/{id}/events/{event_id}', 'CalendarController@deleteCalendarEvent')->int('id')->int('event_id');
36 35
37 - $router->get('/{id}/events/{event_id}/availability', 'CalendarController@getAvailabilitySettings')->int('event_id');
36 + $router->get('/{id}/events/{event_id}/availability', 'CalendarController@getAvailabilitySettings')->int('id')->int('event_id');
38 37 $router->post('/{id}/events/{event_id}/details', 'CalendarController@updateEventDetails')->int('id')->int('event_id');
39 38 $router->post('/{id}/events/{event_id}/availability', 'CalendarController@updateEventAvailability')->int('id')->int('event_id');
40 39 $router->post('/{id}/events/{event_id}/limits', 'CalendarController@updateEventLimits')->int('id')->int('event_id');
41 40
@@ -66,8 +65,10 @@
66 65 $router->get('/', 'BookingController@getBookings');
67 66 $router->get('event/{event_id}', 'BookingController@getEvent')->int('event_id');
68 67 $router->get('slots/{event_id}', 'BookingController@getSlots')->int('event_id');
69 68 $router->post('create/{event_id}', 'BookingController@createBooking')->int('event_id');
69 + $router->get('reschedule/{event_id}/{id}/slots', 'BookingController@getRescheduleSlots')->int('event_id')->int('id');
70 + $router->post('reschedule/{event_id}/{id}', 'BookingController@rescheduleBooking')->int('event_id')->int('id');
70 71 });
71 72
72 73 $router->prefix('schedules')->withPolicy('MeetingPolicy')->group(function ($router) {
73 74 $router->get('/', 'SchedulesController@index'); // Need to check permission on the controller method
@@ -103,8 +104,14 @@
103 104 $router->post('/global-modules', 'SettingsController@updateGlobalModules');
104 105 $router->get('/pages', 'SettingsController@getPages');
105 106 $router->post('/addons-settings', 'SettingsController@saveAddonsSettings');
106 107 $router->post('/install-plugin', 'SettingsController@installPlugin');
108 + $router->post('/optin', 'SettingsController@updateOptin');
109 +
110 + // MCP server settings — see docs/mcp-server-spec.md.
111 + $router->get('/mcp', 'McpController@getSettings');
112 + $router->post('/mcp', 'McpController@updateSettings');
113 + $router->post('/mcp/install-adapter', 'McpController@installAdapter');
107 114 });
108 115
109 116 $router->prefix('availability')->withPolicy('AvailabilityPolicy')->group(function ($router) {
110 117 $router->get('/', 'AvailabilityController@index');
@@ -134,10 +141,10 @@
134 141 $router->prefix('{integration_id}')->group(function ($router) {
135 142 $router->get('/', 'CalendarIntegrationController@find')->int('id')->int('event_id')->int('integration_id');
136 143 $router->post('/', 'CalendarIntegrationController@update')->int('id')->int('event_id')->int('integration_id');
137 144 $router->delete('/', 'CalendarIntegrationController@delete')->int('id')->int('event_id')->int('integration_id');
138 - $router->get('/merge-fields', 'CalendarIntegrationController@integrationListComponent');
139 - $router->get('/config-field-options', 'CalendarIntegrationController@getConfigFieldOptions');
140 - $router->post('/crm-taxonomy', 'CalendarIntegrationController@createCrmTaxonomy')->int('id')->int('event_id');
145 + $router->get('/merge-fields', 'CalendarIntegrationController@integrationListComponent')->int('id')->int('event_id')->int('integration_id');
146 + $router->get('/config-field-options', 'CalendarIntegrationController@getConfigFieldOptions')->int('id')->int('event_id')->int('integration_id');
147 + $router->post('/crm-taxonomy', 'CalendarIntegrationController@createCrmTaxonomy')->int('id')->int('event_id')->int('integration_id');
141 148 });
142 149 });
143 150 });