Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thetechguy44/php-ecommerce-rest-api-in-oop
https://github.com/thetechguy44/php-ecommerce-rest-api-in-oop
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/thetechguy44/php-ecommerce-rest-api-in-oop
- Owner: Thetechguy44
- Created: 2023-08-19T18:44:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-30T13:25:12.000Z (6 months ago)
- Last Synced: 2024-07-02T21:48:21.632Z (6 months ago)
- Language: PHP
- Size: 169 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Ecommerce-Restful-Api-in-PHP
The website has a product list page, which serves as the index page where all products are displayed, and a product add page, where you can add a new product. It has a parent class file of product with the sub class file (Book, Furniture, DVD), and it uses autoloader to automatically run the need class file.
The PHP is used to construct class files and the rest API, which is the saveApi and the getApi. Javascript is also heavily used in this project. The saveApi gathers the data from the request, examines the data validation, and saves to the database if there are no errors. Otherwise, it displays an error message describing what went wrong in the network. While the getApi displays the data that was retrieved as JSON from the database on the webpage.
The frontend and the rest API are interacted with using JavaScript. It uses the api to submit and get data in JSON format and displays the results in a web page. Only three products (Book, Furniture, and DVD) can be added; any further products will result in a network error notice.
#Link to webapp:
https://myscandiproject.000webhostapp.com