The idea is to create complex chains of HTTP requests using only Yaml files and without writing a single line of code. The point is that it would be convenient to create chains of HTTP requests for local testing or any other similar purposes.
Gem installation
gem install yarh
All you need is to create an yaml file with the http request specification.
For example:
request:
url: https://example.com/api/v1/users
method: POST
headers:
Content-Type: application/json
body:
name: John Doe
email: [email protected]
then run a simple command from the console:
yarh -r file_path
Yarh will fulfill this request himself.
You can create multiple requests in one file.
request_1:
url: https://example.com/api/v1/users
...
request_2:
url: https://example.com/api/v2/users
...
If you would like to contribute to the development, submit a pull request with your changes. We welcome any contributions that improve the service. You can also view the current project board here. You can also contribute by reporting bugs or suggesting new features. Please use the GitHub issues for that.