[RFC|Rejected] Holy Grail ajax_api.php

These RFCs were either rejected or have been replaced by an alternative proposal. They will not be included in phpBB.
Post Reply
_hsr
Registered User
Posts: 42
Joined: Mon Mar 26, 2012 7:06 am

[RFC|Rejected] Holy Grail ajax_api.php

Post by _hsr »

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 !

User avatar
callumacrae
Former Team Member
Posts: 1046
Joined: Tue Apr 27, 2010 9:37 am
Location: England
Contact:

Re: [RFC] Holy Grail ajax_api.php

Post by callumacrae »

-1. There will be a normal API in 3.2 which can be used (see galaxyAbstractors RFC).
Made by developers, for developers!
My blog

igorw
Registered User
Posts: 500
Joined: Thu Jan 04, 2007 11:47 pm

Re: [RFC] Holy Grail ajax_api.php

Post by igorw »

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.

Post Reply