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
0 answers

How to access database of different servers from one server?

I would like to wrap all database related process stuff in models and host it in an server(Master). Then, Host the App in another server. The App consist only controller and view files. CRUD operation done with the help of Master server and store…
Ragavan Randy
  • 171
  • 1
  • 1
  • 12
0
votes
0 answers

How to set x-api-key in codeigniter Restserver_controller for POST request?

How to setup x-api-key for Post request, I got the following error in postman plugin. Post request error in postman google chrome plugin (Screenshot) Any Suggestions? What is wrong here?
Ragavan Randy
  • 171
  • 1
  • 1
  • 12
0
votes
1 answer

PHP Codeigniter How to set up Rest Server And Client

How to set up rest server and client. I read the tutorial https://code.tutsplus.com/tutorials/working-with-restful-services-in-codeigniter--net-8814. I got idea about restfull services , and rest server work fine , but rest client not. My problem…
0
votes
1 answer

RestApi Post request using CodeIgniter

I am implementing my own API. I’m following the tutorial here. Even though I follow it I had a hard time to make my API working. I didn’t get what is the difference with CodeIgniter REST Server and CodeIgniter REST Client. If someone explain it to…
Zero
  • 375
  • 1
  • 5
  • 9
0
votes
1 answer

Codeigniter Restserver - Best practices while calling every functions through API

I am using Codeigniter restserver for a social networking project. I want to access all my site functions (i-e login, getfriends, postcomments, uploadimages etc) through API. Now I have a question, should I put any type of authentication on API…
iZeshan
  • 311
  • 2
  • 11
0
votes
2 answers

Codeigniter Not allowing to post data in REST API post method via url. it's showing error like unknown method

I am trying to send data through url like http://localhost/api/index.php/society/?date=20/04/2017&s_name=ssr but it's showing error message: {"status":false,"error":"Unknown method"} When I am testing with postman or advance rest client…
Guljar Prasad
  • 101
  • 2
  • 8
0
votes
0 answers

Codeigniter Restserver basic autentication always valid

I've a problem with Codeigniter Restserver (https://github.com/chriskacerguis/codeigniter-restserver) because I've enabled basic autentication but it returns always results even if credentials are wrong. See details below: Into rest.php file I…
Fabio
  • 243
  • 1
  • 3
  • 13
0
votes
1 answer

codeigniter-restserver how to put json into the response

I'm trying to put json data into the codeigniter-restserver response, but the json code is put into double quotes effectively rendering it unreadable. I'm trying to set the response like this currently: $this->response(array( 'status' =>…
Jojo595
  • 65
  • 1
  • 6
0
votes
1 answer

Codeigniter 3 + Restserver always performs get request

I am using Codeigniter 3.1.0, Restserver downloaded from here with documentation from here. I am also using Chrome's extension Postman. The problem is that even if i choose POST from the drop down menu of Postman, it hits the get method... Below is…
GeorgeGeorgitsis
  • 1,262
  • 13
  • 29
0
votes
0 answers

Codeigniter rest server implementation error

I am using codeigniter rest ful api service for my website and using json response. We implemented it with ajax. The code is perfectly working in localhost but it is not working in online. It is showing a 200 response but json data is not parsing in…
0
votes
1 answer

Can I use same param name multiple times in the URL for codeigniter-restserver?

http://example.com/api/transfer/transfers/code/456/code/234 When using $this->get('code') on a url like above I expect the REST library to return an array or a list of the codes. Instead it returns the last one. Is there a way to return both values…
orbitory
  • 1,090
  • 5
  • 16
  • 40
0
votes
1 answer

How to make login in codeigniter restserver

I'm using Codeigniter rest-server library. I'm having some doubts about authentication of this library. //In config file $config['rest_valid_logins'] = ['admin' => '1234']; I want know how to make login with the user of are in my table in…
0
votes
1 answer

In Moqui: How insert data using rest service

I've implemented an application using Moqui Framework.I can able to get json response by the bellow url http://localhost:8080/moqui/rest/s1/moqui/users now i need to insert data into table how can i do that. In moqui.rest.xml i have resource in…
Rolla
  • 61
  • 1
  • 7
0
votes
1 answer

restful put method getting wrong result in codeigniter?

I'm creating the android app for my code igniter web site and i want to save data through restful web service but when i send request to my put method it's giving me wrong result. this is my to view the result. $data = $this->request->body =…
0
votes
3 answers

Codeigniter Rest Server JSON multidimension issue

I'm using Codeigniter rest server to create an api. one of my clients is sending the following JSON array to my api { "code": "TEST", "store": "DBNG0024", "total": "50.00", "items": [{ "code":"121", "descr":"Pizza 1",…