Notes application backed by Express.js and MongoDB Atlas.
Base URL: https://notes-express-backend.vercel.app
Make a POST request at the endpoint /signup
All parameters are required
{
"name": "User",
"email": "user@mail.com",
"password": "123456"
}
{
"message": "Signup successful"
}
Make a POST request at the endpoint /signin
All parameters are required
{
"email": "user@mail.co",
"password": "123456"
}
{
"_id": "645d714e52b7487455017f5b",
"name": "User",
"email": "user@mail.co",
"bio": null
}
Make a POST request at the endpoint /create-note/:userId
All parameters are required
{
"title": "Title",
"description": "Description"
}
{
"_id": "645d78c5943b679fbbd9eac9",
"title": "Title",
"description": "Description",
"updatedAt": "2023-05-11T23:22:46.002Z"
}
Make a GET request at the endpoint /note/:userId/:noteId
{
"_id": "645d78c5943b679fbbd9eac9",
"title": "Title",
"description": "Description",
"updatedAt": "2023-05-11T23:22:46.002Z"
}
Make a PUT request at the endpoint /update-note/:userId/:noteId
Parameters are optional
{
"title": "Title - Updated",
"description": "Description - Updated"
}
{
"_id": "645d78c5943b679fbbd9eac9",
"title": "Title - Updated",
"description": "Description - Updated",
"updatedAt": "2023-05-11T23:29:02.237Z"
}
Make a DELETE request at the endpoint /delete-note/:userId/:noteId
{
"message": "Note deleted"
}
Make a GET request at the endpoint /notes/:userId
[
{
"_id": "645d7afb943b679fbbd9ead7",
"title": "Title",
"description": "Description",
"updatedAt": "2023-05-11T23:32:11.213Z"
},
{
"_id": "645d7b07943b679fbbd9eadb",
"title": "Title2",
"description": "Description2",
"updatedAt": "2023-05-11T23:32:23.359Z"
}
]
Make a PUT request at the endpoint /update-details/:userId
Parameters are optional
{
"name": "User - Updated",
"email": "user.updated@mail.co",
"bio": "Bio - Updated"
}
{
"name": "User - Updated",
"email": "user.updated@mail.co",
"bio": "Bio - Updated"
}