File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,13 @@ docker compose up -d
1818```
1919Then,
2020```
21- open http://localhost:3000
21+ Stub is up on http://localhost:3000
2222```
2323
2424## How to use?
25- Note that you must attack cookie ` userId=${value} ` for api to know which user need mock response
25+ You need to attach cookie ` userId=${value} ` when request for api to know which user need data
2626
27- 1 . Create a new mock response
27+ 1 . Create a new mock response < br >
2828Send a request to stub endpoint
2929``` js
3030POST baseUrl/ create
@@ -50,8 +50,9 @@ POST baseUrl/clear
5050Cookie: userId= john
5151```
5252
53- 3 . Retrieve mock data
53+ 3 . Retrieve mock data < br />
5454Send request to ` baseUrl/api/ ` + ` path ` which you create before
55+
5556* Request* :
5657``` js
5758GET baseUrl/ api/ sample
You can’t perform that action at this time.
0 commit comments