Skip to content

Express-node-Begin-to-adavanace/Restful_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RESTful API

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.


Features

  • 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.

Data Structure

Each celebration place includes:

  • _id: Unique identifier (string)
  • name: Name of the venue
  • location: Geographic location
  • suitableFor: Array of party types suited for this place (e.g., Wedding, Birthday)
  • image: URL string to an image of the venue
  • description: 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."
}

Output

1 2 3 4 5 6 7 8 9

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published