FeyFetch is an automated testing tool crafted for efficient testing of REST API routes. It simplifies the process of testing API endpoints, ensuring reliability and performance with ease.
- Automated Testing: FeyFetch automates the testing of REST API routes, reducing manual effort and ensuring consistent testing procedures.
- Configurable Headers: Easily configure common headers to be included in all API requests for uniformity and ease of management.
- Flexible Request Handling: Support for various HTTP methods (GET, POST, PUT, DELETE, etc.) and optional request bodies allows for comprehensive testing of API endpoints.
- Directory-Based Organization: FeyFetch reads API requests from a specified directory, enabling easy organization and management of test cases.
- Whimsical Charm: With its playful name and mystical inspiration, FeyFetch adds a touch of whimsy to your testing endeavors.
To install FeyFetch, simply clone this repository:
git clone https://github.com/marcuwynu23/feyfetch.git
- Create a
requests.json
or any name for your requests file in yourrequests
directory with the following structure:
{
"name": "Application API Requests",
"root": "http://localhost:9000/api",
"headers": {
"Content-Type": "application/json"
},
"routes": [
{
"path": "/auth/login",
"method": "GET"
},
{
"path": "/auth/login",
"method": "POST",
"body": {
"email": "admin@admin.com",
"password": "admin"
}
},
{
"path": "/auth/register",
"method": "POST",
"body": {
"email": "admin@admin.com",
"password": "admin",
"role": "admin"
}
},
{
"path": "/auth/recovery",
"method": "POST",
"body": {
"email": "admin@admin.com"
}
},
{
"path": "/auth/reset",
"method": "POST",
"body": {
"email": "admin@admin.com",
"password": "admin",
"token": "123"
}
},
{
"path": "/auth/logout",
"method": "GET"
},
{
"path": "/users",
"method": "GET"
}
]
}
- Run FeyFetch by executing the main script and providing the path to the directory containing your requests configuration file:
fey <filename>
- FeyFetch will automate the testing of your API routes based on the requests defined in request json file for example
requests.json
inside the requests folder, providing insights into the functionality and performance of your endpoints.
Contributions are welcome! Feel free to submit bug reports, feature requests, or pull requests to help improve FeyFetch and make it even more magical.
This project is licensed under the MIT License - see the LICENSE file for details.