CodeIgniter Forums

Full Version: how to implement very simple restful api using CI3
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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.
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)?!
(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/codeig...restserver

Is very easy and quickly to use.