-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Raymond Ottun
committed
Oct 7, 2021
1 parent
a923948
commit cdf1ac1
Showing
8 changed files
with
65 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ name: Build | |
|
||
on: | ||
push: | ||
paths: | ||
- '!docs/**' | ||
branches: [ main ] | ||
|
||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,31 @@ | ||
--- | ||
home: true | ||
heroImage: /assets/img/landing.svg | ||
tagline: A robust HTTP mocking server to rapidly aid application development and system testing | ||
tagline: A robust HTTP mocking server that aids application development, inspection and testing | ||
actionText: Get Started → | ||
actionLink: /start/ | ||
features: | ||
- title: Develop | ||
details: Simulate non-ready/remote APIs with an easy declarative system | ||
- title: Inspect | ||
details: By proxying requests automatically, devs can inspect and visualize network requests by system under test | ||
details: Transparently mock non-ready/remote HTTP APIs with an easy declarative system | ||
- title: Proxy & Inspect | ||
details: Automatically proxy requests to remote servers. Developers can inspect and visualize network requests by application under test | ||
- title: Test | ||
details: Assert HTTP requests made from system under test using a RESTful API | ||
details: Assert HTTP requests made from application under test using a RESTful API | ||
footer: MIT Licensed | ||
--- | ||
|
||
## Quick Start | ||
Create a file mock.yml | ||
```yaml | ||
- request: | ||
path: /hello | ||
response: | ||
statusCode: 200 | ||
body: | ||
name: John Doe | ||
job: developer | ||
### Sample Environment | ||
|
||
``` | ||
Selectively mock APIs, Deputy server will transparently forward unmatched requests to remote systems | ||
![media/dev_environment](./media/dev_environment.png) | ||
|
||
### Quick Start | ||
```bash | ||
npx @sayjava/behave | ||
docker run -p 8080:8080 ghcr.io/sayjava/deputy | ||
``` | ||
|
||
<!-- or --> | ||
|
||
```bash | ||
docker run -p 8080:8080 ghcr.io/sayjava/behave | ||
$ curl http://localhost:8080/whoami | ||
``` | ||
|
||
```bash | ||
$ curl http://localhost:8080/whoami | ||
``` | ||
Visit the dashboard at `http://localhost:8080/_/dashboard` |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters