API Tester
API Tester is a web-based tool for testing and interacting with APIs. It allows users to make HTTP requests, view responses, and manage headers and parameters. This project is built using Next.js, Tailwind CSS, and ShadCN UI.
Tech Stack
- Next.js: A React framework for server-side rendering and static site generation.
- Tailwind CSS: A utility-first CSS framework for rapid UI development.
- ShadCN UI: A collection of customizable UI components for React.
Features
- Base URL Input: Easily specify the base URL for your API.
- Request Types: Supports GET, POST, PUT, and DELETE HTTP methods.
- Route Path Input: Define specific API endpoints.
- Optional Parameters: Add and manage query parameters.
- Request Body: Add JSON payloads for POST and PUT requests.
- Bearer Token and Custom Headers: Include authorization tokens and custom headers in requests.
- Response Viewer: Display and format JSON responses from API requests.
Installation
Clone the repository:
git clone https://github.com/DevKrishnasai/api-tester
Navigate to the project directory:
cd api-tester
Install dependencies:
npm install
Run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the app.
Usage
- Enter the base URL of the API you want to test.
- Select the request type (GET, POST, PUT, DELETE).
- Specify the route path.
- (Optional) Add query parameters and headers.
- (Optional) Add a JSON body for POST and PUT requests.
- Click "Send" to make the request.
- View the response in the response viewer.