Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2024-07-27 (2 days ago) | | Not yet rated by the users | | Total: 65 This week: 65 | | All time: 10,381 This week: 1 |
|
Description | | Author |
This package provides an example of REST API using the MVC design pattern.
It provides an API using model, view, and controller classes.
The API classes can also implement a web interface for an application that manages the same information as the API. | |
|
|
Innovation award
Nominee: 14x |
|
Example
<?php
include "../include/autoload.php";
//Creating an instance of a class
$viewUsers = new UserView();
echo $viewUsers->viewUsers();
?>
|
Details
Learn API Development from Scratch using JavaScript and Core PHP
PREVIEW OF THE SIMPLE PROJECT TO BE DEVELOPED
https://adeleyeayodeji.com/simpleapi/
What is REST API?
To define "REST API", we have to know what is "REST" and what is "API" first. I'll do my best to explain it in simple terms because REST has a lot of concepts inside of it that could mean a lot of things.
REST stands for "REpresentational State Transfer". It is a concept or architecture for managing information over the internet. REST concepts are referred to as resources. A representation of a resource must be stateless. It is usually represented by JSON.
What is API?
API stands for "Application Programming Interface". It is a set of rules that allows one piece of software application to talk to another. Those "rules" can include create, read, update and delete operations.
REST API enable your application to communicate with one or several applications using REST concepts which display data with minimum formatting using separators and delimiters (like JSON).
REST API Sample:
GitHub REST API : https://api.github.com/users/adeleyeayodeji/repos
Blog REST API : https://script.adeleyeayodeji.com/api/?token=c5c19e98afe0827d801f158abcde8d63
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.