Skip to content

ViliTrusheva/travel-destination

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Travel Destination project

Figma Design

You can view the Figma prototype here.

API Routes for Testing in Postman

By default, the server listens on port 3000.

Endpoints:

GET:

  • Users: GET http://localhost:3000/users
  • Travels: GET http://localhost:3000/travels

DELETE:

  • Delete a User: DELETE http://localhost:3000/users/:userId
  • Delete a Travel: DELETE http://localhost:3000/auth/travel/:travelId

PUT (Update):

  • Update User Password: PUT http://localhost:3000/auth/password
  • Update Travel: PUT http://localhost:3000/auth/travel/:travelId

POST:

  • Create Travel: POST http://localhost:3000/auth/travel
  • Login: POST http://localhost:3000/auth/login
  • Register: POST http://localhost:3000/auth/register

Authentication Required:

  • Creating, updating, and deleting a travel
  • Updating a user's password
  • Deleting a travel

To perform these actions, you'll need a Bearer Token:

  1. Log in using the /auth/login endpoint.
  2. Copy the token from the response.
  3. In Postman, go to the Authorization tab, select Bearer Token, and paste the token.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published