7c4df8c7812061443f71f5461afef4b0208c29c6
Integration.md
... | ... | @@ -54,74 +54,9 @@ Graphql is currently implemented with persistent token based authentication for |
54 | 54 | Contact us for end points and authentication when you are ready. |
55 | 55 | |
56 | 56 | ### Schema |
57 | -``` |
|
58 | -type service (id){ |
|
59 | - id: ID |
|
60 | - type: String |
|
61 | - name: String |
|
62 | - enrolments: [enrolment] |
|
63 | - sessions(date): [session] |
|
64 | -/* a time component may be optionally included "2020-08-06T17:00:01" in the parameter |
|
65 | -} |
|
66 | - |
|
67 | -type enrolment{ |
|
68 | - id: ID |
|
69 | - child: child |
|
70 | - parent1: parent |
|
71 | - parent2: parent |
|
72 | - bookings: [booking] |
|
73 | - startDate: String |
|
74 | - endDate: String |
|
75 | - status: String |
|
76 | - |
|
77 | -} |
|
78 | -/* Date strings are 10 char ISO dates in tz of centre |
|
79 | -/* Status values are : 'Exited' , 'Not yet submitted' , Active |
|
80 | -/* Status = 'Active' covers all internal values that dont |
|
81 | -/* fall in other 2 |
|
82 | - |
|
83 | -type child{ |
|
84 | - id: ID |
|
85 | - firstName: String |
|
86 | - lastName: String |
|
87 | - dateOfBirth : Date |
|
88 | - gender : string |
|
89 | - instructions: [instruction] |
|
90 | -} |
|
91 | - |
|
92 | -/* gender is a 1 char field 'm' or 'f' |
|
93 | - |
|
94 | -type parent{ |
|
95 | - id: ID |
|
96 | - firstName: String |
|
97 | - lastName: String |
|
98 | - email: String |
|
99 | - phone: String |
|
100 | -} |
|
101 | - |
|
102 | - |
|
103 | -type booking{ |
|
104 | - day: String |
|
105 | - room: String |
|
106 | -} |
|
107 | 57 | |
108 | -/* "day" is a 3 character abreviation of day of the week MON , TUE, WED , THU , FRI , SAT , SUN |
|
109 | -/* week starts on MON and ends on SUN |
|
58 | +Schema definition is [here](https://brave-sack.surge.sh/). |
|
110 | 59 | |
111 | -type instruction{ |
|
112 | - category: String |
|
113 | - description: String |
|
114 | -} |
|
115 | - |
|
116 | -type session{ |
|
117 | - enrolmentId: ID; |
|
118 | - room: String; |
|
119 | - startTime: String; |
|
120 | - endTime: String; |
|
121 | - absent: Boolean; |
|
122 | - } |
|
123 | -/* time is passed as hh:mm:ss in local time of the centre |
|
124 | -``` |
|
125 | 60 | |
126 | 61 | ### Sample Query 1 |
127 | 62 |