Skip to content

Instantly share code, notes, and snippets.

@onzag
Created March 16, 2016 13:40
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 onzag/122faa50a803ae7cef80 to your computer and use it in GitHub Desktop.
Save onzag/122faa50a803ae7cef80 to your computer and use it in GitHub Desktop.
SET people;
ID 100038847;
{
"name":"Jonh",
"sex":"M",
"friends":(GET /people/${self}/friends),
"setName":(POST /people/${self}/name ${value}),
"setDescription":(POST /people/${self}/description ${value}),
}
//
person.setName("me").then(...).catch(...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment