Last active
April 16, 2016 08:42
-
-
Save vitalk/761c0081b2cab667ce7be931c296cab8 to your computer and use it in GitHub Desktop.
Refine schema
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
{ | |
"data": { | |
"type": "account", | |
"attributes": { | |
"name": "Виталий", | |
"phone": "+375 29 335-86-79" | |
} | |
} | |
} |
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
{ | |
"data": [ | |
{ | |
"id": 1, | |
"type": "food-vendor", | |
"attributes": { | |
"title": "Пицца Темпо", | |
"url": "http://www.pizzatempo.by/menu/obed.html", | |
"minOrderCost": 120000, | |
"schedule": { | |
"1": ["10:00", "22:00"], | |
"2": ["10:00", "22:00"], | |
"3": ["10:00", "22:00"], | |
"4": ["10:00", "22:00"], | |
"5": ["10:00", "2:00"], | |
"6": ["10:00", "2:00"], | |
"7": ["10:00", "22:00"], | |
}, | |
"phones": [ | |
"+375 17 292-11-11", | |
"+375 29 192-11-11", | |
"+375 29 862-11-11", | |
"+375 25 792-11-11" | |
] | |
}, | |
"relationships": { | |
"products": { | |
"data": [ | |
{"id": 1, "type": "product"}, | |
{"id": 2, "type": "product"}, | |
{"id": 3, "type": "product"}, | |
{"id": 4, "type": "product"}, | |
{"id": 5, "type": "product"}, | |
] | |
} | |
} | |
} | |
] | |
} |
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
{ | |
"data": { | |
"type": "order", | |
"attributes": { | |
"location": "Место доставки заказа", | |
"time": "15:00", | |
"active": true, | |
}, | |
"relationships": { | |
"food-vendor": { | |
"data": {"type": "food-vendor", "id": 1} | |
}, | |
"manager": { | |
"data": {"type": "account", "id": 42} | |
}, | |
"portions": { | |
"data": [ | |
{"type": "portion", "id": 1}, | |
{"type": "portion", "id": 2}, | |
] | |
}, | |
} | |
} | |
} | |
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
{ | |
"data": { | |
"type": "portion", | |
"attributes": { | |
"text": "комментарии к покупке", | |
"cost": 10000, | |
"paid": false | |
}, | |
"relationships": { | |
"order": { | |
"data": {"type": "order", "id": 42} | |
}, | |
"owner": { | |
"data": {"type": "account", "id": 1} | |
}, | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment