Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
2k views

I'm trying to create a simple REST server using CI 4 based on this article. this is my code: app/Controllers/Barang.php <?php namespace App\Controllers; use CodeIgniter\RESTful\ResourceController;...
dapidmini's user avatar
  • 1,643
-2 votes
1 answer
496 views

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 ...
Rully Winarto's user avatar
0 votes
1 answer
919 views

I am doing a versioning in my REST API and have it structured this way example.domain.com ↳ v1 ↳ v2 It will be browsed like https://www.example.domain.com/v1 or https://www.example.domain.com/v2 ...
Dragon's user avatar
  • 71
0 votes
0 answers
63 views

I make a API Restful with codeigniter-restserverto recieve POST request from another website, the scema is after sent response json i must redirect to another website to confirm that I have received ...
Misdan's user avatar
  • 153
0 votes
0 answers
533 views

I faced this problem since yesterday and I am still unable to find a solution for this. I just don't have any idea why was the video cannot be uploaded by using rest server. I am using react native ...
Emerald's user avatar
  • 874
1 vote
1 answer
850 views

I have this situation where I need to access a global function and normally I will do that in MY_Controller for the normal CodeIgniter. But in this case, I am using a REST server and I noticed that ...
Emerald's user avatar
  • 874
0 votes
1 answer
1k views

I have create rest api in codeigniter and trying to consume it in phonegap app But its giving me Error - 401 Unauthorized in Phonegap index.html page. I am using Token Based Authentication in ...
Heemanshu Bhalla's user avatar
1 vote
0 answers
841 views

I am creating a simple rest API in Codeigniter using the chriskacerguis/codeigniter-restserver.I have successfully created a login method and tested it using the postman and it works but i have ...
Ropali Munshi's user avatar
0 votes
1 answer
283 views

I have created two codeigniter project subdomains. In domain A I have kept only the controller and view part. In domain B I have kept only the controller and model part. I am using controller of ...
Ankit Ghosh's user avatar
1 vote
1 answer
1k views

In the file RestClient.php the lines $uname = $this->input->post('username') and $pwd = $this->input->post('password') returns NULL. This is my (View) loginform.php <?php echo form_open('api/...
Ankit Ghosh's user avatar
1 vote
3 answers
5k views

I am having troubles with Codeigniter - Rest Server for a week already. I have a controller called Users with 2 methods all_users_get and register_post. all_users_get is working fine. register_post ...
albertosetim's user avatar
0 votes
1 answer
56 views

I added some data like these "I&#39;m completely drunk, drunk" And my CI web app works fine but when I retrieve APi it shows like that only.. Can you tell me how to display like this I'm ...
selva's user avatar
  • 65
0 votes
1 answer
2k views

I try to create a rest API for my android app using CodeIgniter rest services. Everything is fine on localhost. but when I upload it on live server and test again it throws the error. I creating rest ...
Rakesh Prajapat's user avatar
1 vote
0 answers
110 views

I am using Ashimante Rest Server API in my project. This is what I did:- I have put the Rest.php controller in the application/libraries folder I have created webservice-v1 folder inside the ...
Saswat's user avatar
  • 12.9k
0 votes
1 answer
112 views

I'm trying to do uploading from my Ionic App to the codeigniter Rest Server but the image cannot be previewed when I open it. I'm referring to this tutorial to do the uploading from the app side https:...
Emerald's user avatar
  • 409
0 votes
2 answers
315 views

I'm working with codeigniter REST API. In my API call i'm trying to get value from $this->input->get('id') but does not get any value from the get. public function data_get($id_param = NULL){ ...
vejitha's user avatar
  • 13
-1 votes
2 answers
2k views

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 { ...
Onkar's user avatar
  • 1
2 votes
0 answers
796 views

im trying to run codeigniter-restserver. Here what i've done; i installed latest codeigniter to my localhost. then in the root directory of clean installed codeigniter i runned composer require ...
Ali Aydin's user avatar
1 vote
1 answer
2k views

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 ...
Vykintas's user avatar
  • 399
0 votes
1 answer
1k views

I have to create an API (JSON REST) for a project that has recently moved onto AWS, with a PHP CodeIgniter code-base, and an RDS database. I have a bit of a dilemma, because I'm unsure what route to ...
Ben Hayward's user avatar
0 votes
0 answers
96 views

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 ...
Ragavan Randy's user avatar
0 votes
0 answers
783 views

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's user avatar
2 votes
1 answer
3k views

I'm using the restserver in Codeigniter from Chris Kacerguis and I setup rest_auth with session. When I'm logged in, I access the page whose view.php get the response through file_get_contents and it'...
Rodrigo Santos's user avatar
-1 votes
1 answer
7k views

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 ...
Prabhukiran's user avatar
0 votes
1 answer
651 views

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 ...
Vinu Chacko's user avatar
0 votes
1 answer
4k views

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 ...
Zero's user avatar
  • 415
2 votes
1 answer
4k views

I am trying to integrate Instamojo Payment Gateway within Chris Kacerguis’ REST Server. Problem: The below code: public function instamojotest_post() { $api = new Instamojo\Instamojo(‘abcd1234’,...
Raja's user avatar
  • 197
1 vote
1 answer
949 views

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 ...
Raja's user avatar
  • 197
2 votes
3 answers
2k views

Here I want to show validation message for different fields $this->form_validation->set_rules('email','Email','trim|required|valid_email'); $this->form_validation->set_rules('password', '...
G.Ashok Kumar's user avatar
2 votes
3 answers
7k views

I'm using codeigniter REST API for my server application. And client as Angular2, in my REST API I have given basic auth. I have set like $config['rest_auth'] = 'basic'; And $config['...
Vinoth Kumar's user avatar
0 votes
2 answers
3k views

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 ...
Guljar Prasad's user avatar
13 votes
2 answers
27k views

I am try to build restful API in codeigniter using Phil Sturgeon's rest server Problem is I can't figure out how to do token based authentication. I am building that API for mobile app and it is over ...
Nuryagdy Mustapayev's user avatar
0 votes
0 answers
193 views

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 ...
Fabio's user avatar
  • 245
0 votes
1 answer
112 views

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 ...
Jojo595's user avatar
  • 65
2 votes
1 answer
5k views

I am not new to codeignitor , but still i didn't used they feature called 'API keys' authentication. What i want to do ? Register a user in my_users table and there is apikey as column that should ...
Zulqurnain Jutt's user avatar
0 votes
2 answers
581 views

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 ...
GeorgeGeorgitsis's user avatar
0 votes
0 answers
114 views

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 ...
Manu Murali's user avatar
1 vote
1 answer
926 views

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 ...
Sasa's user avatar
  • 563
9 votes
2 answers
7k views

I'm using REST Server in codeigniter, and the way to use is that then in my app in all my controllers I must write this line on start: require APPPATH . '/libraries/REST_Controller.php'; Does anyone ...
Sasa's user avatar
  • 563
0 votes
1 answer
32 views

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 ...
orbitory's user avatar
  • 1,120
0 votes
1 answer
1k views

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 ...
Abner Carvalho Almeida's user avatar
0 votes
1 answer
188 views

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 ...
Rolla's user avatar
  • 61
0 votes
1 answer
107 views

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 ...
Yaseen Ahmad's user avatar
  • 1,795
1 vote
1 answer
223 views

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 ...
Rolla's user avatar
  • 61
2 votes
2 answers
5k views

I'm building an API with CodeIgniter and the RestServer implementation from https://github.com/chriskacerguis/codeigniter-restserver I want to use the 'session' authentication mode so I set this in ...
NVO's user avatar
  • 2,721
6 votes
2 answers
1k views

I am using Phil Sturgeon's REST server, CI3 and POSTMAN for debugging. I send a PUT with below info, however, I am not receiving the error messages expected. Here is my form_validation.php: <?...
spreaderman's user avatar
  • 1,116
0 votes
3 answers
736 views

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", "...
marc's user avatar
  • 89
0 votes
1 answer
405 views

As the title of this topic says, is there a way to make in Android a live chat (sending/ receiving text messages) only using Volley? P.S. I'm not sure, but my server should be a Java Restful web ...
Greşanu Emanuel - Vasile's user avatar
2 votes
1 answer
5k views

I am using the codeigniter rest server api library. When I enter http://localhost/RESTapi/api/question?X-API-KEY=XXX in Postman with the PUT method I'm getting: { "status": false, "error": "...
Mraimou's user avatar
  • 185
0 votes
0 answers
151 views

I am trying to create a studentdb in restful service in codeigniter(rest_controller). I had copied files like Rest_contoller.php in libraries Format.php in libraries Rest.php in config and ...
K L P's user avatar
  • 107