Skip to content

Instantly share code, notes, and snippets.

@netmilk
Last active September 16, 2017 16:52
Show Gist options
  • Save netmilk/2b0d0d118fbf8cfef3a4c364ed828f42 to your computer and use it in GitHub Desktop.
Save netmilk/2b0d0d118fbf8cfef3a4c364ed828f42 to your computer and use it in GitHub Desktop.
REST Full JSON example

Cars API

Car [/car{?id}]

{
 "id": "1",
 "url": "/car?id=1",
 "maker": "vw"
}

Owner [/owner{?id}]

{
  "id": "1"
  "name": "adam"
  "car_url": "/car?id=1"
  "action": [
    "set_car": {
      "action_url": "/car/set"
     ]
     
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment