Created
November 18, 2019 09:28
-
-
Save Armand72/2a569687274951d3278fdb373878ffed to your computer and use it in GitHub Desktop.
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
### 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