Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routes #23

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Routes #23

wants to merge 6 commits into from

Conversation

Sisi-tech
Copy link
Collaborator

@Sisi-tech Sisi-tech commented Dec 14, 2024

User and Itinerary routes have been functionally tested using Postman. Below are the endpoints and their respective functionalities:

User Routes:

Register (POST): http://localhost:8000/api/v1/user/register
Login (POST): http://localhost:8000/api/v1/user/login

Itinerary Routes:

Get All Itineraries (GET): http://localhost:8000/api/v1/itinerary/
Get Single Itinerary (GET): http://localhost:8000/api/v1/itinerary/:<id>
Create Itinerary (POST): http://localhost:8000/api/v1/itinerary/
Update Itinerary (PATCH): http://localhost:8000/api/v1/itinerary/:<id>
Delete Itinerary (DELETE): http://localhost:8000/api/v1/itinerary/:<id>

…user schema. create user.js inside of controllers to handle register and login, create errors and middleware to handle errors and bad requests, add user.js inside of routes to handle register and login, and update app.js with userRouter.
…ryItems, getSingleItineraryItem, createItineraryItem, updateItineraryItem, deleteItineraryItem
Copy link
Collaborator

@AmandaHockmuth AmandaHockmuth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are beautiful Sisi!
Do we want to keep a running list of the routes in the README.md file for front end reference? I still need to pop in and fix the ticketmaster endpoint I have in there, I did not enter it right before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants