Skip to content

Commit fb0703b

Browse files
committed
Merge remote-tracking branch 'origin/main' into main
2 parents 06a8c90 + c2adb8b commit fb0703b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ docker compose up -d
1818
```
1919
Then,
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>
2828
Send a request to stub endpoint
2929
```js
3030
POST baseUrl/create
@@ -50,8 +50,9 @@ POST baseUrl/clear
5050
Cookie: userId=john
5151
```
5252

53-
3. Retrieve mock data
53+
3. Retrieve mock data <br/>
5454
Send request to `baseUrl/api/` + `path` which you create before
55+
5556
*Request*:
5657
```js
5758
GET baseUrl/api/sample

0 commit comments

Comments
 (0)