Skip to content

Commit

Permalink
Merge pull request #24 from barzin144/update-readme
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
barzin144 authored Oct 31, 2024
2 parents 4096914 + 673926c commit ca9a702
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ zus send post http://localhost:5000/api/Account/LoginWithFormData -x -d "usernam
```
| Options | Description |
| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| -d, --data | Data format: `Key:Value,Key:Value` and wrap your data in double quote. Data will be sent in Json format by default. By adding -x flag change format to form-urlencoded |
| -d, --data | Data format: `Key:Value,Key:Value` and wrap your data in single or double quote. Data will be sent in Json format by default. By adding -x flag change format to form-urlencoded |
| -a, --auth | Authentication Bearer Token |
| -n, --name | Name for saving the request |
| -x, --form-format | Send data in form-urlencoded format |
| -x, --form-format | Convert Key:Value data to form-urlencoded format |
| -j, --json-format | Convert Key:Value data to json format |
| -p, --pre-request | Pre-request name |
| -f, --force | Overwrite the existing request with same name |
#### Pre-Request
Expand All @@ -64,6 +65,10 @@ zus send post http://localhost:5000/api/Account/UpdateProfile -p get-token -a "{

zus send post http://localhost:5000/api/Account/UpdateProfile -p get-token -d "name:{var.name}"

zus send post http://localhost:5000/api/Account/Login -x -d "username:zus,password:123456" //form-urlencoded format
zus send post http://localhost:5000/api/Account/Login -j -d "username:zus,password:123456" //json format
zus send post http://localhost:5000/api/Account/Login -d '{"username": "zus", "password": "123456"}' //string format

```
> *{pr.KEY_OF_RESPONSE_OBJECT}* will be replaced with Pre-request response data.(If Pre-request response data is Json)
Expand Down

0 comments on commit ca9a702

Please sign in to comment.