CodeIgniter HMVC rest api structure with JWT integration
PHP 5.x above Composer [https://getcomposer.org/]
#Installation instructions
Run composer install
to install all the vendor dependacies
Config database file to test the project
"# ci-rest-api"
Method GET
http://localhost/ci-rest-api/v1/product
Method GET
http://localhost/ci-rest-api/v1/product/:id
example : http://localhost/ci-rest-api/v1/product/?id=4
Method GET
http://localhost/ci-rest-api/v1/product/
example for request body :
{
"name":"Handphone",
"description":"iphone x",
"price":"15000000"
}
Method PUT
http://localhost/ci-rest-api/v1/product/
Method DELETE
http://localhost/ci-rest-api/v1/product/