Project Management Server
Method |
Route |
Description |
GET |
/api/visited |
Returns all visited countries |
GET |
/api/visited/:countryId |
Returns a specific visited country |
POST |
/api/visited |
Adds a new visited country |
DELETE |
/api/visited/:countryId |
Deletes a visited country |
Method |
Route |
Description |
GET |
/api/wishlist |
Returns all wishlist countries |
GET |
/api/wishlist/:countryId |
Returns a specific wishlist country |
POST |
/api/wishlist |
Adds a new wishlist country |
DELETE |
/api/wishlist/:countryId |
Deletes a wishlist country |
Method |
Route |
Description |
POST |
/auth/signup |
Creates a new user |
POST |
/auth/login |
Logs the user |
GET |
/auth/verify |
Verifies the JWT |
GET |
/auth/users/:userId |
Get user details |
PUT |
/auth/users/:userId |
Change user password |
PUT |
/auth/forgot-password |
Forgot Password |
PUT |
/auth/reset-password |
Reset Password |
DELETE |
/auth/users/:userId |
Delete user account |
{
country: String,
userId: {type: Schema.Types.ObjectId, ref: 'User'}
}
{
country: String,
userId: {type: Schema.Types.ObjectId, ref: 'User'}
}
{
email: String,
password: String,
resetLink: String,
visited: [{type: Schema.Types.ObjectId, ref: 'Visited'}],
wishlist: [{type: Schema.Types.ObjectId, ref: 'Wishlist'}]
}