Month: November 2021

User Authentication using REST API and JSON Web Tokens (JWT) – Step 4

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 so that it will only accept JSON data from a specific URL. 2. Connect to database and...
READ MORE   >>

User Authentication using REST API and JSON Web Tokens (JWT) – Step 4

How to check output using POSTMAN Step 1 : To test for the successful creation of a data, open POSTMAN Step 2 : Fill the below URL and use POST method while inserting data in DB ...
READ MORE   >>

User Authentication using REST API and JSON Web Tokens (JWT) – Step 3

Create the user object class Create the objects folder inside api folder and create a new file called user.php <?php // 'user' object class User {     private $conn;     private $table =...
READ MORE   >>

User Authentication using REST API and JSON Web Tokens (JWT) – Step 2

Create a database connection file Open config folder and create a new file called database.php and place the following code.                 <?php class...
READ MORE   >>

Recent Comments

    • Copyright © 2020 (Er. Shairy Kalra). All Rights Reserved