For the test of api:
- Download api.
- run composer install
- redirect all requests to public/index.php
- Api does not have any authintication or authorization.
Costumers routes:
- For the recieve all responses send get request {url}/costumer/
- For the recieve only one user send get request {url}/costumer/id=1 (search by user id)
- For the reason of update user send put request {url}/costumer/update/?id=1 {search by user id)
- For the reason of Delete user send delete request {url}/costumer/delete/?id=1 (search by user id)
Pay attention when you will send request header must be contain Accept : application/json.
For the testing I used nginx server. but hopefully it will work as well on apache web server too.
or for the reason easy testing you can use php server php -S 127.0.0.1:8080 -t public
If you have any questions I am open to answer any of them.