poso
v0.0.5
Published
a cli utility to run vscode-rest requests
Maintainers
Readme
poso
CLI REST client compatible with vscode-restclient
npm i -g posoRequest flags
--stop-on-http-errorStop when the response status is not 2xx--show-headersShow the response headers--status-onlyPrint only the response status--silentReduce verbosity.--jsonParse the response and print it as json string.
Execute a request
poso r "GET {{url}}/todos/{{id}}" "@id=2 @url=https://jsonplaceholder.typicode.com"Open a file
Parse a .http file and select a request interactively:
poso open ./file.httpAdd override variables and select a specific request:
poso o ./file.http "@id=OVERRIDE_ID" --request-name="Get One"Just show a list of the requests in a file
poso o ./file.http --listTODO
[x] Request method
- [x] Apply Variables
- [ ] Default to GET if no method but URL
[ ] Parse HTTP File
- [x] Sections
- [ ] Named Request
- [x] named after section divider
- [ ] named var
@name
[ ] Request parser does not apply vars until exec
[ ] Variables
- [ ] Recursive Variables
@website=thing.com @apiUrl=http://{{website}}/api
- [ ] Recursive Variables
Maybe TODOs
- [ ] Calculated Vars coming from named Request
@id={{create.response.body.json.id}} get {{apiUrl}}/users/@id
