rust-api-test 0.1.0

CLI for testing REST APIs
rust-api-test-0.1.0 is not a library.
Visit the last successful build: rust-api-test-1.1.1

rust-api-test

rust-api-test is a Rust package that provides a command-line interface (CLI) for testing REST APIs in real-time. It allows Rust developers to easily perform HTTP GET, POST, PUT, and DELETE requests from the command line.

Features

  • Supports GET, POST, PUT, and DELETE HTTP methods.
  • Allows sending JSON data in the request body.
  • Provides real-time feedback on the response including status code and response body.

Installation

To use rust-api-test in your Rust project, simply add it as a dependency in your Cargo.toml file:

[dependencies]
rust-api-test = "0.1.0"

Usage

Once installed, you can use rust-api-test from the command line:

rust-api-test

Follow the on-screen instructions to select the HTTP method, enter the URL, and provide optional JSON data for POST and PUT requests.

Example

1. GET
2. POST
3. PUT
4. DELETE
5. Exit

Dependencies

  • reqwest - HTTP client for Rust.
  • serde_json - JSON serialization and deserialization library for Rust.

Contributing

Contributions are welcome! If you encounter any issues or have suggestions for improvements, feel free to open an issue or submit a pull request on GitHub.

License

This project is licensed under the MIT License - see the LICENSE file for details.