Crates.io | rust-api-test |
lib.rs | rust-api-test |
version | 1.1.1 |
source | src |
created_at | 2024-03-15 19:11:33.699017 |
updated_at | 2024-03-18 07:22:55.567507 |
description | CLI tool for testing REST APIs |
homepage | |
repository | https://github.com/prasadjivane/rust-api-test |
max_upload_size | |
id | 1175070 |
size | 38,050 |
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.
To use rust-api-test, you need to have Rust and Cargo installed on your system. You can install them from rustup.rs.
Once you have Rust and Cargo installed, you can install rust-api-test using Cargo:
cargo install rust-api-test
To use rust-api-test
in your Rust project, simply add it as a dependency in your Cargo.toml
file:
[dependencies]
rust-api-test = "1.1.0"
rust-api-test <method> <url> [body]
Get data from an API endpoint
rust-api-test GET https://jsonplaceholder.typicode.com/posts/1
Post data to an API endpoint
rust-api-test POST https://jsonplaceholder.typicode.com/posts userId=1 title="Test Title" body="Test Body"
reqwest - HTTP client for Rust.
serde_json - JSON serialization and deserialization library for Rust.
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.
This project is licensed under the MIT License - see the LICENSE file for details.