This project is a simple RESTful API built with Node.js and Express.js to manage data about beautiful celebration places around the world. It supports basic CRUD (Create, Read, Update, Delete) operations on a collection of event venues ideal for parties like weddings, birthdays, engagements, and more.
- GET / — Retrieve the full list of celebration places.
- GET /1 — Fetch details of the celebration place with ID
1. - GET /:placeId — Retrieve details of a celebration place by its dynamic ID.
- POST / — Add a new celebration place (via JSON body).
- PUT /:placeId — Update an existing celebration place by ID.
- DELETE /:placeId — Delete a celebration place by ID.
Each celebration place includes:
_id: Unique identifier (string)name: Name of the venuelocation: Geographic locationsuitableFor: Array of party types suited for this place (e.g., Wedding, Birthday)image: URL string to an image of the venuedescription: Brief description highlighting features and ambiance
Example:
{
"_id": "1",
"name": "Sunset Soirée Beach",
"location": "Maldives",
"suitableFor": ["Engagement", "Wedding", "Surprise Party"],
"image": "https://yourhost.com/images/sunset-soiree-beach.jpg",
"description": "A serene white-sand beach venue that glows at sunset, perfect for romantic proposals, intimate weddings, or surprise celebrations."
}