Integrate CodeIgniter + CI RESTful Controller for the backend
Add 2 api methods :
-GET http://server/BrokenStuff/api/report/id/{id}/format/json
-GET http://server/BrokenStuff/api/reports/format/json
Edit rewriterule at the end of .htaccess if BrokenStuff is not your working directory