commonlit-clever-ruby 2.1.6.beta1 → 2.1.6.beta3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -1
- data/Gemfile.lock +37 -29
- data/README.md +994 -61
- data/clever-ruby.gemspec +6 -13
- data/commonlit-clever-ruby-2.1.6.beta1.gem +0 -0
- data/commonlit-clever-ruby-2.1.6.beta2.gem +0 -0
- data/docs/AdminName.md +0 -1
- data/docs/BadRequest.md +0 -1
- data/docs/Contact.md +1 -2
- data/docs/ContactObject.md +0 -1
- data/docs/ContactResponse.md +0 -1
- data/docs/ContactsCreated.md +2 -3
- data/docs/ContactsDeleted.md +2 -3
- data/docs/ContactsResponse.md +0 -1
- data/docs/ContactsUpdated.md +2 -3
- data/docs/Course.md +1 -2
- data/docs/CourseObject.md +0 -1
- data/docs/CourseResponse.md +0 -1
- data/docs/CoursesCreated.md +2 -3
- data/docs/CoursesDeleted.md +2 -3
- data/docs/CoursesResponse.md +0 -1
- data/docs/CoursesUpdated.md +2 -3
- data/docs/Credentials.md +0 -1
- data/docs/DataApi.md +2784 -0
- data/docs/District.md +9 -10
- data/docs/DistrictAdmin.md +2 -3
- data/docs/DistrictAdminObject.md +0 -1
- data/docs/DistrictAdminResponse.md +0 -1
- data/docs/DistrictAdminsResponse.md +0 -1
- data/docs/DistrictObject.md +0 -1
- data/docs/DistrictResponse.md +0 -1
- data/docs/DistrictadminsCreated.md +2 -3
- data/docs/DistrictadminsDeleted.md +2 -3
- data/docs/DistrictadminsUpdated.md +2 -3
- data/docs/DistrictsCreated.md +2 -3
- data/docs/DistrictsDeleted.md +2 -3
- data/docs/DistrictsResponse.md +0 -1
- data/docs/DistrictsUpdated.md +2 -3
- data/docs/Event.md +2 -3
- data/docs/EventResponse.md +0 -1
- data/docs/EventsApi.md +1 -4
- data/docs/EventsResponse.md +0 -1
- data/docs/InternalError.md +0 -1
- data/docs/Link.md +0 -1
- data/docs/Location.md +2 -3
- data/docs/Name.md +1 -2
- data/docs/NotFound.md +0 -1
- data/docs/Principal.md +1 -2
- data/docs/School.md +3 -4
- data/docs/SchoolAdmin.md +3 -4
- data/docs/SchoolAdminObject.md +0 -1
- data/docs/SchoolAdminResponse.md +0 -1
- data/docs/SchoolAdminsResponse.md +0 -1
- data/docs/SchoolEnrollment.md +1 -2
- data/docs/SchoolObject.md +0 -1
- data/docs/SchoolResponse.md +0 -1
- data/docs/SchooladminsCreated.md +2 -3
- data/docs/SchooladminsDeleted.md +2 -3
- data/docs/SchooladminsUpdated.md +2 -3
- data/docs/SchoolsCreated.md +2 -3
- data/docs/SchoolsDeleted.md +2 -3
- data/docs/SchoolsResponse.md +0 -1
- data/docs/SchoolsUpdated.md +2 -3
- data/docs/Section.md +2 -3
- data/docs/SectionObject.md +0 -1
- data/docs/SectionResponse.md +0 -1
- data/docs/SectionsCreated.md +2 -3
- data/docs/SectionsDeleted.md +2 -3
- data/docs/SectionsResponse.md +0 -1
- data/docs/SectionsUpdated.md +2 -3
- data/docs/Student.md +3 -4
- data/docs/StudentObject.md +0 -1
- data/docs/StudentResponse.md +0 -1
- data/docs/StudentsCreated.md +2 -3
- data/docs/StudentsDeleted.md +2 -3
- data/docs/StudentsResponse.md +0 -1
- data/docs/StudentsUpdated.md +2 -3
- data/docs/Teacher.md +2 -3
- data/docs/TeacherObject.md +0 -1
- data/docs/TeacherResponse.md +0 -1
- data/docs/TeachersCreated.md +2 -3
- data/docs/TeachersDeleted.md +2 -3
- data/docs/TeachersResponse.md +0 -1
- data/docs/TeachersUpdated.md +2 -3
- data/docs/Term.md +2 -3
- data/docs/TermObject.md +0 -1
- data/docs/TermResponse.md +0 -1
- data/docs/TermsCreated.md +2 -3
- data/docs/TermsDeleted.md +2 -3
- data/docs/TermsResponse.md +0 -1
- data/docs/TermsUpdated.md +2 -3
- data/git_push.sh +55 -0
- data/lib/clever-ruby/api/data_api.rb +2999 -0
- data/lib/clever-ruby/api/events_api.rb +25 -20
- data/lib/clever-ruby/api_error.rb +23 -4
- data/lib/clever-ruby/configuration.rb +5 -9
- data/lib/clever-ruby/models/admin_name.rb +46 -22
- data/lib/clever-ruby/models/bad_request.rb +42 -20
- data/lib/clever-ruby/models/contact.rb +83 -55
- data/lib/clever-ruby/models/contact_object.rb +42 -20
- data/lib/clever-ruby/models/contact_response.rb +42 -20
- data/lib/clever-ruby/models/contacts_response.rb +44 -22
- data/lib/clever-ruby/models/course.rb +60 -36
- data/lib/clever-ruby/models/course_object.rb +42 -20
- data/lib/clever-ruby/models/course_response.rb +42 -20
- data/lib/clever-ruby/models/courses_response.rb +44 -22
- data/lib/clever-ruby/models/credentials.rb +42 -20
- data/lib/clever-ruby/models/district.rb +122 -94
- data/lib/clever-ruby/models/district_admin.rb +67 -44
- data/lib/clever-ruby/models/district_admin_object.rb +42 -20
- data/lib/clever-ruby/models/district_admin_response.rb +42 -20
- data/lib/clever-ruby/models/district_admins_response.rb +44 -22
- data/lib/clever-ruby/models/district_object.rb +42 -20
- data/lib/clever-ruby/models/district_response.rb +42 -20
- data/lib/clever-ruby/models/districts_response.rb +44 -22
- data/lib/clever-ruby/models/event.rb +60 -33
- data/lib/clever-ruby/models/event_response.rb +42 -20
- data/lib/clever-ruby/models/events_response.rb +44 -22
- data/lib/clever-ruby/models/internal_error.rb +42 -20
- data/lib/clever-ruby/models/link.rb +47 -25
- data/lib/clever-ruby/models/location.rb +73 -45
- data/lib/clever-ruby/models/name.rb +58 -33
- data/lib/clever-ruby/models/not_found.rb +42 -20
- data/lib/clever-ruby/models/principal.rb +55 -31
- data/lib/clever-ruby/models/school.rb +108 -80
- data/lib/clever-ruby/models/school_admin.rb +85 -61
- data/lib/clever-ruby/models/school_admin_object.rb +42 -20
- data/lib/clever-ruby/models/school_admin_response.rb +42 -20
- data/lib/clever-ruby/models/school_admins_response.rb +44 -22
- data/lib/clever-ruby/models/school_enrollment.rb +56 -34
- data/lib/clever-ruby/models/school_object.rb +42 -20
- data/lib/clever-ruby/models/school_response.rb +42 -20
- data/lib/clever-ruby/models/schools_response.rb +44 -22
- data/lib/clever-ruby/models/section.rb +104 -75
- data/lib/clever-ruby/models/section_object.rb +42 -20
- data/lib/clever-ruby/models/section_response.rb +42 -20
- data/lib/clever-ruby/models/sections_response.rb +44 -22
- data/lib/clever-ruby/models/student.rb +147 -126
- data/lib/clever-ruby/models/student_object.rb +42 -20
- data/lib/clever-ruby/models/student_response.rb +42 -20
- data/lib/clever-ruby/models/students_response.rb +44 -22
- data/lib/clever-ruby/models/teacher.rb +89 -63
- data/lib/clever-ruby/models/teacher_object.rb +42 -20
- data/lib/clever-ruby/models/teacher_response.rb +42 -20
- data/lib/clever-ruby/models/teachers_response.rb +44 -22
- data/lib/clever-ruby/models/term.rb +69 -44
- data/lib/clever-ruby/models/term_object.rb +42 -20
- data/lib/clever-ruby/models/term_response.rb +42 -20
- data/lib/clever-ruby/models/terms_response.rb +44 -22
- data/lib/clever-ruby/version.rb +4 -5
- data/lib/clever-ruby.rb +4 -14
- data/override/README-extension.md +1 -1
- data/override/override.sh +3 -0
- data/spec/api/data_api_spec.rb +671 -0
- data/spec/api/events_api_spec.rb +4 -3
- data/spec/api_client_spec.rb +21 -3
- data/spec/spec_helper.rb +4 -3
- metadata +27 -180
- data/docs/ContactsApi.md +0 -231
- data/docs/CoursesApi.md +0 -231
- data/docs/DistrictAdminsApi.md +0 -171
- data/docs/DistrictsApi.md +0 -113
- data/docs/SchoolAdminsApi.md +0 -231
- data/docs/SchoolsApi.md +0 -351
- data/docs/SectionsApi.md +0 -499
- data/docs/StudentsApi.md +0 -463
- data/docs/TeachersApi.md +0 -403
- data/docs/TermsApi.md +0 -231
- data/lib/clever-ruby/api/contacts_api.rb +0 -241
- data/lib/clever-ruby/api/courses_api.rb +0 -241
- data/lib/clever-ruby/api/district_admins_api.rb +0 -182
- data/lib/clever-ruby/api/districts_api.rb +0 -123
- data/lib/clever-ruby/api/school_admins_api.rb +0 -241
- data/lib/clever-ruby/api/schools_api.rb +0 -359
- data/lib/clever-ruby/api/sections_api.rb +0 -500
- data/lib/clever-ruby/api/students_api.rb +0 -468
- data/lib/clever-ruby/api/teachers_api.rb +0 -409
- data/lib/clever-ruby/api/terms_api.rb +0 -241
- data/spec/api/contacts_api_spec.rb +0 -84
- data/spec/api/courses_api_spec.rb +0 -84
- data/spec/api/district_admins_api_spec.rb +0 -70
- data/spec/api/districts_api_spec.rb +0 -56
- data/spec/api/school_admins_api_spec.rb +0 -84
- data/spec/api/schools_api_spec.rb +0 -112
- data/spec/api/sections_api_spec.rb +0 -142
- data/spec/api/students_api_spec.rb +0 -137
- data/spec/api/teachers_api_spec.rb +0 -123
- data/spec/api/terms_api_spec.rb +0 -84
@@ -0,0 +1,671 @@
|
|
1
|
+
=begin
|
2
|
+
#Clever API
|
3
|
+
|
4
|
+
#The Clever API
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.1.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.37
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for Clever::DataApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'DataApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = Clever::DataApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of DataApi' do
|
30
|
+
it 'should create an instance of DataApi' do
|
31
|
+
expect(@instance).to be_instance_of(Clever::DataApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for get_contact
|
36
|
+
# Returns a specific student contact
|
37
|
+
# @param id
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [ContactResponse]
|
40
|
+
describe 'get_contact test' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for get_contacts
|
47
|
+
# Returns a list of student contacts
|
48
|
+
# @param [Hash] opts the optional parameters
|
49
|
+
# @option opts [Integer] :limit
|
50
|
+
# @option opts [String] :starting_after
|
51
|
+
# @option opts [String] :ending_before
|
52
|
+
# @option opts [String] :count
|
53
|
+
# @return [ContactsResponse]
|
54
|
+
describe 'get_contacts test' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
# unit tests for get_contacts_for_student
|
61
|
+
# Returns the contacts for a student
|
62
|
+
# @param id
|
63
|
+
# @param [Hash] opts the optional parameters
|
64
|
+
# @option opts [Integer] :limit
|
65
|
+
# @option opts [String] :starting_after
|
66
|
+
# @option opts [String] :ending_before
|
67
|
+
# @return [ContactsResponse]
|
68
|
+
describe 'get_contacts_for_student test' do
|
69
|
+
it 'should work' do
|
70
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
# unit tests for get_course
|
75
|
+
# Returns a specific course
|
76
|
+
# @param id
|
77
|
+
# @param [Hash] opts the optional parameters
|
78
|
+
# @return [CourseResponse]
|
79
|
+
describe 'get_course test' do
|
80
|
+
it 'should work' do
|
81
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
# unit tests for get_course_for_section
|
86
|
+
# Returns the course for a section
|
87
|
+
# @param id
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @return [CourseResponse]
|
90
|
+
describe 'get_course_for_section test' do
|
91
|
+
it 'should work' do
|
92
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
# unit tests for get_courses
|
97
|
+
# Returns a list of courses
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @option opts [Integer] :limit
|
100
|
+
# @option opts [String] :starting_after
|
101
|
+
# @option opts [String] :ending_before
|
102
|
+
# @option opts [String] :count
|
103
|
+
# @return [CoursesResponse]
|
104
|
+
describe 'get_courses test' do
|
105
|
+
it 'should work' do
|
106
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
# unit tests for get_district
|
111
|
+
# Returns a specific district
|
112
|
+
# @param id
|
113
|
+
# @param [Hash] opts the optional parameters
|
114
|
+
# @return [DistrictResponse]
|
115
|
+
describe 'get_district test' do
|
116
|
+
it 'should work' do
|
117
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
# unit tests for get_district_admin
|
122
|
+
# Returns a specific district admin
|
123
|
+
# @param id
|
124
|
+
# @param [Hash] opts the optional parameters
|
125
|
+
# @return [DistrictAdminResponse]
|
126
|
+
describe 'get_district_admin test' do
|
127
|
+
it 'should work' do
|
128
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
# unit tests for get_district_admins
|
133
|
+
# Returns a list of district admins
|
134
|
+
# @param [Hash] opts the optional parameters
|
135
|
+
# @option opts [Integer] :limit
|
136
|
+
# @option opts [String] :starting_after
|
137
|
+
# @option opts [String] :ending_before
|
138
|
+
# @option opts [String] :count
|
139
|
+
# @return [DistrictAdminsResponse]
|
140
|
+
describe 'get_district_admins test' do
|
141
|
+
it 'should work' do
|
142
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
# unit tests for get_district_for_contact
|
147
|
+
# Returns the district for a student contact
|
148
|
+
# @param id
|
149
|
+
# @param [Hash] opts the optional parameters
|
150
|
+
# @return [DistrictResponse]
|
151
|
+
describe 'get_district_for_contact test' do
|
152
|
+
it 'should work' do
|
153
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
157
|
+
# unit tests for get_district_for_course
|
158
|
+
# Returns the district for a course
|
159
|
+
# @param id
|
160
|
+
# @param [Hash] opts the optional parameters
|
161
|
+
# @return [DistrictResponse]
|
162
|
+
describe 'get_district_for_course test' do
|
163
|
+
it 'should work' do
|
164
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
# unit tests for get_district_for_district_admin
|
169
|
+
# Returns the district for a district admin
|
170
|
+
# @param id
|
171
|
+
# @param [Hash] opts the optional parameters
|
172
|
+
# @return [DistrictResponse]
|
173
|
+
describe 'get_district_for_district_admin test' do
|
174
|
+
it 'should work' do
|
175
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
# unit tests for get_district_for_school
|
180
|
+
# Returns the district for a school
|
181
|
+
# @param id
|
182
|
+
# @param [Hash] opts the optional parameters
|
183
|
+
# @return [DistrictResponse]
|
184
|
+
describe 'get_district_for_school test' do
|
185
|
+
it 'should work' do
|
186
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
# unit tests for get_district_for_school_admin
|
191
|
+
# Returns the district for a school admin
|
192
|
+
# @param id
|
193
|
+
# @param [Hash] opts the optional parameters
|
194
|
+
# @return [DistrictResponse]
|
195
|
+
describe 'get_district_for_school_admin test' do
|
196
|
+
it 'should work' do
|
197
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
201
|
+
# unit tests for get_district_for_section
|
202
|
+
# Returns the district for a section
|
203
|
+
# @param id
|
204
|
+
# @param [Hash] opts the optional parameters
|
205
|
+
# @return [DistrictResponse]
|
206
|
+
describe 'get_district_for_section test' do
|
207
|
+
it 'should work' do
|
208
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
212
|
+
# unit tests for get_district_for_student
|
213
|
+
# Returns the district for a student
|
214
|
+
# @param id
|
215
|
+
# @param [Hash] opts the optional parameters
|
216
|
+
# @return [DistrictResponse]
|
217
|
+
describe 'get_district_for_student test' do
|
218
|
+
it 'should work' do
|
219
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
223
|
+
# unit tests for get_district_for_teacher
|
224
|
+
# Returns the district for a teacher
|
225
|
+
# @param id
|
226
|
+
# @param [Hash] opts the optional parameters
|
227
|
+
# @return [DistrictResponse]
|
228
|
+
describe 'get_district_for_teacher test' do
|
229
|
+
it 'should work' do
|
230
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
234
|
+
# unit tests for get_district_for_term
|
235
|
+
# Returns the district for a term
|
236
|
+
# @param id
|
237
|
+
# @param [Hash] opts the optional parameters
|
238
|
+
# @return [DistrictResponse]
|
239
|
+
describe 'get_district_for_term test' do
|
240
|
+
it 'should work' do
|
241
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
242
|
+
end
|
243
|
+
end
|
244
|
+
|
245
|
+
# unit tests for get_districts
|
246
|
+
# Returns a list of districts. In practice this will only return the one district associated with the bearer token
|
247
|
+
# @param [Hash] opts the optional parameters
|
248
|
+
# @option opts [String] :count
|
249
|
+
# @return [DistrictsResponse]
|
250
|
+
describe 'get_districts test' do
|
251
|
+
it 'should work' do
|
252
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
253
|
+
end
|
254
|
+
end
|
255
|
+
|
256
|
+
# unit tests for get_school
|
257
|
+
# Returns a specific school
|
258
|
+
# @param id
|
259
|
+
# @param [Hash] opts the optional parameters
|
260
|
+
# @return [SchoolResponse]
|
261
|
+
describe 'get_school test' do
|
262
|
+
it 'should work' do
|
263
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
264
|
+
end
|
265
|
+
end
|
266
|
+
|
267
|
+
# unit tests for get_school_admin
|
268
|
+
# Returns a specific school admin
|
269
|
+
# @param id
|
270
|
+
# @param [Hash] opts the optional parameters
|
271
|
+
# @return [SchoolAdminResponse]
|
272
|
+
describe 'get_school_admin test' do
|
273
|
+
it 'should work' do
|
274
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
275
|
+
end
|
276
|
+
end
|
277
|
+
|
278
|
+
# unit tests for get_school_admins
|
279
|
+
# Returns a list of school admins
|
280
|
+
# @param [Hash] opts the optional parameters
|
281
|
+
# @option opts [Integer] :limit
|
282
|
+
# @option opts [String] :starting_after
|
283
|
+
# @option opts [String] :ending_before
|
284
|
+
# @option opts [String] :count
|
285
|
+
# @return [SchoolAdminsResponse]
|
286
|
+
describe 'get_school_admins test' do
|
287
|
+
it 'should work' do
|
288
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
289
|
+
end
|
290
|
+
end
|
291
|
+
|
292
|
+
# unit tests for get_school_for_section
|
293
|
+
# Returns the school for a section
|
294
|
+
# @param id
|
295
|
+
# @param [Hash] opts the optional parameters
|
296
|
+
# @return [SchoolResponse]
|
297
|
+
describe 'get_school_for_section test' do
|
298
|
+
it 'should work' do
|
299
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
300
|
+
end
|
301
|
+
end
|
302
|
+
|
303
|
+
# unit tests for get_school_for_student
|
304
|
+
# Returns the primary school for a student
|
305
|
+
# @param id
|
306
|
+
# @param [Hash] opts the optional parameters
|
307
|
+
# @return [SchoolResponse]
|
308
|
+
describe 'get_school_for_student test' do
|
309
|
+
it 'should work' do
|
310
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
311
|
+
end
|
312
|
+
end
|
313
|
+
|
314
|
+
# unit tests for get_school_for_teacher
|
315
|
+
# Retrieves school info for a teacher.
|
316
|
+
# @param id
|
317
|
+
# @param [Hash] opts the optional parameters
|
318
|
+
# @return [SchoolResponse]
|
319
|
+
describe 'get_school_for_teacher test' do
|
320
|
+
it 'should work' do
|
321
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
322
|
+
end
|
323
|
+
end
|
324
|
+
|
325
|
+
# unit tests for get_schools
|
326
|
+
# Returns a list of schools
|
327
|
+
# @param [Hash] opts the optional parameters
|
328
|
+
# @option opts [Integer] :limit
|
329
|
+
# @option opts [String] :starting_after
|
330
|
+
# @option opts [String] :ending_before
|
331
|
+
# @option opts [String] :count
|
332
|
+
# @return [SchoolsResponse]
|
333
|
+
describe 'get_schools test' do
|
334
|
+
it 'should work' do
|
335
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
336
|
+
end
|
337
|
+
end
|
338
|
+
|
339
|
+
# unit tests for get_schools_for_school_admin
|
340
|
+
# Returns the schools for a school admin
|
341
|
+
# @param id
|
342
|
+
# @param [Hash] opts the optional parameters
|
343
|
+
# @option opts [Integer] :limit
|
344
|
+
# @option opts [String] :starting_after
|
345
|
+
# @option opts [String] :ending_before
|
346
|
+
# @return [SchoolsResponse]
|
347
|
+
describe 'get_schools_for_school_admin test' do
|
348
|
+
it 'should work' do
|
349
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
350
|
+
end
|
351
|
+
end
|
352
|
+
|
353
|
+
# unit tests for get_schools_for_student
|
354
|
+
# Returns the schools for a student
|
355
|
+
# @param id
|
356
|
+
# @param [Hash] opts the optional parameters
|
357
|
+
# @option opts [Integer] :limit
|
358
|
+
# @option opts [String] :starting_after
|
359
|
+
# @option opts [String] :ending_before
|
360
|
+
# @return [SchoolsResponse]
|
361
|
+
describe 'get_schools_for_student test' do
|
362
|
+
it 'should work' do
|
363
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
364
|
+
end
|
365
|
+
end
|
366
|
+
|
367
|
+
# unit tests for get_schools_for_teacher
|
368
|
+
# Returns the schools for a teacher
|
369
|
+
# @param id
|
370
|
+
# @param [Hash] opts the optional parameters
|
371
|
+
# @option opts [Integer] :limit
|
372
|
+
# @option opts [String] :starting_after
|
373
|
+
# @option opts [String] :ending_before
|
374
|
+
# @return [SchoolsResponse]
|
375
|
+
describe 'get_schools_for_teacher test' do
|
376
|
+
it 'should work' do
|
377
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
378
|
+
end
|
379
|
+
end
|
380
|
+
|
381
|
+
# unit tests for get_section
|
382
|
+
# Returns a specific section
|
383
|
+
# @param id
|
384
|
+
# @param [Hash] opts the optional parameters
|
385
|
+
# @return [SectionResponse]
|
386
|
+
describe 'get_section test' do
|
387
|
+
it 'should work' do
|
388
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
389
|
+
end
|
390
|
+
end
|
391
|
+
|
392
|
+
# unit tests for get_sections
|
393
|
+
# Returns a list of sections
|
394
|
+
# @param [Hash] opts the optional parameters
|
395
|
+
# @option opts [Integer] :limit
|
396
|
+
# @option opts [String] :starting_after
|
397
|
+
# @option opts [String] :ending_before
|
398
|
+
# @option opts [String] :count
|
399
|
+
# @return [SectionsResponse]
|
400
|
+
describe 'get_sections test' do
|
401
|
+
it 'should work' do
|
402
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
403
|
+
end
|
404
|
+
end
|
405
|
+
|
406
|
+
# unit tests for get_sections_for_course
|
407
|
+
# Returns the sections for a Courses
|
408
|
+
# @param id
|
409
|
+
# @param [Hash] opts the optional parameters
|
410
|
+
# @option opts [Integer] :limit
|
411
|
+
# @option opts [String] :starting_after
|
412
|
+
# @option opts [String] :ending_before
|
413
|
+
# @return [SectionsResponse]
|
414
|
+
describe 'get_sections_for_course test' do
|
415
|
+
it 'should work' do
|
416
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
417
|
+
end
|
418
|
+
end
|
419
|
+
|
420
|
+
# unit tests for get_sections_for_school
|
421
|
+
# Returns the sections for a school
|
422
|
+
# @param id
|
423
|
+
# @param [Hash] opts the optional parameters
|
424
|
+
# @option opts [Integer] :limit
|
425
|
+
# @option opts [String] :starting_after
|
426
|
+
# @option opts [String] :ending_before
|
427
|
+
# @return [SectionsResponse]
|
428
|
+
describe 'get_sections_for_school test' do
|
429
|
+
it 'should work' do
|
430
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
431
|
+
end
|
432
|
+
end
|
433
|
+
|
434
|
+
# unit tests for get_sections_for_student
|
435
|
+
# Returns the sections for a student
|
436
|
+
# @param id
|
437
|
+
# @param [Hash] opts the optional parameters
|
438
|
+
# @option opts [Integer] :limit
|
439
|
+
# @option opts [String] :starting_after
|
440
|
+
# @option opts [String] :ending_before
|
441
|
+
# @return [SectionsResponse]
|
442
|
+
describe 'get_sections_for_student test' do
|
443
|
+
it 'should work' do
|
444
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
445
|
+
end
|
446
|
+
end
|
447
|
+
|
448
|
+
# unit tests for get_sections_for_teacher
|
449
|
+
# Returns the sections for a teacher
|
450
|
+
# @param id
|
451
|
+
# @param [Hash] opts the optional parameters
|
452
|
+
# @option opts [Integer] :limit
|
453
|
+
# @option opts [String] :starting_after
|
454
|
+
# @option opts [String] :ending_before
|
455
|
+
# @return [SectionsResponse]
|
456
|
+
describe 'get_sections_for_teacher test' do
|
457
|
+
it 'should work' do
|
458
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
459
|
+
end
|
460
|
+
end
|
461
|
+
|
462
|
+
# unit tests for get_sections_for_term
|
463
|
+
# Returns the sections for a term
|
464
|
+
# @param id
|
465
|
+
# @param [Hash] opts the optional parameters
|
466
|
+
# @option opts [Integer] :limit
|
467
|
+
# @option opts [String] :starting_after
|
468
|
+
# @option opts [String] :ending_before
|
469
|
+
# @return [SectionsResponse]
|
470
|
+
describe 'get_sections_for_term test' do
|
471
|
+
it 'should work' do
|
472
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
473
|
+
end
|
474
|
+
end
|
475
|
+
|
476
|
+
# unit tests for get_student
|
477
|
+
# Returns a specific student
|
478
|
+
# @param id
|
479
|
+
# @param [Hash] opts the optional parameters
|
480
|
+
# @return [StudentResponse]
|
481
|
+
describe 'get_student test' do
|
482
|
+
it 'should work' do
|
483
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
484
|
+
end
|
485
|
+
end
|
486
|
+
|
487
|
+
# unit tests for get_students
|
488
|
+
# Returns a list of students
|
489
|
+
# @param [Hash] opts the optional parameters
|
490
|
+
# @option opts [Integer] :limit
|
491
|
+
# @option opts [String] :starting_after
|
492
|
+
# @option opts [String] :ending_before
|
493
|
+
# @option opts [String] :count
|
494
|
+
# @return [StudentsResponse]
|
495
|
+
describe 'get_students test' do
|
496
|
+
it 'should work' do
|
497
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
498
|
+
end
|
499
|
+
end
|
500
|
+
|
501
|
+
# unit tests for get_students_for_contact
|
502
|
+
# Returns the students for a student contact
|
503
|
+
# @param id
|
504
|
+
# @param [Hash] opts the optional parameters
|
505
|
+
# @option opts [Integer] :limit
|
506
|
+
# @option opts [String] :starting_after
|
507
|
+
# @option opts [String] :ending_before
|
508
|
+
# @return [StudentsResponse]
|
509
|
+
describe 'get_students_for_contact test' do
|
510
|
+
it 'should work' do
|
511
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
512
|
+
end
|
513
|
+
end
|
514
|
+
|
515
|
+
# unit tests for get_students_for_school
|
516
|
+
# Returns the students for a school
|
517
|
+
# @param id
|
518
|
+
# @param [Hash] opts the optional parameters
|
519
|
+
# @option opts [Integer] :limit
|
520
|
+
# @option opts [String] :starting_after
|
521
|
+
# @option opts [String] :ending_before
|
522
|
+
# @return [StudentsResponse]
|
523
|
+
describe 'get_students_for_school test' do
|
524
|
+
it 'should work' do
|
525
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
526
|
+
end
|
527
|
+
end
|
528
|
+
|
529
|
+
# unit tests for get_students_for_section
|
530
|
+
# Returns the students for a section
|
531
|
+
# @param id
|
532
|
+
# @param [Hash] opts the optional parameters
|
533
|
+
# @option opts [Integer] :limit
|
534
|
+
# @option opts [String] :starting_after
|
535
|
+
# @option opts [String] :ending_before
|
536
|
+
# @return [StudentsResponse]
|
537
|
+
describe 'get_students_for_section test' do
|
538
|
+
it 'should work' do
|
539
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
540
|
+
end
|
541
|
+
end
|
542
|
+
|
543
|
+
# unit tests for get_students_for_teacher
|
544
|
+
# Returns the students for a teacher
|
545
|
+
# @param id
|
546
|
+
# @param [Hash] opts the optional parameters
|
547
|
+
# @option opts [Integer] :limit
|
548
|
+
# @option opts [String] :starting_after
|
549
|
+
# @option opts [String] :ending_before
|
550
|
+
# @return [StudentsResponse]
|
551
|
+
describe 'get_students_for_teacher test' do
|
552
|
+
it 'should work' do
|
553
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
554
|
+
end
|
555
|
+
end
|
556
|
+
|
557
|
+
# unit tests for get_teacher
|
558
|
+
# Returns a specific teacher
|
559
|
+
# @param id
|
560
|
+
# @param [Hash] opts the optional parameters
|
561
|
+
# @return [TeacherResponse]
|
562
|
+
describe 'get_teacher test' do
|
563
|
+
it 'should work' do
|
564
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
565
|
+
end
|
566
|
+
end
|
567
|
+
|
568
|
+
# unit tests for get_teacher_for_section
|
569
|
+
# Returns the primary teacher for a section
|
570
|
+
# @param id
|
571
|
+
# @param [Hash] opts the optional parameters
|
572
|
+
# @return [TeacherResponse]
|
573
|
+
describe 'get_teacher_for_section test' do
|
574
|
+
it 'should work' do
|
575
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
576
|
+
end
|
577
|
+
end
|
578
|
+
|
579
|
+
# unit tests for get_teachers
|
580
|
+
# Returns a list of teachers
|
581
|
+
# @param [Hash] opts the optional parameters
|
582
|
+
# @option opts [Integer] :limit
|
583
|
+
# @option opts [String] :starting_after
|
584
|
+
# @option opts [String] :ending_before
|
585
|
+
# @option opts [String] :count
|
586
|
+
# @return [TeachersResponse]
|
587
|
+
describe 'get_teachers test' do
|
588
|
+
it 'should work' do
|
589
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
590
|
+
end
|
591
|
+
end
|
592
|
+
|
593
|
+
# unit tests for get_teachers_for_school
|
594
|
+
# Returns the teachers for a school
|
595
|
+
# @param id
|
596
|
+
# @param [Hash] opts the optional parameters
|
597
|
+
# @option opts [Integer] :limit
|
598
|
+
# @option opts [String] :starting_after
|
599
|
+
# @option opts [String] :ending_before
|
600
|
+
# @return [TeachersResponse]
|
601
|
+
describe 'get_teachers_for_school test' do
|
602
|
+
it 'should work' do
|
603
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
604
|
+
end
|
605
|
+
end
|
606
|
+
|
607
|
+
# unit tests for get_teachers_for_section
|
608
|
+
# Returns the teachers for a section
|
609
|
+
# @param id
|
610
|
+
# @param [Hash] opts the optional parameters
|
611
|
+
# @option opts [Integer] :limit
|
612
|
+
# @option opts [String] :starting_after
|
613
|
+
# @option opts [String] :ending_before
|
614
|
+
# @return [TeachersResponse]
|
615
|
+
describe 'get_teachers_for_section test' do
|
616
|
+
it 'should work' do
|
617
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
618
|
+
end
|
619
|
+
end
|
620
|
+
|
621
|
+
# unit tests for get_teachers_for_student
|
622
|
+
# Returns the teachers for a student
|
623
|
+
# @param id
|
624
|
+
# @param [Hash] opts the optional parameters
|
625
|
+
# @option opts [Integer] :limit
|
626
|
+
# @option opts [String] :starting_after
|
627
|
+
# @option opts [String] :ending_before
|
628
|
+
# @return [TeachersResponse]
|
629
|
+
describe 'get_teachers_for_student test' do
|
630
|
+
it 'should work' do
|
631
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
632
|
+
end
|
633
|
+
end
|
634
|
+
|
635
|
+
# unit tests for get_term
|
636
|
+
# Returns a specific term
|
637
|
+
# @param id
|
638
|
+
# @param [Hash] opts the optional parameters
|
639
|
+
# @return [TermResponse]
|
640
|
+
describe 'get_term test' do
|
641
|
+
it 'should work' do
|
642
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
643
|
+
end
|
644
|
+
end
|
645
|
+
|
646
|
+
# unit tests for get_term_for_section
|
647
|
+
# Returns the term for a section
|
648
|
+
# @param id
|
649
|
+
# @param [Hash] opts the optional parameters
|
650
|
+
# @return [TermResponse]
|
651
|
+
describe 'get_term_for_section test' do
|
652
|
+
it 'should work' do
|
653
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
654
|
+
end
|
655
|
+
end
|
656
|
+
|
657
|
+
# unit tests for get_terms
|
658
|
+
# Returns a list of terms
|
659
|
+
# @param [Hash] opts the optional parameters
|
660
|
+
# @option opts [Integer] :limit
|
661
|
+
# @option opts [String] :starting_after
|
662
|
+
# @option opts [String] :ending_before
|
663
|
+
# @option opts [String] :count
|
664
|
+
# @return [TermsResponse]
|
665
|
+
describe 'get_terms test' do
|
666
|
+
it 'should work' do
|
667
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
668
|
+
end
|
669
|
+
end
|
670
|
+
|
671
|
+
end
|
data/spec/api/events_api_spec.rb
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#Clever API
|
3
3
|
|
4
|
-
#
|
4
|
+
#The Clever API
|
5
5
|
|
6
6
|
OpenAPI spec version: 2.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version:
|
9
|
+
Swagger Codegen version: 2.4.37
|
10
|
+
|
10
11
|
=end
|
11
12
|
|
12
13
|
require 'spec_helper'
|