Skip to content

Instantly share code, notes, and snippets.

@teasmade
Created April 18, 2021 06:24
Show Gist options
  • Save teasmade/ecab745d46c0300ba782eba9d1e59a5e to your computer and use it in GitHub Desktop.
Save teasmade/ecab745d46c0300ba782eba9d1e59a5e to your computer and use it in GitHub Desktop.
WCS HTTP Quest
### GET status of custom API for this quest
GET https://http-practice.herokuapp.com/status
### GET application status is JSON format
GET https://http-practice.herokuapp.com/status
Accept: application/json
### GET Wilders API
GET https://http-practice.herokuapp.com/wilders
Accept: application/json
### GET Filtered wilders
GET https://http-practice.herokuapp.com/wilders?language=CSharp&page=2
Accept: application/json
### GET Page 2 of wilders
GET https://http-practice.herokuapp.com/wilders/1645370
Accept: application/json
### POST wilder URL encoded
POST https://http-practice.herokuapp.com/wilders
Content-Type: application/x-www-form-urlencoded
name=JohnMc%20DoeFace&language=CSharp
### POST wilder JSON encoded
POST https://http-practice.herokuapp.com/wilders
Content-Type: application/json
{
"name": "Jane Smith",
"language": "JavaScript"
}
### PUT wilder JSON encoded
PUT https://http-practice.herokuapp.com/wilders/1645370
Content-Type: application/json
{
"name": "Putty McPutFace",
"language": "CSharp"
}
### DELETE wilder
DELETE https://http-practice.herokuapp.com/wilders/1645370
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment