<commit_before># frisby

[![Build Status](https://travis-ci.org/verdverm/frisby.svg?branch=master)](https://travis-ci.org/verdverm/frisby)
[![GoDoc](https://godoc.org/github.com/verdverm/frisby?status.svg)](https://godoc.org/github.com/verdverm/frisby)
[![Release](https://img.shields.io/github/release/qubyte/rubidium.svg)](https://github.com/verdverm/frisby/releases/tag/1.0)

REST API testing framework inspired by frisby-js, written in Go

### Installation

```
go get -u github.com/verdverm/frisby
```

### Basic Usage

First create a Frisby object:

```
// create an object with a given name (used in the report)
F := frisby.Create("Test successful user login").
    Get("https://golang.org")
```

Add any pre-flight data

```
F.SetHeader("Content-Type": "application/json").
	SetHeader("Accept", "application/json, text/plain, */*").
	SetJson([]string{"item1", "item2", "item3"})
```

There is also a Global object for setting repeated Pre-flight options.

```<commit_msg>fix path in README link<commit_after># frisby

[![Build Status](https://travis-ci.org/verdverm/frisby.svg?branch=master)](https://travis-ci.org/verdverm/frisby)
[![GoDoc](https://godoc.org/github.com/verdverm/frisby?status.svg)](https://godoc.org/github.com/verdverm/frisby)
[![Release](https://img.shields.io/github/release/verdverm/frisby.svg)](https://github.com/verdverm/frisby/releases/tag/1.0)

REST API testing framework inspired by frisby-js, written in Go

### Installation

```
go get -u github.com/verdverm/frisby
```

### Basic Usage

First create a Frisby object:

```
// create an object with a given name (used in the report)
F := frisby.Create("Test successful user login").
    Get("https://golang.org")
```

Add any pre-flight data

```
F.SetHeader("Content-Type": "application/json").
	SetHeader("Accept", "application/json, text/plain, */*").
	SetJson([]string{"item1", "item2", "item3"})
```

There is also a Global object for setting repeated Pre-flight options.

```
{'fraction_non_alphanumeric': 0.18597560975609756, 'fraction_numerical': 0.00508130081300813, 'mean_word_length': 4.877611940298507, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 14, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5946522', 'n_tokens_mistral': 746, 'n_tokens_neox': 706, 'n_words': 140}