This is a simple web app which uses an API to get data from a database, this was created using php to understand what reaally API is and how does it work, I also used fetch
API in order to display results in the web app
Here you can get all the posts from the database, or you can get single post with post ID , you can delete a post by it's name and finally can create a post It is not the best front-end code, but this is beacause i only wanted to create an api .
- Getting All The Records (posts) :
- Getting Single Record :
- Creating Record :
- Deleting Record :