Skip to content

Commit

Permalink
Update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrodasilvaalves committed Jun 19, 2023
1 parent adf45bd commit 227436d
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions website/docs/verification/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,50 @@ the verification endpoint called in the following way: ```http://localhost:5000/

Both JSON body and x-www-form-urlencoded body are supported.

### Verify request with headers
If you have just called ```http://localhost:5000/hello/Jane Doe```, with the following headers:
```
x-user-id:[email protected]
Authorization:some-bearer-token
endtoend:b9802abd-106f-4d50-b68e-de3198777456
```
the verification endpoint called in the following way: ```http://localhost:5000/_mockaco/verification?route=/hello/Jane Doe``` will respond like so:
```
{
"route": "/hello/Jane Doe",
"timestamp": "14:41",
"headers": [
{
"key": "x-user-id",
"value": "[email protected]"
},
{
"key": "Authorization",
"value": "some-bearer-token"
},
{
"key": "endtoend",
"value": "b9802abd-106f-4d50-b68e-de3198777456"
}
],
"body": ""
}
```

### Configure hidden headers in verification endpoint
You can configure to not display headers that are not relevant to your test. By default the following headers will not be displayed: ```Accept, Connection, Host, User-Agent, Accept-Encoding, Postman-Token, Content-Type, Content-Length.```

```
"Mockaco": {
...
"HiddenHeaders": [
"Postman-Token",
"Some-Irrelevant-Header",
],
...
},
```


## Configure custom name of verification endpoint

Expand Down

0 comments on commit 227436d

Please sign in to comment.