Skip to content

Instantly share code, notes, and snippets.

@bastienapp
Created February 12, 2020 14:28
Show Gist options
  • Save bastienapp/20948a8f2ec7ffa3f0ab4ea4d4f91570 to your computer and use it in GitHub Desktop.
Save bastienapp/20948a8f2ec7ffa3f0ab4ea4d4f91570 to your computer and use it in GitHub Desktop.
### get all wilders
GET https://http-practice.herokuapp.com/wilders
### get wilder for JavaScript, page 10
GET https://http-practice.herokuapp.com/wilders?language=JavaScript&page=10
### create wilder from url-encoded
POST https://http-practice.herokuapp.com/wilders
Content-Type: application/x-www-form-urlencoded
name=Scarlett%20Johansson&language=JavaScript
### create wilder from json
POST https://http-practice.herokuapp.com/wilders
Content-Type: application/json
{
"name": "Jake Gyllenhaal",
"language": "C#"
}
### get wilder
GET https://http-practice.herokuapp.com/wilders/1796
### update wilder
PUT https://http-practice.herokuapp.com/wilders/1796
Content-Type: application/json
{
"language": "Java"
}
### delete wilder
DELETE https://http-practice.herokuapp.com/wilders/1796
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment