[RFC|Rejected] Holy Grail ajax_api.php
[RFC|Rejected] Holy Grail ajax_api.php
The current ajax implementations depend on tweaking existing code to attain its functionality. I propose something like ajax_api.php where all the .ajax() request goes and are processed. This would make it an easier job to integrate quick edit, quick reply and any such features to be added in the feature. ajax_api should cover user authentication, db_tools, $config and all the necessary components, while providing an interface for ajax requests, something similar to a RESTful service.
There is a text here !
- callumacrae
- Former Team Member
- Posts: 1046
- Joined: Tue Apr 27, 2010 9:37 am
- Location: England
- Contact:
Re: [RFC] Holy Grail ajax_api.php
-1. There will be a normal API in 3.2 which can be used (see galaxyAbstractors RFC).
Re: [RFC] Holy Grail ajax_api.php
I think this is a bad idea. It makes no sense to duplicate controller logic into a separate file just so we can output it differently. The approach of returning JSON for AJAX requests in the controllers makes way more sense imo.