Step 6 Output for insert user To test for the successful creation of a data, open POSTMAN. Enter the following as the request URL http://localhost/PHP REST API CRUD with JWT Authentication\api\User \create_user.php Click the "form-data"... READ MORE >>
Step 5 Create API for user Create user folder and Create a new file called create_user.php and Following steps to be performed for this 1. We need to set headers on this new file. 2. Connect to database and register... READ MORE >>
Step 4 Create user Create the objects folder inside api folder and create a new file called user.php <?php class User { private $conn; private $table = "register"; // object properties public $id; public $name; ... READ MORE >>
Step 3 Create a directory for configuration Create the folder in XAMP/P -> htdocs with any name like PHP REST API CRUD with JWT AuthenticationOpen this folder and create api folder and necessary files if required like index, style, script... READ MORE >>
Recent Comments