Skip to content

Instantly share code, notes, and snippets.

@selahlynch
Created November 18, 2013 22:18
Show Gist options
  • Save selahlynch/7536397 to your computer and use it in GitHub Desktop.
Save selahlynch/7536397 to your computer and use it in GitHub Desktop.
Rough description of our Data API from Forio Simulate
#Description of JSON object
{hires:[
{company:xxx1, employee:yyy1, salary:zzz1},
{company:xxx2, employee:yyy2, salary:zzz2},
{company:xxx3, employee:yyy3, salary:zzz3}
]}
to get the salary of employee#2
GET /hires/1/salary
to change the salary of employee#2
PUT /hires/1/salary, value=newSalary
to record a new hire
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment