An open API service indexing awesome lists of open source software.

https://github.com/sujoyghoshal/testing

This repository contains an Express.js RESTful API that serves data from a JSON file. Deployed on an AWS EC2 instance, the API provides endpoints to retrieve all records (GET /all) or a specific record by id (GET /all/:id). The application handles basic errors related to file operations and is designed for easy data access.
https://github.com/sujoyghoshal/testing

api git testing vercel-deployment

Last synced: 2 months ago
JSON representation

This repository contains an Express.js RESTful API that serves data from a JSON file. Deployed on an AWS EC2 instance, the API provides endpoints to retrieve all records (GET /all) or a specific record by id (GET /all/:id). The application handles basic errors related to file operations and is designed for easy data access.

Awesome Lists containing this project

README

          

# API Project

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.

## Features

- **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 by `id` from the data file.

- **Data Storage:** Data is stored in a JSON file located in the `vercel` directory.

- **Deployment:** The API is deployed on Vercel. You can access the live API at [https://testing-topaz-phi.vercel.app/](https://testing-topaz-phi.vercel.app/).

## Getting Started

To run this project locally:

1. **Clone the Repository:**
```bash
git clone https://github.com/your-username/your-repo.git
cd your-repo