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 POI Schema and Endpoints #4

Closed
8 tasks done
gracebw7 opened this issue Jan 13, 2025 · 0 comments · Fixed by #23
Closed
8 tasks done

Create POI Schema and Endpoints #4

gracebw7 opened this issue Jan 13, 2025 · 0 comments · Fixed by #23
Assignees

Comments

@gracebw7
Copy link
Collaborator

gracebw7 commented Jan 13, 2025

Description
Create a Mongoose schema for the POI data in ../src/database/models and create API endpoints for the data.

Acceptance Criteria
The POI schema should include the following fields: id, name, description, audioFieId, isCompleted. Create 2 API endpoints for retrieving the POI's.

Steps:

  • Create file for schema in ../src/database/models
  • Add fields (id, name, description, audioField, isCompleted)
  • Create folder "poi" under ../src/app/api
  • Create file "route.ts" in poi
  • Retrieve all POI's (../api/poi) GET
  • Create folder "[_id]" in poi
  • Create file "route.ts" in ../../id
  • Get a specific POI by id (../api/poi/id) GET

devs: Tammy Tammy-si, Jason Jasonyu0705

@tammy-si tammy-si linked a pull request Jan 22, 2025 that will close this issue
6 tasks
gracebw7 added a commit that referenced this issue Jan 27, 2025
Issue #4 - Creating POI Schema and Endpoints
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants