You can view the Figma prototype here.
By default, the server listens on port 3000.
- Users:
GET http://localhost:3000/users
- Travels:
GET http://localhost:3000/travels
- Delete a User:
DELETE http://localhost:3000/users/:userId
- Delete a Travel:
DELETE http://localhost:3000/auth/travel/:travelId
- Update User Password:
PUT http://localhost:3000/auth/password
- Update Travel:
PUT http://localhost:3000/auth/travel/:travelId
- Create Travel:
POST http://localhost:3000/auth/travel
- Login:
POST http://localhost:3000/auth/login
- Register:
POST http://localhost:3000/auth/register
- Creating, updating, and deleting a travel
- Updating a user's password
- Deleting a travel
To perform these actions, you'll need a Bearer Token:
- Log in using the
/auth/login
endpoint. - Copy the token from the response.
- In Postman, go to the Authorization tab, select Bearer Token, and paste the token.