89203bad9aeda716c296f85cdbc9593b041eac03
Integration.md
... | ... | @@ -52,6 +52,9 @@ SmartCentral has implemented GraphQL to support an extensible method for api acc |
52 | 52 | ### Schema |
53 | 53 | ``` |
54 | 54 | type service (id){ |
55 | + id: ID |
|
56 | + type: String |
|
57 | + name: String |
|
55 | 58 | enrolments: [enrolment] |
56 | 59 | } |
57 | 60 | |
... | ... | @@ -60,7 +63,8 @@ type enrolment{ |
60 | 63 | parent1: parent |
61 | 64 | parent2: parent |
62 | 65 | bookings: [booking] |
63 | - start_date: String |
|
66 | + startDate: String |
|
67 | + endDate: String |
|
64 | 68 | status: String |
65 | 69 | } |
66 | 70 | /* Date strings are 10 char ISO dates in tz of centre |
... | ... | @@ -69,16 +73,16 @@ type enrolment{ |
69 | 73 | /* fall in other 2 |
70 | 74 | |
71 | 75 | type child{ |
72 | - child_id: String |
|
73 | - first_name: String |
|
74 | - last_name: String |
|
76 | + id: ID |
|
77 | + firstName: String |
|
78 | + lastName: String |
|
75 | 79 | groups: [group] |
76 | 80 | } |
77 | 81 | |
78 | 82 | type parent{ |
79 | - parent_id: String |
|
80 | - first_name: String |
|
81 | - last_name: String |
|
83 | + id: ID |
|
84 | + firstName: String |
|
85 | + lastName: String |
|
82 | 86 | email: String |
83 | 87 | } |
84 | 88 | |
... | ... | @@ -100,17 +104,18 @@ type booking{ |
100 | 104 | id |
101 | 105 | enrolments { |
102 | 106 | our_child { |
103 | - child_id |
|
107 | + id |
|
104 | 108 | firstName |
105 | 109 | lastName |
106 | 110 | } |
107 | 111 | parent1 { |
108 | - parent_id |
|
112 | + id |
|
109 | 113 | firstName |
110 | 114 | lastName |
111 | 115 | email |
112 | 116 | } |
113 | 117 | parent2 { |
118 | + id |
|
114 | 119 | firstName |
115 | 120 | lastName |
116 | 121 | email |