Closed ilsiepotamus closed 7 years ago
Authorization, JWT token creation and validation
/login
/users
docker build -t covalent-data .
docker run -p 8080:8080 --name covalent-data covalent-data
docker stop covalent-data; docker rm covalent-data
GET
http://localhost:8080/users
id
POST
http://localhost:8080/login
{"username":{id},"password":{id}}
x-auth-token
Description
Authorization, JWT token creation and validation
What's included?
/login
endpoint/users
object schemaTest Steps
docker build -t covalent-data .
docker run -p 8080:8080 --name covalent-data covalent-data
(docker stop covalent-data; docker rm covalent-data
to stop and remove the container)GET
tohttp://localhost:8080/users
. Pick a user and note theirid
.POST
tohttp://localhost:8080/login
with a body of{"username":{id},"password":{id}}
x-auth-token
.