Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "jsonapi": {
- "version": "1.0"
- },
- "meta": {
- "totalPages": 1,
- "totalObjects": 2
- },
- "links": {
- "self": "http://local.swivel-api.com/in-home/booking/history",
- "first": "http://local.swivel-api.com/in-home/booking/history?page%5Bsize%5D=10&page%5Bnumber%5D=1",
- "prev": null,
- "next": null,
- "last": "http://local.swivel-api.com/in-home/booking/history?page%5Bsize%5D=10&page%5Bnumber%5D=1"
- },
- "data": [
- {
- "type": "InHomeBooking",
- "id": "1",
- "attributes": {
- "date_book": "2018-09-19",
- "notes": "sdsdsdsds",
- "your_hair_now": null,
- "your_inspo_look": null,
- "wash_needed": 0,
- "location": "ưewsdsdsd",
- "services_total": "10000.00",
- "stripe_charge_id": "213123131231",
- "first_name": "sfsadsfsd",
- "last_name": "fsdfsdfsdfds",
- "phone": "12313312313",
- "email": "aaa@gmail.com",
- "id": "1",
- "status": "1",
- "amount": "10000",
- "createdAt": {
- "date": "2018-09-19 08:34:23.000000",
- "timezone_type": 3,
- "timezone": "UTC"
- }
- },
- "relationships": {
- "user": {
- "id": "2",
- "type": "User"
- },
- "stylist": {
- "id": "1",
- "type": "InHomeStylist"
- },
- "style": {
- "id": "1",
- "type": "InHomeStyle"
- },
- "hair_type": {
- "id": "1",
- "type": "InHomeHairType"
- },
- "time_slot": {
- "id": "1",
- "type": "InHomeTimeSlot"
- }
- }
- },
- {
- "type": "InHomeBooking",
- "id": "2",
- "attributes": {
- "date_book": "2018-09-21",
- "notes": "sdsdsd",
- "your_hair_now": null,
- "your_inspo_look": null,
- "wash_needed": 0,
- "location": "sdsdsd",
- "services_total": "90000.00",
- "stripe_charge_id": "12244234",
- "first_name": "ZCDSDSDSA",
- "last_name": "adsdsfsdfsdfsd",
- "phone": "2324234",
- "email": "aaa@gmail.com",
- "id": "2",
- "status": "1",
- "amount": "90000",
- "createdAt": {
- "date": "2018-09-20 10:08:47.000000",
- "timezone_type": 3,
- "timezone": "UTC"
- }
- },
- "relationships": {
- "user": {
- "id": "2",
- "type": "User"
- },
- "stylist": {
- "id": "4",
- "type": "InHomeStylist"
- },
- "style": {
- "id": "4",
- "type": "InHomeStyle"
- },
- "hair_type": {
- "id": "4",
- "type": "InHomeHairType"
- },
- "time_slot": {
- "id": "4",
- "type": "InHomeTimeSlot"
- }
- }
- }
- ],
- "included": [
- {
- "type": "User",
- "id": "2",
- "attributes": {
- "id": "2",
- "hair_type_id": "",
- "username": "bnbnbnbnbn",
- "email": "aaa@gmail.com",
- "first_name": "aaa",
- "last_name": "aaa",
- "phone": "5464645654",
- "avatar": "http://192.168.2.40/local.swivel-api.com/public/photos/5ba1b922dd7bc.png",
- "roles": [],
- "fb_info": "",
- "salons": []
- },
- "relationships": []
- },
- {
- "type": "InHomeStylist",
- "id": "1",
- "attributes": {
- "name": "Stylist 0",
- "description": "Stylist description 0",
- "phone": null,
- "photo": null,
- "instagram_url": null,
- "rating": 0,
- "order": 1,
- "id": "1",
- "status": "2",
- "createdAt": "2018-09-19T01:24:35+00:00"
- }
- },
- {
- "type": "InHomeStyle",
- "id": "1",
- "attributes": {
- "name": "Blowouts",
- "description": null,
- "price": "100.00",
- "text_price": null,
- "image": null,
- "id": "1",
- "createdAt": ""
- }
- },
- {
- "type": "InHomeHairType",
- "id": "1",
- "attributes": {
- "name": "Straight to minimal wave",
- "texture": "Thin to thick",
- "growth_pattern": "Grows down from the scalp",
- "volume": "Lack of body or volume",
- "elasticity": "Marginal stretching with return",
- "porosity": "Compact to slightly raised cuticle. Less prone to frizz",
- "image": "",
- "id": "1",
- "createdAt": "2018-09-19T01:23:08+00:00"
- }
- },
- {
- "type": "InHomeTimeSlot",
- "id": "1",
- "attributes": {
- "name": "7:00am - 9:00am",
- "from": "07:00:00",
- "to": "09:00:00",
- "id": "1"
- }
- },
- {
- "type": "InHomeProduct",
- "data": [
- {
- "type": "InHomeProduct",
- "id": "4",
- "attributes": {
- "id": "4",
- "name": "Product4",
- "image": "https://placehold.jp/83b7d7/ffffff/400x400.png?text=product_04",
- "url": "https://placehold.jp/83b7d7/ffffff/400x400.png?text=product_04",
- "created_at": "2018-09-19T01:23:14+00:00"
- }
- },
- {
- "type": "InHomeProduct",
- "id": "5",
- "attributes": {
- "id": "5",
- "name": "Product5",
- "image": "https://placehold.jp/83b7d7/ffffff/400x400.png?text=product_05",
- "url": "https://placehold.jp/83b7d7/ffffff/400x400.png?text=product_05",
- "created_at": "2018-09-19T01:23:14+00:00"
- }
- }
- ]
- },
- {
- "type": "InHomeBookingPhoto",
- "data": [
- {
- "type": "InHomeBookingPhoto",
- "id": "10",
- "attributes": {
- "id": "10",
- "photo_url": "https://placehold.jp/3d4070/ffffff/500x600.png?text=bbbb",
- "created_at": "2018-09-19T02:36:15+00:00"
- }
- },
- {
- "type": "InHomeBookingPhoto",
- "id": "11",
- "attributes": {
- "id": "11",
- "photo_url": "https://placehold.jp/3d4070/ffffff/500x600.png?text=bbbb",
- "created_at": "2018-09-19T02:36:15+00:00"
- }
- },
- {
- "type": "InHomeBookingPhoto",
- "id": "12",
- "attributes": {
- "id": "12",
- "photo_url": "https://placehold.jp/3d4070/ffffff/500x600.png?text=ccc",
- "created_at": "2018-09-19T02:36:15+00:00"
- }
- }
- ]
- },
- {
- "type": "InHomeStylist",
- "id": "4",
- "attributes": {
- "name": "Stylist 3",
- "description": "Stylist description 3",
- "phone": null,
- "photo": null,
- "instagram_url": null,
- "rating": 0,
- "order": 4,
- "id": "4",
- "status": "2",
- "createdAt": "2018-09-19T01:24:35+00:00"
- }
- },
- {
- "type": "InHomeStyle",
- "id": "4",
- "attributes": {
- "name": "Extensions",
- "description": null,
- "price": "400.00",
- "text_price": null,
- "image": null,
- "id": "4",
- "createdAt": ""
- }
- },
- {
- "type": "InHomeHairType",
- "id": "4",
- "attributes": {
- "name": "Curl",
- "texture": "Thin to thick",
- "growth_pattern": "Grows down from the scalp",
- "volume": "Body, volume and bounce",
- "elasticity": "Moderate stretching with moderate return",
- "porosity": "Slightly raised to raised cuticle. Prone to fizz",
- "image": "",
- "id": "4",
- "createdAt": "2018-09-19T01:23:08+00:00"
- }
- },
- {
- "type": "InHomeTimeSlot",
- "id": "4",
- "attributes": {
- "name": "2:00pm - 5:00pm",
- "from": "14:00:00",
- "to": "17:00:00",
- "id": "4"
- }
- },
- {
- "type": "InHomeProduct",
- "data": [
- {
- "type": "InHomeProduct",
- "id": "7",
- "attributes": {
- "id": "7",
- "name": "Product7",
- "image": "https://placehold.jp/83b7d7/ffffff/400x400.png?text=product_07",
- "url": "https://placehold.jp/83b7d7/ffffff/400x400.png?text=product_07",
- "created_at": "2018-09-19T01:23:14+00:00"
- }
- },
- {
- "type": "InHomeProduct",
- "id": "8",
- "attributes": {
- "id": "8",
- "name": "Product8",
- "image": "https://placehold.jp/83b7d7/ffffff/400x400.png?text=product_08",
- "url": "https://placehold.jp/83b7d7/ffffff/400x400.png?text=product_08",
- "created_at": "2018-09-19T01:23:14+00:00"
- }
- }
- ]
- },
- {
- "type": "InHomeBookingPhoto",
- "data": [
- {
- "type": "InHomeBookingPhoto",
- "id": "15",
- "attributes": {
- "id": "15",
- "photo_url": "https://vnn-imgs-f.vgcloud.vn/2018/03/22/09/nhac-den-gai-dep-thanh-hoa-khong-the-quen-3-hot-girl-nuc-tieng-nay-14.jpg",
- "created_at": "2018-09-19T03:29:11+00:00"
- }
- }
- ]
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement