This repository contains a RESTful API built with Express.js and deployed on Vercel. The API provides endpoints to interact with data stored in a JSON file.
-
Endpoints:
GET /- Returns a message indicating that the API is up and running.GET /all- Retrieves all records from the data file.GET /all/:id- Retrieves a specific record byidfrom the data file.
-
Data Storage: Data is stored in a JSON file located in the
verceldirectory. -
Deployment: The API is deployed on Vercel. You can access the live API at https://testing-topaz-phi.vercel.app/.
To run this project locally:
- Clone the Repository:
git clone https://github.com/your-username/your-repo.git cd your-repo