Skip to content

Instantly share code, notes, and snippets.

@lebowvsky
Last active May 26, 2020 13:55
Show Gist options
  • Select an option

  • Save lebowvsky/cab3fa44b7d83b539fb7d08a83c25dd4 to your computer and use it in GitHub Desktop.

Select an option

Save lebowvsky/cab3fa44b7d83b539fb7d08a83c25dd4 to your computer and use it in GitHub Desktop.
Protocole HTTP
### GET wilder
GET https://http-practice.herokuapp.com/wilders
Accept: application/json
### GET wilder
GET https://http-practice.herokuapp.com/wilders?language=Java&page=2
Accept: application/json
### POST wilder
POST https://http-practice.herokuapp.com/wilders
Content-Type: application/json
{
"name": "Georges Abitbol",
"language": "C#"
}
### POST wilder
POST https://http-practice.herokuapp.com/wilders
Content-Type: application/x-www-form-urlencoded
name=Micheline%20Doe&language=C%23
### GET wilder
GET https://http-practice.herokuapp.com/wilders/2115
Accept: application/json
### PUT wilder
PUT https://http-practice.herokuapp.com/wilders/2117
Content-Type: application/json
{
"name": "Serge Gagnant",
"language": "Java"
}
### DELETE wilder
DELETE https://http-practice.herokuapp.com/wilders/2111
Accept: application/json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment