Created
June 1, 2020 08:51
-
-
Save clrko/6f04347c270a155f322e7c640b88bcfa to your computer and use it in GitHub Desktop.
Quest_2_requests
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 application status | |
GET https://http-practice.herokuapp.com/status | |
### GET application status (format JSON) | |
GET https://http-practice.herokuapp.com/status | |
Accept: application/json | |
### GET fictional wilders (format JSON for PHP 2nd page) | |
GET https://http-practice.herokuapp.com/wilders?language=PHP&page=2 | |
Accept: application/json | |
### GET fictional wilders (format JSON) | |
GET https://http-practice.herokuapp.com/wilders?language=C%23&page=3000 | |
Accept: application/json | |
### POST fictional wilders (format url-encoded) | |
POST https://http-practice.herokuapp.com/wilders | |
Content-Type: application/x-www-form-urlencoded | |
name=Frodon%20Baggins&language=C%23 | |
### POST fictional wilders (format json) | |
POST https://http-practice.herokuapp.com/wilders | |
Content-Type: application/json | |
{ | |
"name": "Arthur Chevalier", | |
"language": "JavaScript" | |
} | |
### GET fictional wilders (format JSON) | |
GET https://http-practice.herokuapp.com/wilders/2471 | |
Accept: application/json | |
### PUT fictional wilders (format json) | |
PUT https://http-practice.herokuapp.com/wilders/2472 | |
Content-Type: application/json | |
{ | |
"name": "Frodon Baggins", | |
"language": "JavaScript" | |
} | |
### DELETE fictional wilders (format json) | |
DELETE https://http-practice.herokuapp.com/wilders/2472 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment