Created resource examples for the API.

This commit is contained in:
Alex Tselegidis 2016-07-09 08:24:08 +02:00
parent 73c8728182
commit 364f6522e1
8 changed files with 146 additions and 4 deletions

View file

@ -0,0 +1,16 @@
{
"id": 143,
"firstname": "Chris",
"lastname": "Doe",
"email": "chris@doe.com",
"mobile": "012345679-0",
"phone": "0123456789-1",
"address": "Some Str. 123",
"city": "Some City",
"zip": "12345",
"notes": "Test admin notes.",
"settings":{
"username":"chrisdoe",
"notifications": true
}
}

View file

@ -2,11 +2,11 @@
"id": 1, "id": 1,
"hash": "asdf809a8sdf987a9d8f7", "hash": "asdf809a8sdf987a9d8f7",
"book": "2016-07-08 12:57:00", "book": "2016-07-08 12:57:00",
"start": "2016-07-08 12:57:00", "start": "2016-07-08 18:00:00",
"end": "2016-07-08 12:57:00", "end": "2016-07-08 18:30:00",
"notes": "These are some test notes.",
"customerId": 56, "customerId": 56,
"providerId": 4, "providerId": 4,
"serviceId": 7, "serviceId": 7,
"notes": "These are some test notes.", "googleCalendarId": 134
"googleCalendarId": 9834
} }

View file

@ -0,0 +1,12 @@
{
"id": 97,
"firstname": "John",
"lastname": "Doe",
"email": "john@doe.com",
"mobile": "012345679-0",
"phone": "0123456789-1",
"address": "Some Str. 123",
"city": "Some City",
"zip": "12345",
"notes": "Test customer notes."
}

View file

@ -0,0 +1,71 @@
{
"id": 143,
"firstname": "Chloe",
"lastname": "Doe",
"email": "chloe@doe.com",
"mobile": "012345679-0",
"phone": "0123456789-1",
"address": "Some Str. 123",
"city": "Some City",
"zip": "12345",
"notes": "Test provider notes.",
"services": [
1,
5,
9
],
"settings":{
"username": "chloedoe",
"notifications":true,
"googleSync":true,
"googleCalendar": "calendar-id",
"googleToken": "23897dfasdf7a98gas98d9",
"syncFutureDays":10,
"syncPastDays":10,
"workingPlan":{
"monday":{
"start": "09:00",
"end": "18:00",
"breaks":[
{
"start": "14:30",
"end": "15:00"
}
]
},
"tuesday":{
"start": "09:00",
"end": "18:00",
"breaks":[
{
"start": "14:30",
"end": "15:00"
}
]
},
"wednesday":null,
"thursday":{
"start": "09:00",
"end": "18:00",
"breaks":[
{
"start": "14:30",
"end": "15:00"
}
]
},
"friday":{
"start": "09:00",
"end": "18:00",
"breaks":[
{
"start": "14:30",
"end": "15:00"
}
]
},
"saturday":null,
"sunday":null
}
}
}

View file

@ -0,0 +1,20 @@
{
"id": 143,
"firstname": "Chris",
"lastname": "Doe",
"email": "chris@doe.com",
"mobile": "012345679-0",
"phone": "0123456789-1",
"address": "Some Str. 123",
"city": "Some City",
"zip": "12345",
"notes": "Test secretary notes.",
"providers": [
53,
17
],
"settings":{
"username":"chrisdoe",
"notifications": true
}
}

View file

@ -0,0 +1,9 @@
{
"id": 74,
"name": "Male Haircut",
"duration": 60,
"price": 10.00,
"currency": "Euro",
"description": "Male haircut trends.",
"categoryId": null
}

View file

@ -0,0 +1,5 @@
{
"id": 1,
"name": "book_advance_timeout",
"value": "100"
}

View file

@ -0,0 +1,9 @@
{
"id": 1,
"book": "2016-07-08 12:57:00",
"start": "2016-07-08 18:00:00",
"end": "2016-07-08 18:30:00",
"notes": "These are some test notes.",
"providerId": 4,
"googleCalendarId": 474
}