Questions tagged [codeigniter-restserver]

A fully RESTful server implementation for CodeIgniter using one library, one config file and one controller.

A fully RESTful server implementation for CodeIgniter using one library, one config file and one controller.

Dowloads :

REST SERVER

REST CLIENT

Tutorials

http://net.tutsplus.com/tutorials/php/working-with-restful-services-in-codeigniter-2/

98 questions
1
vote
1 answer

Codeigniter install rest api with composer

I install codeigniter with this: https://github.com/kenjis/codeigniter-composer-installer When I try to install rest API: https://github.com/chriskacerguis/codeigniter-restserver works fine when I extends REST_Controller, but how to run REST API…
Vykintas
  • 401
  • 1
  • 8
  • 23
1
vote
1 answer

New session entries are being created in database even when codeigniter session library is not loaded. Why?

I am having a rather weird problem with Chris Kacerguis’ CodeIgniter REST Server. Problems: 1) I am NOT loading the CodeIgniter session library, even then new entries are being created in the ci_sessions database table, everytime I am making an HTTP…
Raja
  • 197
  • 3
  • 14
1
vote
1 answer

angularjs and codeigniter pagination

I use angularjs for UI and codeigniter for backend(REST Server). When I'm using only codeigniter I know how to make pagination, but I can figure out how to make for this situation. For that purpose I make one function to test that. So on REST…
Sasa
  • 553
  • 7
  • 25
1
vote
1 answer

Moqui Framework To Call Rest Service for "Age" between From And To:

I've implemented an application using Moqui Framework.I have a field named as "age" in entity.I am trying to get all record from entity where the age between 20 to 25. How to create rest service in order to get the given age between & How to …
Rolla
  • 61
  • 1
  • 7
1
vote
1 answer

getting print numeric value 6 on every page

I am using PHP codeigniter & codeigniter-restserver. I am getting numaric value 6 all pages. Even if I check default codeigniter welcome page. I am getting 6 on top of page. I scanned entire file system for numaric value 6. I am not able to find…
fresher
  • 399
  • 4
  • 23
1
vote
0 answers

Login with email on codeigniter from database

i'm building an Api, i need to login in a codeigniter-restserver project with an email + password stored on my mysql database. this what i tried so far: in my REST_Controller i changed the _check_login function with…
Mounir Elfassi
  • 2,242
  • 3
  • 23
  • 38
1
vote
2 answers

API REST don't work routes

I'm using codeigniter, for make an api rest, with the library that provide the oficial web site. The problem is: the file routes.php doesn't redirect well. When i put localhost/API/1 into my browser apear the 404 error. Here my controller…
1
vote
1 answer

Errors in codeigniter-restserver library

I want to use restful in my ci 3.03 application: I found this tutplus tutorial I downloaded codeigniter-restserver-master.zip file and copied Format.php and REST_Controller.php(@version 3.0.0) files into /application/libraries/REST directory I…
mstdmstd
  • 586
  • 15
  • 39
1
vote
1 answer

codeigniter 2.0 to 3.0 xml output broken

After migrating to CI 3.0 from 2.0 I'm having a problem with xml output. I do that through restserver with this code on the controller: $xml = $this->_toRss($q); $this->response->format = 'xml'; $this->response($xml, 200 ); $xml is an…
Andre
  • 64
  • 1
  • 9
1
vote
2 answers

codeigniter-restserver: digest auth always returns "invalid credentials"

I'm attempting to integrate the codeigniter-restserver code into my existing CI3 project. I can not figure out how to get working credentials past authentication. Here's the code it's getting stuck on (REST_Controller.php): if…
Andrew
  • 4,443
  • 5
  • 33
  • 75
1
vote
1 answer

Codeigniter Rest Digest Issues

I am using the codeigniter rest server library(previously developed by Phil Sturgeon) to create an API to enable many sites to be able to read and update stock levels from my central stock system. I can get this to work without authentication,…
1
vote
2 answers

REST API - User session Management in a stateless way

This may be something trivial for many of you but I haven't had any luck in understanding the right flow for my usecase. I am building an API for our mobile apps (IOS & Android) and like most of the web applications, the API has certain…
1
vote
1 answer

get and delete working but other methods not working: restful server by phill

i'm trying to implement Phil Sturgeon's rest server and learning about authentication with api key. I'm using rest client and curl library by, again, Phil Sturgeon. program is working fine with get and delete request but while trying post and other…
carefree
  • 325
  • 2
  • 3
  • 13
1
vote
3 answers

POST request with AngularJS fails with preflight OPTION status code = 404 with CodeIgniter ResetServer

My front-end application is running on a grunt live server on port 9100, while my PHP server is on the port 80. The host is the same, just the port differ. When I send a POST request to http://dev.site.dev/api/gist with some JSON data, I got an…
Édouard Lopez
  • 40,270
  • 28
  • 126
  • 178
1
vote
1 answer

Codeigniter REST API headers & authentication

I am using Phil Sturgeon's REST Controller to build an API. API authentication is performed using API keys. Presently there is only one key defined in the api_keys table on the database and I have set-up my client to access the API using this key…
Adrian Walls
  • 852
  • 3
  • 19
  • 31