Make API requests from the comfort of your Vim editor! 🛋️
vim-restman is a Vim plugin that lets you send API requests directly from your Vim environment, just like Postman, but cooler! 😎 Save auth tokens on the fly and embrace the power of Vim for all your API testing needs.
- Make API requests right from your Vim editor 📡
- Save authentication tokens automatically 🔐
- Use .rest files to organize your API calls 📁
- Global variables and headers support 🌍
- Capture and reuse response data 🎣
Using vim-plug:
vim Plug 'sojohnnysaid/vim-restman'
🚦 How to Use
- Create a .rest file (all files must have the .rest extension).
- Set up your globals, variables, and requests.
- Move your cursor between the -- delimiters.
- Press Ctrl+i to send the API request. Use
nnoremap <C-r> :RestManMain<CR>
in your config to change the key to ctrl+r for example 🤓 - Watch the magic happen on the right side of your screen! ✨
Globals Start
@base_url http://localhost:8090
@headers Content-Type: application/json Authorization: Bearer
@variables username=$username password=$password
@capture token
Globals End
Requests Start
-- POST /api/collections/users/auth-with-password { "identity":"
", "password":"
" }
-- GET /api/collections/applicants/records
Requests End
- Because Vim is life 💚
- API testing should be fun 🎈
- Impress your colleagues with your Vim wizardry 🧙♂️
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
MIT
Created with love by John Yzaguirre 💖
Remember, with great power comes great responsibility. Use vim-restman wisely! 🦸♂️