Skip to content

Commit cc69597

Browse files
committed
Update README.md
1 parent 0e738b4 commit cc69597

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Note that you must attack cookie `userId=${value}` for api to know which user ne
2525

2626
1. Create a new mock response
2727
Send a request to stub endpoint
28-
```json
28+
```js
2929
POST baseUrl/create
3030
Cookie: userId=john
3131
{
@@ -44,20 +44,20 @@ Cookie: userId=john
4444
```
4545

4646
2. Clear mock response
47-
```json
47+
```js
4848
POST baseUrl/clear
4949
Cookie: userId=john
5050
```
5151

5252
3. Retrieve mock data
5353
Send request to `baseUrl/api/` + `path` which you create before
5454
*Request*:
55-
```JSON
55+
```js
5656
GET baseUrl/api/sample
5757
Cookie: userId=john
5858
```
5959
Response:
60-
```JSON
60+
```js
6161
{
6262
"id": 1,
6363
"name": "John Doe"

0 commit comments

Comments
 (0)