PHP Mysql REST API CRUD


First Name Last Name Edit Delete
Create Read Update Delete

Get all users

http://qachallenge.ro/api/test_api.php
action=fetch_all - ce actiune facem


Get single user

http://qachallenge.ro/api/test_api.php
action=fetch_single - ce actiune facem
id=X - ID-ul unui anumit user


Insert user

http://qachallenge.ro/api/test_api.php
action=insert - ce actiune facem
first_name=YYYYY - prenumele unui user
last_name=ZZZZZZ - numele unui user


Update user

http://qachallenge.ro/api/test_api.php
action=update - ce actiune facem
id=X - ID-ul unui anumit user
first_name=YYYYY - prenumele unui user
last_name=ZZZZZZ - numele unui user


Delete user

http://qachallenge.ro/api/test_api.php
action=delete - ce actiune facem
id=X - ID-ul unui anumit user