Created
July 2, 2021 16:01
-
-
Save waldyrious/fc4ce598447312970236bc645d4a14bf to your computer and use it in GitHub Desktop.
Example .http file (for VSCode rest client extenion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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