Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Expressjs Veranstaltungsort CRUD + Model #22

Open
6 tasks
LeHuth opened this issue May 17, 2023 · 0 comments
Open
6 tasks

Expressjs Veranstaltungsort CRUD + Model #22

LeHuth opened this issue May 17, 2023 · 0 comments
Assignees
Labels

Comments

@LeHuth
Copy link
Owner

LeHuth commented May 17, 2023

New Feature: Event Location CRUD Endpoint and Model

Description

We need a new CRUD endpoint and corresponding model for event locations in our ticket sales app. This endpoint should enable us to add new locations, edit existing ones, delete and view them.

Tasks

  • Create a new EventLocation model with the following fields:
    • id: Unique identifier (mongodb default)
    • name: Name of the event location
    • address: Address of the event location
    • latitude: Geographical latitude for map integration
    • longitude: Geographical longitude for map integration
  • The CRUD endpoint should support the following operations:
    • GET /event-locations: List all event locations
    • POST /event-locations: Create a new event location
    • GET /event-locations/:id: Retrieve details of a specific event location
    • PUT /event-locations/:id: Update a specific event location
    • DELETE /event-locations/:id: Delete a specific event location

Acceptance Criteria

  • The endpoint can create, edit, delete, and view an event location.
  • The endpoint validates input data and returns appropriate error messages.
  • The map correctly displays the locations stored in the database.
  • Required tests
You can copy this into a new GitHub issue, and the tasks will be displayed as checkboxes that you can interactively check off as you complete them.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants