Inspired by lazygit, Lazyapi aims to solve the slow startup and cumbersome operation issues of existing API management tools, allowing you to quickly manage API requests and view responses from the command line.
- CRUD operations for APIs
- Send API requests with support for GET/POST methods, configurable request body (JSON format), and response display
-
Local data storage using SQLite
For Mac users, the lazyapi.db file is generated in the ~/Library/Application Support/lazyapi directory. Database versioning is managed with goose, automatically executing all migration files in the migrations directory when new versions add new fields.
n- Create new APIe- Edit APId- Delete APIr- Send requestspace- View detailstab- Switch views (between API list and request record list)g- Quick GET requestp- Quick POST request
↑- Scroll up↓- Scroll downesc- Return to list
↑- Scroll up↓- Scroll downesc- Return to list
ctrl-r- Confirmctrl-q- Cancel
d- Delete recordspace- View detailstab- Switch viewsg- Quick GET requestp- Quick POST request
esc- Cancel
When writing JSON, use ctrl-f to format the content
- The underlying gocui library has limited Chinese language support. I've forked a version with temporary fixes for Chinese input and display, but cursor movement and character deletion still have issues (deleting Chinese characters requires pressing the delete key twice, with similar issues for cursor movement). No such problems with English.
- Currently only supports GET and POST requests. Planning to add other request methods and header configuration.
- Planning to add the ability to quickly import API data via Swagger URL.
- Add more configuration options.
Download the code and run: go build to get the executable file

