Web Programming final project
run docker-compose up --build
{
"name": "signup",
"url": "http://localhost:3000/users/signup",
"method": "POST",
"body": {
"type": "json",
"raw": {
"user_name" : "armin2",
"password" : "armin21234"
}
}
}
{
"name": "login",
"url": "http://localhost:3000/users/login",
"method": "POST",
"body": {
"type": "json",
"raw": {
"user_name": "armin1",
"password": "armin11234"
}
}
}
{
"name": "add url",
"url": "http://localhost:3000/urls",
"method": "POST",
"body": {
"type": "json",
"raw": {
"user_name": "armin1",
"address": "aut.ac.ir",
"treshold": 2
}
},
"auth": {
"type": "bearer",
"bearer": "your token"
}
}
{
"name": "get urls",
"url": "http://localhost:3000/urls",
"method": "GET",
"auth": {
"type": "bearer",
"bearer": "your token"
}
}
{
"name": "get url",
"url": "http://localhost:3000/urls/:url_id",
"method": "GET",
"auth": {
"type": "bearer",
"bearer": "your token"
}
}
{
"name": "get alerts",
"url": "http://localhost:3000/alerts/:url_id",
"method": "GET",
"auth": {
"type": "bearer",
"bearer": "your token"
}
}