Skip to content

Visual Studio Code

baltasarb edited this page Jul 28, 2018 · 2 revisions

Table of Contents

Rest Client

The file should be saved with the http extension: fileName.http.
Select text and press Ctrl + Alt + R or press the send request button to execute a request.

Get

Get request with basic authentication

GET http://localhost:8080/user
Content-Type: aplication/json
Accept: application/json
Authorization: Basic YmFsdGFzYXJiOjEyMw==

Post

Post Json

POST http://host/path
Content-Type: application/json
Accept: application/json

{
    "field1": "f1",
    "field2": "f2"
}
Clone this wiki locally