In Part-1 of Laravel API Tutorial, we will learn about Laravel Rest / Restful API and their requirements.
Before explaining What Laravel API exactly is, we will first look out for its examples that will give us clear view about API.
Example of Laravel API’s :-
- Show Products of one website to another website
- Update Website Stock from 3rd Party like Uniware or Unicommerce
- Push Orders to Shipment company for further processing
- Register users from Android and save in database
- Check Orders in Payment Gateway if payment made
After examples, it must clear to everyone what Laravel API exactly means and what it do.
API Full Form :- Application Programming Interface
Rest or Restful API :- Rest stands for Representational State Transfer. It is a set of rules to build an API or we can say set of rules that API follows.
Laravel Rest or Restful API are used to send and receive data between websites, apps and 3rd parties. 3rd parties can be Shipment companies like Fedex or Order/Stock management companies like Uniware/Unicommerce.
So, Laravel Rest or Restful API helps the Laravel website and App's to communicate with other technologies like SOAP, SAP and communication is in the form of JSON, XML or any other format.
REST stands for Representational State Transfer that helps in data transfer and communication between the website and the applications.
RESTful API is an application program interface that uses HTTP requests to GET, PUT, POST and DELETE data
REST or RESTful API design (Representational State Transfer) is designed to take advantage of existing HTTP protocol in order to create APIs. This means that developers do not need to install libraries or additional software in order to take advantage of a REST API design.
Important Points to remember for Laravel API :-
- Laravel API helps to transfer data from one technology to another
- Laravel API helps to transfer data from backend to frontend or frontend to backend like laravel to android or android to laravel
- Frontend technology can’t communicate with database directly so Laravel API is required
- Laravel website or app can send data to 3rd parties via Rest API
- Laravel website or app can receive data from 3rd parties via Rest API
After viewing video, you will be aware of below :-
What is API?
What is Rest API?
Why do we require API?
Examples of Laravel API
Types of API’s
Important API’s for E-commerce Websites
Complete Laravel API Tutorial Playlist :- https://www.youtube.com/playlist?list=PLLUtELdNs2ZbcCsd4yAAiBU2L3ROREk8P
Learn to make E-commerce website in Laravel 6 / 7 / 8 :-