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
0
votes
1 answer

CodeIgniter Not Able to load REST Library

I am trying to set up Philip Sturgeon’s REST Library. I did exactly what the Readme file told me to do: Drag and drop the application/libraries/Format.php and application/libraries/REST_Controller.php files into your application’s directories.…
windweller
  • 2,365
  • 5
  • 33
  • 56
0
votes
2 answers

How to send json string to phil sturgeon's Rest Controller?

This question may be stupid. I want to know if its possible to send a string like {"type":"kissme", "who":"john bennet"} to rest controller as a post request. I know that post data has to be sent as somekey=somevalue&otherkey=othervalue as body of…
guy_fawkes
  • 947
  • 8
  • 31
0
votes
1 answer

Codeigniter rest issue with backbone

I just started using rest library wrote by Phil Sturgeon. I started using it by writing some simple examples. I short of get 'post' and 'get' work, but not for put and delete. I have some questions based on the code below. // a simple backbone…
0
votes
2 answers

codeigniter rest api and ajax

I'm trying to access my rest api which I have created. Its working perfectly fine, when I type the following: http://localhost:8080/rest/index.php/api/practice/test/name/Peter/surname/Potter/format/json I get a correct json response. Now I have a…
user481610
  • 3,230
  • 4
  • 54
  • 101
0
votes
1 answer

Getting undefined while iterating through _.each in underscorejs template with backbonejs

I am fetching the JSON using the library philsturgeon/codeigniter-restserver When I check in the response section of console, I get the proper JSON values returned like this: [{name:test,address:test},{name:test2,address:test2}]. On fronted I want…
beNerd
  • 3,314
  • 6
  • 54
  • 92
-1
votes
2 answers

Getting Error in CodeIgniter RESTful API

defined('BASEPATH') OR exit('No direct script access allowed'); require('application/libraries/REST_Controller.php'); use Restserver\Libraries\REST_Controller; class demo extends REST_Controller { function __construct(){ …
Onkar
  • 1
  • 4
-1
votes
1 answer

Debugger tool for Codeigniter

I would like to develop API calls using Codeigniter. To view the GET/POST/DELETE requests came recently, I would like to have one Debugging Tool, like Yii2 - Debugger. PF Below for Yii-Debugger Please help me with any Codeigniter Debugger tool…
-2
votes
1 answer

Restapi sends "invalid api key" message to client side

I'm creating a rest api using codeigniter 3 and it's running fine, but I'm having problems with how to display {"status":false,"error":"Invalid API key "} on the client side and on the server side, so that when Invalid key can be sent "api key…
1 2 3 4 5 6
7