Skip to content

Commit

Permalink
docs: update description in main README
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Sheldon committed Oct 9, 2023
1 parent 4133632 commit 5a8e781
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Nap is a command-line interface (CLI) for running HTTP requests using YAML files
Nap is a command-line tool that utilizes YAML files to test APIs.

## Documentation

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/commands/run.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Usage: `-p var1=val1 [-p var2=val2] ...`

Initialize a variable. To include multiple parameters, use the flag multiple times. If the same variable name is supplied multiple times, only the last value will be used. The `--param` flag will also overwrite values loaded via the `--env` flag.

### `--quiet` - Parameter
### `--quiet` - Quiet Mode

Alias: `-q`. `bool`. Optional

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/concepts/predicates.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ A predicate will always appear _between_ a query and a value (such as an assert'
| `contains` | Query contains value as a `string`. | `body contains Hello, World!` |
| `startswith` | Query begins with value as a `string`. | `body startswith Hello` |
| `endswith` | Query ends with value as a `string`. | `body endswith World!` |
| `matches` | Query matches value as a regular expression | `body matches ^Hello.+$` |
| `matches` | Query matches value as a regular expression | `body matches ^Hello.+$` |
| `in` | Query matches one of a set of values | `status in [ 200, 201 ]` |

## Negation
Expand Down
14 changes: 7 additions & 7 deletions docs/reference/concepts/queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ A query describes a part of an HTTP response.

Each query begins with a keyword. Here is a table of all supported keywords and their functions.

| Keyword | Description |
|:--------|:------------|
| `body` | The raw HTTP response body, expressed as a string |
| `duration` | The HTTP execution duration in milliseconds |
| `header` | The value of an HTTP response header |
| `jsonpath` | The result of a jsonpath expression |
| `status` | The numeric HTTP response status code |
| Keyword | Description |
|:------------|:--------------------------------------------------|
| `body` | The raw HTTP response body, expressed as a string |
| `duration` | The HTTP execution duration in milliseconds |
| `header` | The value of an HTTP response header |
| `jsonpath` | The result of a jsonpath expression |
| `status` | The numeric HTTP response status code |

## Filters

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/file-types/requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ If present, defines the request as a GraphQL request, which sets the `verb` to `

Sets the query in the GraphQL payload. Accepts either an inline query or a file-path via the `@` prefix.

### `graphql.variables` - GraphQL Query
### `graphql.variables` - GraphQL Variables

`object`. Optional.

Expand Down
2 changes: 1 addition & 1 deletion docs/the-basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,6 @@ Run finished in 326ms. 4/4 succeeded.
This is the power of Nap. Since `subroutine-1.yml` and `subroutine-2.yml` aren't blocking each other, we can write a very large set of tests and have many of them running in parallel, making the whole test run much, much faster than solutions such as Postman or a regular bash script using `curl`.

{: .warning }
Be sure not to reference a routine from itself. Unless you like stalling forever, of course.
Be sure not to reference a routine from itself, even indirectly. This will create an infinite loop, and your workload will stall!

You can view the full code for example on Github [here](https://github.com/davesheldon/nap/tree/main/examples/routines/basic).

0 comments on commit 5a8e781

Please sign in to comment.