DEV Community

Stack Developers for Laravel
Stack Developers for Laravel

Posted on • Updated on

Laravel API Tutorial

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 :-

  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 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 :-

Learn to make E-commerce website in Laravel 6 / 7 / 8 :-

Discussion (3)

sloan profile image


Would you please consider embedding your video here instead of just linking to it? This way folks can see your content and discuss things on DEV without having to navigate elsewhere.

You might not have realized, but DEV actually allows folks to embed YouTube & Vimeo videos via Liquid Tags:

By the way, here's a link to the editor guide where you can see other liquid tags and formatting options.

Hope this is helpful! 🙂

stackdevelopers profile image
Stack Developers for Laravel Author

Thanks so much

Sloan, the sloth mascot
Comment deleted