RESTful Web Services in CodeIgniter with source code - Get and DELETE Method using Postman 🔥

preview_player
Показать описание
Don't forget to Hit the Subscribe Button

----------------------------------------------------------------------------------------------------------

Topic Introduction:-
Source Code: for source code Please leave your email id in the comment box.

Representational state transfer (REST) or RESTful web services provide a way to exchange data between applications or systems on the Internet. RESTful web service also refers as RESTful API, uses HTTP request to GET, PUT, POST and DELETE data across platforms. In present days, RESTful API is an essential component of the web application.

When the CodeIgniter application requires communicating with another application, RESTful API is needed to integrate into CodeIgniter. Using RESTful API in CodeIgniter, you can exchange data between different applications or platform. This tutorial shows RESTful server implementation for CodeIgniter and you will learn how to create RESTful web services in CodeIgniter.

If you are beginners to CodeIgniter, first see CodeIgniter from Scratch tutorial to setup and configure CodeIgniter application.

To demonstrate CodeIgniter REST API, we will implement CRUD operations in CodeIgniter web service.
Test HTTP calls with Google Chrome Postman extension.

Before you get started, take a look the files structure of CodeIgniter REST API.

CodeIgniter REST Controller Setup

We will use CodeIgniter REST_Controller to build RESTful web services in CodeIgniter. Follow the below steps to setup REST Controller Library in your CodeIgniter application.

Download REST config file and place in the application/config/ directory.

Set REST login username and password.

$config['rest_valid_logins'] = ['admin' '1234'];

Enable REST API key.

$config['rest_enable_keys'] = TRUE;

Download REST_Controller file and place in the application/libraries/ directory.
Download Format class file and place in the application/libraries/ directory.
Download Language file and place in the application/language/english/ directory.

Source Code: for source code Please leave your email id in the comment box.

---------------------------------------------------------------------------------------
Learn New Technologies -- Visit Our Channel --

1) CodeIgniter Mini Project Tutorial in Hindi/Urdu

2) Codeigniter Tutorial for Beginners

4) AngularJS Tutorial for Beginners

7) Java Tutorial For Beginners

---------------------------------------------------------------------------------------------

You can connect with us in social Media :-

Don't forget to hit the Subscribe & Like button!

------------------------------------------------------------
#RESTfulWebServices #Postman #Part2
Рекомендации по теме
Комментарии
Автор

Give this video a thumbs up if you liked it. Give this video a thumbs down if you disliked it. Your feedback will improve the quality of upcoming tutorials.
Subscribe to my channel for latest updates. Thanks!

TechnicalSuneja
Автор

RESTful Web Services in CodeIgniter and Core PHP

TechnicalSuneja
Автор

apka GitHub account check kiya website bi visit Kiya ye code NHI Mila sir, 😥😥

digitallover
Автор

Sir key not working. Wrong key set karne pr bhi data get ho rha h. Error msg display hone k place r

poojathakur
Автор

sir isme pagination karna ho kese kar sate ha page numbe pass karte he record 10 show how can create plz help me

parthpd
Автор

I want to access country names of postman in drop-down using Codeigniter. How can I do?

surekhaakalade
Автор

hi this one work perfectly in local server . but page not found is coming in live server . what is the issue

gayatrigochhayat
Автор

delete and put are proper working in localhost but throws 403 access denied error on other server

codingknowledge
Автор

Sir without keys table se data fetch, insert kr skte h ky

savankushwah
Автор

Hello sir,
I have some query pls help me to sort out these query.
when i used post and put method at that time "Provide complete user information to create." this error was raise.(i m running on postman)

connect-to-Allah-px
Автор

Sir I am using pgsql and also have data and I fettch all the table using xampp but I want to make API for some selective rows what is the source code

RahulGupta-ntjj
Автор

Hello sir,
I have some query pls help me to sort out these query.
when i used post and put method at that time "Provide complete user information to create." this error was raise.(i m running on postman)
pls rply sir

saishasfunmuchmore
Автор

sir mai jab posman me url heat kar rahi hu tab ye error aa raha hai pz help me

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>

<head>
<title>400 Bad Request</title>
</head>

<body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
<hr>
<address>Apache/2.4.46 (Win64) OpenSSL/1.1.1g PHP/7.2.34 Server at localhost Port 80</address>
</body>

</html>

bharatiwagh
Автор

The best tutorial on Restful API with Codeigniter

Actually I'm a Codeigniter guy, most of the YouTuber was teaching this concept on other frameworks. After seeing it in CI, I understood the concept. Thanks a lot for this tutorial. May God bless you.

Plz try to show the other dimensions of the coin. How other people will use this API to consume our data without postman.

javedapple
Автор

I found error REST_CONTROLLER not found please help

yashvantgupta
Автор

yar ap bohot achy ho. lakin please yar code link discription men set kr dia kro...ap kon sa harwakt comments hi read krty rehty ho....kabhi kuch zyada zrorat bhi to ho skti ha na.. or ap kon sa us wakt hi email py send kr do gy..so please ya baat ghlat ha...direct link share kia kro..thanks

touseefahmad
Автор

Sir Codeigniter with RestFul web Services pe project-based course banaye.

apka teaching ka style buhat hi acha hai. Thanks.

syedwaqasahmad
Автор

Hey its a very good tutorial. I have been watching your videos since couple of months, i have a doubt in this tutorial. I didn't quite understand about X-API-KEY in header. How does it know that we have set that particular key in the database? In fact my request works fine if i remove this field X-API-KEY from the header. There must be something wrong with what i am doing, can someone please shed some light on this. Thanks a lot

rathankumar
Автор

Hello sir, aap greater noida IT CITY me NIIT tech.. me job krte h n, Mera job lga aaj IT city me agami Techno.. me jo NIIT k pass h, (thank you so much sir ) codeigniter k video bhut help kri h apki. 😊😊😊 Thank You

pankajpk
Автор

I start API with ur tutorials and really these are awesome, and all doubt got clear that what is rest api...

deependra