Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Commit

Permalink
Merge pull request #18 from arshchimni/fix-typo
Browse files Browse the repository at this point in the history
Remove Typo from Readme
  • Loading branch information
athul authored Aug 30, 2020
2 parents aeabcbc + 89a7b19 commit 2e36870
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $ sh -c "$(curl -sL https://git.io/getpwcli)"
- Clone the repo

```
$ git clone https://github.com/athul/pwcli
$ git clone https://github.com/hoppscotch/hopp-cli.git
```

- Build and install
Expand All @@ -36,27 +36,27 @@ $ sudo make install

### Homebrew

Install by `brew install athul/tap/pwcli`
Install by `brew install athul/tap/hopp-cli`

> **IMPORTANT: Not tested on Windows, please leave your feedback/bugs in the Issues section**
# Usages

Putting Simply: **Just pass the URL to the request method**
## Basic
- GET : `pwcli get <url> `
- POST: `pwcli post <url> `
- PATCH: `pwcli patch <url>`
- PUT : `pwcli put <url>`
- DELETE: `pwcli delete <url>`
- GET : `hopp-cli get <url> `
- POST: `hopp-cli post <url> `
- PATCH: `hopp-cli patch <url>`
- PUT : `hopp-cli put <url>`
- DELETE: `hopp-cli delete <url>`

Example for a POST request:
`pwcli post https://reqres.in/api/users/2 -c js -b '{"name": "morp","job": "zion resident"}`
`hopp-cli post https://reqres.in/api/users/2 -c js -b '{"name": "morp","job": "zion resident"}`

### Extra

**SEND**: This can be used to test multiple endpoints from the `hoppscotch-collection.json` file. The output will only be the `statuscode`.
Example : `pwcli send <PATH to hoppscotch collection.json>`
Example : `hopp-cli send <PATH to hoppscotch collection.json>`
o/p:
![](/assets/send.png)

Expand Down

0 comments on commit 2e36870

Please sign in to comment.