93745cfa6dcbe0b93d314c5c68dff808ff8039d8
Integration.md
... | ... | @@ -42,4 +42,45 @@ http://test.smartcentral.net/authorizations/new/?client_id=fancy_app&response_ty |
42 | 42 | * User info returns the following fields: |
43 | 43 | * subject (SmartCentral user unique id) |
44 | 44 | * name |
45 | - * email |
|
... | ... | \ No newline at end of file |
0 | + * email |
|
1 | + * |
|
2 | + |
|
3 | +### GraphQL |
|
4 | + |
|
5 | +SmartCentral has implemented GraphQL to support an extensible method for api access to centre data. |
|
6 | + |
|
7 | +#### Schema |
|
8 | +``` |
|
9 | +type service (id){ |
|
10 | + enrolments: [enrolment] |
|
11 | +} |
|
12 | + |
|
13 | +type enrolment{ |
|
14 | + our_child: child |
|
15 | + parent1: parent |
|
16 | + parent2: parent |
|
17 | + bookings: [booking] |
|
18 | +} |
|
19 | + |
|
20 | +type child{ |
|
21 | + child_id: String |
|
22 | + first_name: String |
|
23 | + last_name: String |
|
24 | + groups: [group] |
|
25 | +} |
|
26 | + |
|
27 | +type parent{ |
|
28 | + parent_id: String |
|
29 | + first_name: String |
|
30 | + last_name: String |
|
31 | + email: String |
|
32 | +} |
|
33 | + |
|
34 | + |
|
35 | +type booking{ |
|
36 | + day: String |
|
37 | + room: String |
|
38 | +} |
|
39 | + |
|
40 | +/* "day" is a 3 character abreviation of day of the week MON , TUE, WED , THU , FRI , SAT , SUN |
|
41 | +``` |
|
... | ... | \ No newline at end of file |