Skip to content

Instantly share code, notes, and snippets.

@damikdk
Last active September 26, 2017 16:22
Show Gist options
  • Save damikdk/cad12760fef3dd84af5a7e4ccc976471 to your computer and use it in GitHub Desktop.
Save damikdk/cad12760fef3dd84af5a7e4ccc976471 to your computer and use it in GitHub Desktop.
schedule api
для мобилок:
{
'22.09.2017': [
{ hour: 8, price: 200 },
{ hour: 9, price: 300 },
{ hour: 10, price: 400 },
...
{ hour: 23, price: 500 }
],
'23.09.2017': [
{ hour: 8, price: 200 },
...
{ hour: 23, price: 500 }
]
}
для веба:
{
'22.09.2017': [
{
hour: 8,
price: 200,
booking: {
"date": "2017-09-25T00:00:00",
"hours": 6,
"id": 47,
"playgroundId": 1,
"state": "Open",
"userId": 4
}
},
...
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment