Skip to content

Commit 3872cdf

Browse files
Update README.md
1 parent 04552cc commit 3872cdf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
# Guideline for using PHP MVC REST API
22

33
<h2> What is REST API? </h2>
4-
<p> If you have been used Facebook, Twitter or any other application in your phone, these applications need to connect to internet for getting and sending data from and to their websites. </p>
4+
<p> A REST API (also known as RESTful API) is an application programming interface (API or web API) that conforms to the constraints of REST architectural style and allows for interaction with RESTful web services. REST stands for representational state transfer and was created by computer scientist Roy Fielding.
5+
<br><br>
6+
An API is a set of definitions and protocols for building and integrating application software. It’s sometimes referred to as a contract between an information provider and an information user—establishing the content required from the consumer (the call) and the content required by the producer (the response). For example, the API design for a weather service could specify that the user supply a zip code and that the producer reply with a 2-part answer, the first being the high temperature, and the second being the low. </p>
57

8+
<h1>Introduction</h1>
9+
<p>Simply, the framework will route requests to the correct controller and model. It will do this by analysing request URI for the controller name and the request type (be it POST, PUT, GET, etc.). It will then do some sanity checks, before initialising a new controller and model object and calling the correct method on the controller.</p>
10+
<h1>Documentation</h1>
611
<h2> Add a new route </h2>
712
<p> For creating a new route you should open Route.php file from Router directory. </p>
813
<p> There is already exist some examples in the file which you can use them as you need.</p>

0 commit comments

Comments
 (0)