Use POSTman in Chrome or RESTClient in Firefox for hitting HTTP APIs? What about doing it from Vim instead of your browser?
This is a cURL wrapper for Vim.
:HttpDelete localhost:8080/api/thing
which sends a DELETE
request to the URL and then pops up a window with the
HTTP response.
:HttpGet localhost:8080/api/thing
which is like :HttpDelete
, but with the GET
verb instead.
:HttpPost localhost:8080/api/thing
which POST
s the contents of the current file to the given URL and then pops up
a window with the HTTP response. A Content-Type
header is added based on the
filetype.
:HttpPut localhost:8080/api/thing
which is like :HttpPost
, but with the PUT
verb instead.