This is a basic CRUD application
- 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.
/employee/new
- For creating new employee. Method to be usedPOST
. Fields to be provided:name
,email
,contact
,designation
./employee/{id}
- For getting employee details. Method to be usedGET
./employee/{id}
- For updating employee's details. Method to be usedPUT
. Fields to be provided:name
,email
,contact
,designation
./employee/{id}
- For deleting an employee. Method to be usedDELETE
.
slim/slim: ^3.0