Skip to content

Download zip file and extract it. To test please follow below steps :- Step 1:- Register test user using below url http://localhost:3000/api/users and pass below paramters in body(x-www-form-urlencoded) firstname :- test lastname :- test email :- test@test.com password :- 1234 role :- 1 Step 2:- Hit login api using http://localhost:3000/api/sign…

deepuRai/Integrating-Sequelize-ORM-and-Json-webtoken-in-NodeJs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Integrating-Sequelize-ORM-and-Json-webtoken-in-NodeJs

Download zip file and extract it. To test please follow below steps :-

Step 1:- Register test user using below url

http://localhost:3000/api/users and pass below paramters in body(x-www-form-urlencoded)

firstname :- test lastname :- test email :- test@test.com password :- 1234 role :- 1

Step 2:- Hit login api using http://localhost:3000/api/signin to generate json token. you will see below response

{ "auth": true, "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTU4MTEwMTk1LCJleHAiOjE1NTgxOTY1OTV9.jDtvXgBOdtoOHrQxHxFDpMTlhW8vkMq1yWde_hJz1VM" }

Step 3 :- Now create a sample post using http://localhost:3000/api/post. Please send above token in header request(x-access-token -- eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTU4MTEwMTk1LCJleHAiOjE1NTgxOTY1OTV9.jDtvXgBOdtoOHrQxHxFDpMTlhW8vkMq1yWde_hJz1VM) and sample post data in body(x-www-form-urlencoded) with below parameter

title :- sample post title description :- sample post description

About

Download zip file and extract it. To test please follow below steps :- Step 1:- Register test user using below url http://localhost:3000/api/users and pass below paramters in body(x-www-form-urlencoded) firstname :- test lastname :- test email :- test@test.com password :- 1234 role :- 1 Step 2:- Hit login api using http://localhost:3000/api/sign…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published