Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (32 sloc) 1.74 KB
layout title date summary categories thumbnail author image tags
post
REST Client in VS Code
2019-09-16 00:00:00 -0800
A lightweight solution for quick API calls
blog
cogs
brianbunke
/images/restclient1.png
vscode
api

Last year I blogged how to install Fiddler and view raw HTTP request/response data when interacting with a remote REST API.

Enter REST Client, a Visual Studio Code extension that solves this use case (and many more) in a much lighter fashion. After trying it out, I thought it was useful enough to deserve a quick write-up.

Start to finish in four quick steps:

  1. VS Code > Extensions pane > Install REST Client
  2. Open a new file tab and set the language (Ctrl + K, M) to HTTP
  3. POST https://jsonplaceholder.typicode.com/posts
  1. A "Send Request" link appears directly above that line; click it and the response tab appears to the right

Here's a screenshot demonstrating how to send a body with your POST request:

restclient

Really, the hardest part is digging through the massive readme to figure out how to do what you want amid all the other crazy features. There's support for GraphQL, various authentication methods (Azure AD?!), proxies, cookies...it's an impressive list. Go check it out!


Credit to @tiberriver256 for sharing.

You can’t perform that action at this time.