Commit Graph

462 Commits

Author SHA1 Message Date
Alex Tselegidis 4020e40a25 Corrected settings and availabilities routes 2021-11-06 11:15:15 +01:00
Alex Tselegidis 169b9818a6 Use the new routes helper in the routes.php config file 2021-11-06 10:23:25 +01:00
Alex Tselegidis 308e41bbe1 Autoload the new routes_helper.php file 2021-11-06 10:22:09 +01:00
Alex Tselegidis 3476807b40 Added the routes helper file 2021-11-06 10:18:46 +01:00
Alex Tselegidis ba77658551 Ported the api parser encode and decode into the model classes 2021-11-05 09:37:14 +01:00
Alex Tselegidis 95a4e94a53 The response helper function must properly set the status code and the headers 2021-11-05 08:31:37 +01:00
Alex Tselegidis 3c5be0d12b The set setting method could also get a NULL value 2021-11-05 08:28:59 +01:00
Alex Tselegidis afc05577a4 Refactored the admins API controller (no engine code is being used). 2021-11-03 08:38:59 +01:00
Alex Tselegidis ea659ccb9f The base model knows how to map an API resource field to a DB field. 2021-11-03 08:22:27 +01:00
Alex Tselegidis c390a6552a Using the request helper without specifying a key should return the entire request body. 2021-11-03 08:22:05 +01:00
Alex Tselegidis 10ee3401e4 The API library can correctly sort and set the CORS headers 2021-11-03 08:21:30 +01:00
Alex Tselegidis 6eaa6e52a5 Added API resource mapping 2021-11-03 08:21:03 +01:00
Alex Tselegidis 4c6c5b5913 Remove the old and deprecated API_V1_Controller.php 2021-11-02 10:45:05 +01:00
Alex Tselegidis 7d3bc3104c Created new library that handles common API functionality. 2021-11-02 10:44:37 +01:00
Alex Tselegidis c2127a28fb Added missing comments 2021-11-02 10:04:46 +01:00
Alex Tselegidis dc50f8dee1 Updated @since tag 2021-11-02 09:24:28 +01:00
Alex Tselegidis bdaa46459c The new settings model does not have the set_setting and get_setting values. 2021-10-29 13:21:03 +02:00
Alex Tselegidis 306e94a082 The delete model method does not return a result any more. 2021-10-29 13:20:33 +02:00
Alex Tselegidis 4ed7465784 Corrected the name of the exception variable 2021-10-29 13:16:21 +02:00
Alex Tselegidis 182cebfb74 Renamed the add_unavailable method to save_unavailable for consistency 2021-10-29 13:12:39 +02:00
Alex Tselegidis e29c2198de Removed the delete_unavailable method 2021-10-29 13:11:56 +02:00
Alex Tselegidis 8b02cbb369 Added missing type hints for method params 2021-10-29 13:10:54 +02:00
Alex Tselegidis 3dee2ef4ef Added missing @method tag in phpdoc comments 2021-10-29 13:10:36 +02:00
Alex Tselegidis 8947500968 If the request does not have the application/json content type header then return NULL 2021-10-29 13:08:41 +02:00
Alex Tselegidis d886f6db16 Override the CSRF validation to support the X-CSRF header. 2021-10-29 13:06:56 +02:00
Alex Tselegidis 3233c19571 Added overrides for all the framework classes as templates and for consistency 2021-10-29 13:04:26 +02:00
Alex Tselegidis 12ec5c1ac3 The request helper can now also fetch JSON-payload attributes 2021-10-29 12:54:49 +02:00
Alex Tselegidis dd546164fb Common type casting functionality 2021-10-29 12:39:49 +02:00
Alex Tselegidis b7305be038 Type casting for the Users_model.php 2021-10-29 12:39:38 +02:00
Alex Tselegidis d62dd9b053 Type casting for the Settings_model.php 2021-10-29 12:39:32 +02:00
Alex Tselegidis 83777d35ba Type casting for the Services_model.php 2021-10-29 12:39:27 +02:00
Alex Tselegidis 791f1e38e4 Type casting for the Service_categories_model.php 2021-10-29 12:39:20 +02:00
Alex Tselegidis 879b58ad6a Type casting for the Secretaries_model.php 2021-10-29 12:39:14 +02:00
Alex Tselegidis 23cdaa2c6b Type casting for the Roles_model.php 2021-10-29 12:39:08 +02:00
Alex Tselegidis e0dbdeccfc Type casting for the Providers_model.php 2021-10-29 12:39:02 +02:00
Alex Tselegidis 9338ec4445 Type casting for the Customers_model.php 2021-10-29 12:38:56 +02:00
Alex Tselegidis 6cc17d7bf5 Type casting for the Consents_model.php 2021-10-29 12:38:49 +02:00
Alex Tselegidis d1b78397ef Type casting for the Admins_model.php 2021-10-29 12:38:41 +02:00
Alex Tselegidis 64205cb23b Type casting for the Appointments_model.php 2021-10-29 12:38:30 +02:00
Alex Tselegidis 76afdef30b Moved the instance handling logic to a re-usable library 2021-10-29 10:44:01 +02:00
Alex Tselegidis 18348e02a5 Added core migration class. 2021-10-29 10:19:10 +02:00
Alex Tselegidis 9a528e6734 Updated the class comments 2021-10-29 10:18:44 +02:00
Alex Tselegidis 8ecf389bf1 Updated all the API controllers to work with the updated code. 2021-10-28 14:01:27 +02:00
Alex Tselegidis a280496294 Updated all the main controllers to work with the updated code. 2021-10-28 14:01:17 +02:00
Alex Tselegidis 61a718cb2f Updated the Timezones.php library to work with the updated code. 2021-10-28 14:00:48 +02:00
Alex Tselegidis 8e11dddf4a Updated the Synchronization.php library to work with the updated code. 2021-10-28 14:00:40 +02:00
Alex Tselegidis 44aea4febb Updated the Notifications.php library to work with the updated code. 2021-10-28 14:00:33 +02:00
Alex Tselegidis 23d80259d9 Updated the Ics_file.php library to work with the updated code. 2021-10-28 14:00:18 +02:00
Alex Tselegidis f540922abc Updated the Google_sync.php library to work with the updated code. 2021-10-28 14:00:10 +02:00
Alex Tselegidis e4c01f54f8 Updated the Availability.php library to work with the updated code. 2021-10-28 13:59:56 +02:00