🔌HTTPie
Also known as HTTPie CLI, http command, HTTPie Desktop
A tool you type in a terminal to call APIs. Its commands are short and its replies are neat.
Think of it like
Think of it like a walkie-talkie for the web. You say a short line, and you get a neat reply.
Example
Jack tests his new endpoint with one line: http POST to /orders with item=mug. He sees the JSON answer in colour.
Why it matters
Quick checks of an API take seconds, without writing code.
Definition
Example code
console
$ http POST api.example.com/orders item=mug qty=2
HTTP/1.1 201 Created
Content-Type: application/json
{
"id": 43,
"item": "mug"
}Common mistake
Key takeaways
- 1Short commands. http, method, address, fields.
- 2JSON by default. Fields become a JSON body.
- 3Readable output. Colour and spacing.