Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
October 23, 2021 03:29 pm GMT

Laravel API Tutorial

Video Link :- https://youtu.be/CR3Pyq5OXGM

In Part-1 of Laravel 8 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 APIs :-

  1. Show Products of one website to another website
  2. Update Website Stock from 3rd Party like Uniware or Unicommerce
  3. Push Orders to Shipment company for further processing
  4. Register users from Android and save in database
  5. 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 cant 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 APIs

Important APIs for E-commerce Websites

Learn to make E-commerce website in Laravel 6 / 7 / 8 :-
https://www.youtube.com/playlist?list=PLLUtELdNs2ZaHaFmydqjcQ-YyeQ19Cd6u


Original Link: https://dev.to/stackdevelopers/laravel-api-tutorial-4iee

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To