Restfull or Curl services for codeigniter |
will the new release of codeigniter intergrate restful or Curl services? many other mvc frameworks already have this yet seems to be lacking in codeigniter which for me is a real shame?
this codeigniter rest library is actively maintained. https://github.com/chriskacerguis/codeig...restserver
I'm trying to use the HTTP verbs but it doesn´t seems to be working:
I have: $route['products']['GET'] = 'products/get'; $route['products']['POST'] = 'products/create'; $route['products/(:num)']['PUT'] = 'products/update/$1'; $route['products/(:num)']['DELETE'] = 'pedids/delete/$1'; And then using a HTTP request using Angular I can´t get any data back. I tried with POST, PUT and DELETE method and still the same. Can anyone tell me what am I doing wrong? I also tried to use curl -X GET http://localhost/codeigniter3test/index.php/products and I got a 404 error. But if I access the actual method curl -X GET http://localhost/codeigniter3test/index....oducts/get it would work but thats not the point using REST services. Any help will be much appreciated. |
Welcome Guest, Not a member yet? Register Sign In |