Skip to content

Instantly share code, notes, and snippets.

@zelding
Last active March 7, 2021 10:05
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 zelding/dba68b29dc3be9f30840fab439759aa7 to your computer and use it in GitHub Desktop.
Save zelding/dba68b29dc3be9f30840fab439759aa7 to your computer and use it in GitHub Desktop.
some sort of api
GET api/v1/item/:id
{
id: :id,
data: {
prop1: val1,
prop2: val2,
prop3: GET api/v1/item/:id/ref1,
prop4: GET api/v1/item/:id/ref2
},
meta: {
last_mod: UTC yyyy-mm-dd hh:ii:ss,
expires: UTC yyyy-mm-dd hh:ii:ss
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment