Skip to content

Commit 41bde82

Browse files
Merge pull request #49 from adamgall/add-server-docs
Include some documentation about how to use the `--add-server` flag
2 parents a7b58e2 + d73f4b4 commit 41bde82

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ A simple, quick, cross-platform API mock server that returns examples specified
1515
- Server validation (enabled with `--validate-server`)
1616
- Validates scheme, hostname/port, and base path
1717
- Supports `localhost` out of the box
18+
- Use the `--add-server` flag, in conjunction with `--validate-server`, to dynamically include more servers in the validation logic
1819
- Request parameter & body validation (enabled with `--validate-request`)
1920
- Configuration via:
2021
- Files (`/etc/apisprout/config.json|yaml`)
@@ -30,6 +31,9 @@ apisprout my-api.yaml
3031
# Validate server name and use base path
3132
apisprout --validate-server my-api.yaml
3233

34+
# Dynamically Include a new server / path in the validation
35+
apisprout --add-server http://localhost:8080/mock --validate-server my-api.yaml
36+
3337
# Load from a URL
3438
apisprout https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/api-with-examples.yaml
3539
```

0 commit comments

Comments
 (0)