Created
July 12, 2016 13:49
-
-
Save otaviosoares/e0e6b05fef8e46f0af9ea340031ddd45 to your computer and use it in GitHub Desktop.
data-reference.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// USUARIO | |
// Obra | |
{ | |
"id": "object-id", | |
"name": "minha obra", | |
"artist": "Leandro", | |
"owner": {"id": "user-id", "type": "USER"}, | |
"shares": [{"id": "company-id", "type": "COMPANY"},{"id": "another-user-id", "type": "USER"}] | |
} | |
// Collections | |
{ | |
"id": "col-id-user", | |
"owner": {"id": "user-id", "type": "USER"}, | |
"name": "gravuras", | |
"objects": ["object-id"] | |
} | |
// GALERIA | |
{ | |
"id": "company-id", | |
"name": "galeria 1", | |
"owner": "other-user-id", | |
"users": [{"id": "yet-another-user-id", "role": "ADMIN"}] | |
} | |
// Collections | |
{ | |
"id": "col-id-company", | |
"owner": {"id": "company-id", "type": "COMPANY"}, | |
"name": "artistas azarados", | |
"objects": ["object-id"] | |
} | |
// Events | |
{ | |
"id": "", | |
"version": 1, | |
"event": "object-created", | |
"payload": { | |
"name": "minha obra", | |
"artist": "Leandro", | |
"owner": {"id": "user-id", "type": "USER"} | |
} | |
} | |
{ | |
"id": "", | |
"version": 2, | |
"event": "object-shared", | |
"payload": {"id": "company-id", "type": "COMPANY"} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment