how to implement very simple restful api using CI3 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12) +--- Thread: how to implement very simple restful api using CI3 (/showthread.php?tid=62943) |
how to implement very simple restful api using CI3 - nasser.man - 09-09-2015 How i can create some restful api using CI3? i have to use 3party add-ones or i can do it myself? or which add one is preferred for this? RE: how to implement very simple restful api using CI3 - mwhitney - 09-10-2015 Most of the work in creating a RESTful API in CI3 is just building the controller(s) to handle your requests. To reinforce the API, you can use HTTP verbs in your routing configuration. RE: how to implement very simple restful api using CI3 - nasser.man - 09-10-2015 thank you for response but i want to create a simple backbone app, backbone simply supports restful api (put,push,post,get) how i can know that request is put or push or get or post(in controller itself not in router.config)?! RE: how to implement very simple restful api using CI3 - rtorralba - 09-10-2015 (09-09-2015, 09:46 PM)nasser.man Wrote: How i can create some restful api using CI3? i have to use 3party add-ones or i can do it myself? or which add one is preferred for this? Hi, You can use the following library: https://github.com/chriskacerguis/codeigniter-restserver Is very easy and quickly to use. |