How to Create RESTful API With PHP & MySQL Tutorial - What is REST API + Project Setup (Part 1)

  Рет қаралды 74

Hong Bunleab

Hong Bunleab

Ай бұрын

SUBSCRIBE: bit.ly/3AHetIo
How to Create RESTful API With PHP & MySQL Tutorial - What is REST API + Project Setup (Part 1)
What is RESTful API?
RESTful API is an interface that two computer systems use to exchange information securely over the internet. Most business applications have to communicate with other internal and third-party applications to perform various tasks. For example, to generate monthly payslips, your internal accounts system has to share data with your customer's banking system to automate invoicing and communicate with an internal timesheet application. RESTful APIs support this information exchange because they follow secure, reliable, and efficient software communication standards.
What is an API?
An application programming interface (API) defines the rules that you must follow to communicate with other software systems. Developers expose or create APIs so that other applications can communicate with their applications programmatically. For example, the timesheet application exposes an API that asks for an employee's full name and a range of dates. When it receives this information, it internally processes the employee's timesheet and returns the number of hours worked in that date range.
You can think of a web API as a gateway between clients and resources on the web.
Clients
Clients are users who want to access information from the web. The client can be a person or a software system that uses the API. For example, developers can write programs that access weather data from a weather system. Or you can access the same data from your browser when you visit the weather website directly.
Resources
Resources are the information that different applications provide to their clients. Resources can be images, videos, text, numbers, or any type of data. The machine that gives the resource to the client is also called the server. Organizations use APIs to share resources and provide web services while maintaining security, control, and authentication. In addition, APIs help them to determine which clients get access to specific internal resources.
What is REST?
Representational State Transfer (REST) is a software architecture that imposes conditions on how an API should work. REST was initially created as a guideline to manage communication on a complex network like the internet. You can use REST-based architecture to support high-performing and reliable communication at scale. You can easily implement and modify it, bringing visibility and cross-platform portability to any API system.
API developers can design APIs using several different architectures. APIs that follow the REST architectural style are called REST APIs. Web services that implement REST architecture are called RESTful web services. The term RESTful API generally refers to RESTful web APIs. However, you can use the terms REST API and RESTful API interchangeably.
Programs I used in this project
-Code Editor: Visual Studio Code
-Web Server: XAMPP
Any questions please comment bellow.
Don't forget like and subscribe: bit.ly/3AHetIo
#api
#restAPI
#Hong_Bunleab
#PHP
#restful

Пікірлер: 2
@kuytangkoan1225
@kuytangkoan1225 Ай бұрын
បើកKZbinមកឃើញភ្លាមតែម្ដង
@hongbunleab3450
@hongbunleab3450 Ай бұрын
ពិតជា sub ដាក់កណ្តឹងមែន🥰