(Nodejs API )
- Install dependencies:
npm install
- Start the server:
npm start
Must have:
- Rest Client vs code extension
on request.hhtp file:
POST http://localhost:8080/login
Content-Type: application/json
{
"username": "user1",
"password": "pass"
}
###
GET http://localhost:8080/users?name=user1
Authorization: nukhrt2zk6h
###
send request
on POST to get token