RESTy is a simple API testing application built with React. It allows users to make HTTP requests and view the responses in a user-friendly format.
Jedidiah Staley
- Make GET, POST, PUT, and DELETE requests to any API endpoint.
- View the response headers and body in a formatted manner.
- Keep a history of past requests and their responses.
- Easily re-execute previous requests from the history.
- View a list of recent requests and re-execute them.
-
Clone the repository:
git clone <repository_url> cd resty
-
Install the dependencies:
npm install
-
Start the development server:
npm run dev
- Enter the URL and select the HTTP method (GET, POST, PUT, DELETE).
- (Optional) Enter the request body for POST and PUT requests.
- Click the "GO!" button to make the request.
- View the response headers and body below the request form.
- Click the "History" button to view a list of past requests and their responses.
- Click the "Recents" button to view a list of recent requests.
The main component that holds the state and manages the logic for making API requests and updating the history and recents lists.
Contains the buttons for viewing the history and recents lists. It also includes the dropdown menus for displaying these lists.
Contains the form for entering the URL, selecting the HTTP method, and submitting the request.
Displays the response headers and body in a formatted manner.
A simple footer component.
A custom stack implementation used for storing the history of requests. Each node in the stack contains the request data and a pointer to the next node.
This project is licensed under the MIT License.