This is proof of concept of a some api endpoints examples using PHP
(just why not).
The main objective of this repo is to prove the simplicity of creating an API using PHP
.
/public
- root endpoint/app
- where the magic happens
public/hello/:name
- expects a string in
:name
- if
:name
not populated an error json is shown
- expects a string in
public/:anythingBesidesHello
- throws an error json if
:anythingBesidesHello
is anything buthello
- throws an error json if
To run this project I recommend using XAMPP also because of its simplicity and cloning this repo into the htdocs
directory and starting the apache server.