Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
afgprogrammer authored Jun 22, 2021
1 parent 04552cc commit 3872cdf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# Guideline for using PHP MVC REST API

<h2> What is REST API? </h2>
<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>
<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.
<br><br>
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>

<h1>Introduction</h1>
<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>
<h1>Documentation</h1>
<h2> Add a new route </h2>
<p> For creating a new route you should open Route.php file from Router directory. </p>
<p> There is already exist some examples in the file which you can use them as you need.</p>
Expand Down

2 comments on commit 3872cdf

@atifsoftware
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

php session variables not working. Plz Help.

@atifsoftware
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Login Session System. Help

Please sign in to comment.