Skip to content

Instantly share code, notes, and snippets.

@waldyrious
Created July 2, 2021 16:01
Show Gist options
  • Save waldyrious/fc4ce598447312970236bc645d4a14bf to your computer and use it in GitHub Desktop.
Save waldyrious/fc4ce598447312970236bc645d4a14bf to your computer and use it in GitHub Desktop.
Example .http file (for VSCode rest client extenion
# To use with the [vscode-restclient](https://github.com/Huachao/vscode-restclient) extension
#-------------------------------------------------------------------------------
# Example with JSON data
POST https://api.example.com/address
Content-Type: application/json
{
"foo": "bar",
"baz": "qux"
}
###
#-------------------------------------------------------------------------------
# Example with query parameters
GET https://example.com/comments
?page=2
&pageSize=10
###
#-------------------------------------------------------------------------------
# Example with form-urlencoded data
POST https://api.example.com/login
Content-Type: application/x-www-form-urlencoded
name=foo
&password=bar
###
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment