This project allows users to fetch all doctors, all clinics and their relations in a RESTful manner.
- Download the Zip file and extract it.
- Import the database using MySQL console or phpMyAdmin.
- Make sure you change
AllowOverride None
toAllowOverride All
in yourhttpd.conf
file for URL rewriting. - Run
composer install
to install all dependencies. - Run the server.
The project provides 4 end points as per given assignment.
/doctors?page=4
- For getting details of all doctors in paginated manner/clinics?page=5
- For getting details of all clinics in paginated manner/doctors/id
- For getting doctor details and places where he/she practices. Here id is an integer/clinics/id
- For getting clinic details and all doctors who practice there.
slim/slim: ^3.0