Usage
Petitorium is designed to be intuitive for terminal users. Here is the basic workflow for testing your APIs.
Starting Petitorium
Simply run the command in your terminal:
petitorium
Sending HTTP Requests
- Select a request: Navigate through the collections panel on the left.
- Choose HTTP method: Use the method dropdown (e.g., GET, POST).
- Enter URL: Type or paste your endpoint URL.
- Headers: Add necessary headers in the Headers tab.
- Body: For POST/PUT requests, write your payload in the Body tab.
- Send: Press
Enteron the Send button or navigate to it and pressEnter.
Body Editing Workflow
Petitorium provides a flexible editing experience:
- Inline Editing: Press
ito enter insert mode and edit the body directly within the TUI. - External Editor: Press
F4to open the request body in your system's$EDITOR(e.g., Vim, Nano, VS Code). This is ideal for complex JSON or multi-line payloads. - Save: In inline mode, use
Ctrl+sto save your changes.
JSON Exploration
For large JSON responses, Petitorium integrates with fx. Press f while viewing a response to open it in fx for advanced searching and folding.
Workspace Support
Manage multiple independent workspaces for different projects. Use Ctrl+w to show the workspace menu and switch contexts instantly.