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
{{ message }}
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
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
EventLocation
model with the following fields:id
: Unique identifier (mongodb default)name
: Name of the event locationaddress
: Address of the event locationlatitude
: Geographical latitude for map integrationlongitude
: Geographical longitude for map integrationGET /event-locations
: List all event locationsPOST /event-locations
: Create a new event locationGET /event-locations/:id
: Retrieve details of a specific event locationPUT /event-locations/:id
: Update a specific event locationDELETE /event-locations/:id
: Delete a specific event locationAcceptance Criteria
The text was updated successfully, but these errors were encountered: