Simple Node.js server and API for Web and Database Computing Project @ UNI Adelaide
Using bcrypt for password hashing and JWT for user authentication
Live demo: https://fierce-ridge-28571.herokuapp.com
Associated client: https://github.com/pchmelar/wdc-semestral-client
Request:
{
"email": String,
"pass": String
}
Response:
{
"blogid": String,
"email": String,
"token": String
}
Status codes: 200 OK, 400 Bad Request, 403 Forbidden
Response:
[
{
"blogid": String,
"title": String,
"about": String
}
]
Status codes: 200 OK, 400 Bad Request
Response:
{
"blogid": String,
"title": String,
"about": String
}
Status codes: 200 OK, 400 Bad Request, 404 Not Found
Request:
{
"blogid": String,
"email": String,
"pass": String,
"title": String,
"about": String
}
Response:
{
"blogid": String,
"email": String,
"token": String
}
Status codes: 201 Created, 400 Bad Request, 409 Conflict
Request:
{
"title": String,
"about": String
}
JWT token must be provided along with the request
Status codes: 200 OK, 400 Bad Request, 401 Unauthorized, 404 Not Found
JWT token must be provided along with the request
Status codes: 200 OK, 400 Bad Request, 401 Unauthorized, 404 Not Found
Response:
[
{
"title": String,
"content": String,
"location": {
"description": String,
"lat": Number,
"lng": Number
},
"blogid": String
}
]
Status codes: 200 OK, 400 Bad Request, 404 Not Found
Response:
{
"title": String,
"content": String,
"location": {
"description": String,
"lat": Number,
"lng": Number
},
"blogid": String
}
Status codes: 200 OK, 400 Bad Request, 404 Not Found
Request:
{
"title": String,
"content": String,
"location": {
"description": String,
"lat": Number,
"lng": Number
}
}
JWT token must be provided along with the request
Status codes: 201 Created, 400 Bad Request, 401 Unauthorized, 404 Not Found
Request:
{
"title": String,
"content": String,
"location": {
"description": String,
"lat": Number,
"lng": Number
}
}
JWT token must be provided along with the request
Status codes: 200 OK, 400 Bad Request, 401 Unauthorized, 404 Not Found
JWT token must be provided along with the request
Status codes: 200 OK, 400 Bad Request, 401 Unauthorized, 404 Not Found