forked from mirrors/easyappointments
Created resource examples for the API.
This commit is contained in:
parent
73c8728182
commit
364f6522e1
8 changed files with 146 additions and 4 deletions
16
test/php/engine/Api/V1/fixtures/admin.json
Normal file
16
test/php/engine/Api/V1/fixtures/admin.json
Normal 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
|
||||
}
|
||||
}
|
|
@ -2,11 +2,11 @@
|
|||
"id": 1,
|
||||
"hash": "asdf809a8sdf987a9d8f7",
|
||||
"book": "2016-07-08 12:57:00",
|
||||
"start": "2016-07-08 12:57:00",
|
||||
"end": "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.",
|
||||
"customerId": 56,
|
||||
"providerId": 4,
|
||||
"serviceId": 7,
|
||||
"notes": "These are some test notes.",
|
||||
"googleCalendarId": 9834
|
||||
"googleCalendarId": 134
|
||||
}
|
||||
|
|
12
test/php/engine/Api/V1/fixtures/customer.json
Normal file
12
test/php/engine/Api/V1/fixtures/customer.json
Normal 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."
|
||||
}
|
71
test/php/engine/Api/V1/fixtures/provider.json
Normal file
71
test/php/engine/Api/V1/fixtures/provider.json
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
20
test/php/engine/Api/V1/fixtures/secretary.json
Normal file
20
test/php/engine/Api/V1/fixtures/secretary.json
Normal 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
|
||||
}
|
||||
}
|
9
test/php/engine/Api/V1/fixtures/service.json
Normal file
9
test/php/engine/Api/V1/fixtures/service.json
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"id": 74,
|
||||
"name": "Male Haircut",
|
||||
"duration": 60,
|
||||
"price": 10.00,
|
||||
"currency": "Euro",
|
||||
"description": "Male haircut trends.",
|
||||
"categoryId": null
|
||||
}
|
5
test/php/engine/Api/V1/fixtures/setting.json
Normal file
5
test/php/engine/Api/V1/fixtures/setting.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"id": 1,
|
||||
"name": "book_advance_timeout",
|
||||
"value": "100"
|
||||
}
|
9
test/php/engine/Api/V1/fixtures/unavailability.json
Normal file
9
test/php/engine/Api/V1/fixtures/unavailability.json
Normal 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
|
||||
}
|
Loading…
Reference in a new issue