Slim APP For Test
Slim Framework is a popular rest api framework tool that is used for making api. It provides easy to use api documentation, route features and so on. Anyone can easily make api by using Slim Framework.
This is a practice repository for making api by using slim. You can use this as a reference for your site. Here vendor folder is not present.
For using this in your website just download it. Then put the whole folder in htdocs folder. Then open terminal/cmd. Go to directory and simply use command
composer update
(be sure that you have installed composer). Then make a database in your local machine. Import the .sql file from database forlder. Change connection sittings if required from src/config/db.php.
Finally your slimapp will be ready to execute. Change as your own wise. This repository doesn't provide security features. Its just for practice and reference. Be sure to have attention in security for all the time.
api pattern for Customer
public/api
public/api/customers
public/api/customer/{id}
public/api/customer/add
public/api/customer/update/{id}
public/api/customer/delete/{id}
api pattern for Book
public/api/book
public/api/book/{id}
public/api/book/query/{search_query}
public/api/book/publisher/{publisher}
public/api/book/delete/{id}