Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
leonovk committed May 6, 2024
1 parent d4285c4 commit cf280ec
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,51 @@
# YARH

[![Build Status](https://github.com/leonovk/yarh/actions/workflows/ruby.yml/badge.svg)](https://github.com/leonovk/yarh/actions/workflows/ruby.yml) ![Gem](https://img.shields.io/gem/dt/yarh) [![Gem Version](https://badge.fury.io/rb/yarh.svg)](https://badge.fury.io/rb/yarh)

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

## Installation

Gem installation


```
gem install yarh
```

## Usage

All you need is to create an XML file with the http request specification.

For example:

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

```yaml
request_1:
url: https://example.com/api/v1/users
...
request_2:
url: https://example.com/api/v2/users
...
```

0 comments on commit cf280ec

Please sign in to comment.