Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Drery/apisix
Browse files Browse the repository at this point in the history
  • Loading branch information
EH committed Feb 18, 2022
2 parents 45047e5 + e7cfd2f commit 502a69b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/en/latest/plugins/mocking.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ title: mocking

## Name

Mock API plugin,Binding the plugin returns random mock data in the specified format and is no longer forwarded to the back end.
Mock API plugin, When the plugin is bound, it returns random mock data in the specified format and is no longer forwarded to the upstreams.

## Attributes

Expand Down Expand Up @@ -203,12 +203,10 @@ Use curl to access:
```shell
$ curl http://127.0.0.1:9080/test-mock -i
HTTP/1.1 201 Created
Date: Fri, 14 Jan 2022 11:49:34 GMT
...
Content-Type: application/json;charset=utf8
Transfer-Encoding: chunked
Connection: keep-alive
x-mock-by: APISIX/2.10.0
Server: APISIX/2.10.0
...

{"a":1,"b":2}
```
Expand Down

0 comments on commit 502a69b

Please sign in to comment.