You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
GET /tours
endpoint to retrieve all tours.POST /tours
endpoint to add a new tour.PUT /tours/:id
endpoint to update an existing tour.DELETE /tours/:id
endpoint to remove a tour.##Criteria
GET /tours
endpoint should return a list of tours.Notes
https://www.figma.com/design/MLPbP1HM2L9ON6f88pHTee/User-onboarding?node-id=0-1&t=zfaJdBG4PYDSysBJ-1
![image](https://private-user-images.githubusercontent.com/132397574/339226879-1205debd-ea13-444d-93bb-9cc3278f170c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUwMjQyMzYsIm5iZiI6MTcyNTAyMzkzNiwicGF0aCI6Ii8xMzIzOTc1NzQvMzM5MjI2ODc5LTEyMDVkZWJkLWVhMTMtNDQ0ZC05M2JiLTljYzMyNzhmMTcwYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODMwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgzMFQxMzE4NTZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zMzBhN2U4MjZhNTEzYzljZWJkZTA0M2FiMDFjZWEzODhhYmVmOWJkNTUzOGMyOWM3Y2JmMjVkOGFlZjczODE2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.mSp2oofjMRHjjOJHdsZHekuHfZg93Y6inLIaMwySN5Y)
The text was updated successfully, but these errors were encountered: