Skip to content

Instantly share code, notes, and snippets.

@Armand72
Created November 18, 2019 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Armand72/2a569687274951d3278fdb373878ffed to your computer and use it in GitHub Desktop.
Save Armand72/2a569687274951d3278fdb373878ffed to your computer and use it in GitHub Desktop.
### get status
GET https://http-practice.herokuapp.com/status
### GET application status in JSON format
GET https://http-practice.herokuapp.com/status
Accept: application/json
### GET wilders sans filtrage
GET https://http-practice.herokuapp.com/wilders
### GET wilders avec filtrage language page
GET https://http-practice.herokuapp.com/wilders?language=JavaScript&page=2
### POST URL-encoded
POST https://http-practice.herokuapp.com/wilders
Content-Type: application/x-www-form-urlencoded
name=Armand%20Meunier&language=JavaScript
### POST JSON-encoded
POST https://http-practice.herokuapp.com/wilders
Content-Type: application/json
{
"name": "Arthur Mcfly",
"language": "JavaScript"
}
### check new wilder
https://http-practice.herokuapp.com/wilders/119
### PUT update wilder
PUT https://http-practice.herokuapp.com/wilders/119
Content-Type: application/json
{
"name": "Armando de la Vega",
"language": "JavaScript"
}
### PUT update wilder
PUT https://http-practice.herokuapp.com/wilders/119
Content-Type: application/json
{
"name": "Armand Meunier",
"language": "JavaScript"
}
### DELETE wilder
DELETE https://http-practice.herokuapp.com/wilders/120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment