Project

yarh

0.0
The project is in a healthy, maintained state
Create specifications for HTTP requests without a single line of code
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.9
~> 1.0, >= 1.0.4
~> 1.3
 Project Readme

YARH

Build Status Gem Gem Version

Yet Another Request Handler

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.

Installation

Gem installation

gem install yarh

Usage

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: john.doe@example.com

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
  ...

Contribution

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.