Skip to content

Instantly share code, notes, and snippets.

@jervalles
Created November 19, 2019 22:01
Show Gist options
  • Save jervalles/705d261c954d6fb6df868dab50f9924a to your computer and use it in GitHub Desktop.
Save jervalles/705d261c954d6fb6df868dab50f9924a to your computer and use it in GitHub Desktop.
requests.http
###
GET https://http-practice.herokuapp.com/wilders
Accept: application/json
###
GET https://http-practice.herokuapp.com/wilders?language=JavaScript&page=2
Accept: application/json
###
POST https://http-practice.herokuapp.com/wilders
Content-Type: application/x-www-form-urlencoded
name=John%20Doe&language=C%23
###
POST https://http-practice.herokuapp.com/wilders
Content-Type: application/json
{
"name": "Jane Smith",
"language": "JavaScript"
}
###
GET https://http-practice.herokuapp.com/wilders/827
Accept: application/json
###
PUT https://http-practice.herokuapp.com/wilders/827
Content-Type: application/x-www-form-urlencoded
name=John%20Doe&language=JavaScript
###
DELETE https://http-practice.herokuapp.com/wilders/827
Content-Type: application/x-www-form-urlencoded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment