Skip to content

Instantly share code, notes, and snippets.

@clrko
Created June 1, 2020 08:51
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 clrko/6f04347c270a155f322e7c640b88bcfa to your computer and use it in GitHub Desktop.
Save clrko/6f04347c270a155f322e7c640b88bcfa to your computer and use it in GitHub Desktop.
Quest_2_requests
### 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