Skip to content

Instantly share code, notes, and snippets.

@amix
Created November 14, 2013 12:14
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 amix/f348307f16944aba9e83 to your computer and use it in GitHub Desktop.
Save amix/f348307f16944aba9e83 to your computer and use it in GitHub Desktop.
{
"type": "project_update",
"timestamp": 1326467500573,
"args": {
"id": "$1326467493134",
"name": "Test new",
"item_order": 5,
"color": 2
}
@richardaum
Copy link

{
"type": "project_update", #type of requisition, update
"timestamp": 1326467500573, #timestamp of when the requisition was made (to avoid duplicated requests)
"args": {
"id": "$1326467493134", #some temporary id, that will be replaced at the response of this request through the filed "TempIdMapping"
"name": "Test new", #updated name
"item_order": 5, #updated order
"color": 2 # updated color
}

The main question is: Where does this request know which is the project that the server should update? Does the request should provide a parameter, called "id", to indicate this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment