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

Create new endpoints for managing the Tour list #78

Open
1 of 7 tasks
uparkalau opened this issue Jun 13, 2024 · 0 comments
Open
1 of 7 tasks

Create new endpoints for managing the Tour list #78

uparkalau opened this issue Jun 13, 2024 · 0 comments
Assignees
Labels
backend Backend task/issue

Comments

@uparkalau
Copy link
Contributor

uparkalau commented Jun 13, 2024

Create new endpoints for managing the Tour list. This will involve setting up routes to handle CRUD operations for tours displayed in the application.

Tasks

  • Define the schema for tours in PostgreSQL.
  • Set up the Node.js server with the necessary routes.
  • Implement the GET /tours endpoint to retrieve all tours.
  • Implement the POST /tours endpoint to add a new tour.
  • Implement the PUT /tours/:id endpoint to update an existing tour.
  • Implement the DELETE /tours/:id endpoint to remove a tour.
  • Write test requests for each endpoint. Create a postman collection.

##Criteria

  • All endpoints must be secured and only accessible to authorized users.
  • The GET /tours endpoint should return a list of tours.
  • The data returned should match the structure presented in the provided UI mockup.
  • Integration tests should pass with 100% coverage for the new endpoints.

Notes

  • The backend logic should be implemented in accordance with the provided picture, ensuring consistency with the UI elements such as tour titles and IDs.

https://www.figma.com/design/MLPbP1HM2L9ON6f88pHTee/User-onboarding?node-id=0-1&t=zfaJdBG4PYDSysBJ-1
image

@uparkalau uparkalau added the backend Backend task/issue label Jun 13, 2024
@uparkalau uparkalau assigned uparkalau and unassigned DamilolaAlao Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend task/issue
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants