commonlit-clever-ruby 2.1.6.beta1 → 2.1.6.beta2
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/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 +25 -179
- 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
@@ -1,84 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Data API
|
3
|
-
|
4
|
-
#Serves the Clever Data 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: 3.0.51
|
10
|
-
=end
|
11
|
-
|
12
|
-
require 'spec_helper'
|
13
|
-
require 'json'
|
14
|
-
|
15
|
-
# Unit tests for Clever::ContactsApi
|
16
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
17
|
-
# Please update as you see appropriate
|
18
|
-
describe 'ContactsApi' do
|
19
|
-
before do
|
20
|
-
# run before each test
|
21
|
-
@instance = Clever::ContactsApi.new
|
22
|
-
end
|
23
|
-
|
24
|
-
after do
|
25
|
-
# run after each test
|
26
|
-
end
|
27
|
-
|
28
|
-
describe 'test an instance of ContactsApi' do
|
29
|
-
it 'should create an instance of ContactsApi' do
|
30
|
-
expect(@instance).to be_instance_of(Clever::ContactsApi)
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
# unit tests for get_contact
|
35
|
-
# Returns a specific student contact
|
36
|
-
# @param id
|
37
|
-
# @param [Hash] opts the optional parameters
|
38
|
-
# @return [ContactResponse]
|
39
|
-
describe 'get_contact test' do
|
40
|
-
it 'should work' do
|
41
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
# unit tests for get_contacts
|
46
|
-
# Returns a list of student contacts
|
47
|
-
# @param [Hash] opts the optional parameters
|
48
|
-
# @option opts [Integer] :limit
|
49
|
-
# @option opts [String] :starting_after
|
50
|
-
# @option opts [String] :ending_before
|
51
|
-
# @option opts [String] :count
|
52
|
-
# @return [ContactsResponse]
|
53
|
-
describe 'get_contacts test' do
|
54
|
-
it 'should work' do
|
55
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
# unit tests for get_district_for_contact
|
60
|
-
# Returns the district for a student contact
|
61
|
-
# @param id
|
62
|
-
# @param [Hash] opts the optional parameters
|
63
|
-
# @return [DistrictResponse]
|
64
|
-
describe 'get_district_for_contact test' do
|
65
|
-
it 'should work' do
|
66
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
# unit tests for get_students_for_contact
|
71
|
-
# Returns the students for a student contact
|
72
|
-
# @param id
|
73
|
-
# @param [Hash] opts the optional parameters
|
74
|
-
# @option opts [Integer] :limit
|
75
|
-
# @option opts [String] :starting_after
|
76
|
-
# @option opts [String] :ending_before
|
77
|
-
# @return [StudentsResponse]
|
78
|
-
describe 'get_students_for_contact test' do
|
79
|
-
it 'should work' do
|
80
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
end
|
@@ -1,84 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Data API
|
3
|
-
|
4
|
-
#Serves the Clever Data 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: 3.0.51
|
10
|
-
=end
|
11
|
-
|
12
|
-
require 'spec_helper'
|
13
|
-
require 'json'
|
14
|
-
|
15
|
-
# Unit tests for Clever::CoursesApi
|
16
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
17
|
-
# Please update as you see appropriate
|
18
|
-
describe 'CoursesApi' do
|
19
|
-
before do
|
20
|
-
# run before each test
|
21
|
-
@instance = Clever::CoursesApi.new
|
22
|
-
end
|
23
|
-
|
24
|
-
after do
|
25
|
-
# run after each test
|
26
|
-
end
|
27
|
-
|
28
|
-
describe 'test an instance of CoursesApi' do
|
29
|
-
it 'should create an instance of CoursesApi' do
|
30
|
-
expect(@instance).to be_instance_of(Clever::CoursesApi)
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
# unit tests for get_course
|
35
|
-
# Returns a specific course
|
36
|
-
# @param id
|
37
|
-
# @param [Hash] opts the optional parameters
|
38
|
-
# @return [CourseResponse]
|
39
|
-
describe 'get_course test' do
|
40
|
-
it 'should work' do
|
41
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
# unit tests for get_courses
|
46
|
-
# Returns a list of courses
|
47
|
-
# @param [Hash] opts the optional parameters
|
48
|
-
# @option opts [Integer] :limit
|
49
|
-
# @option opts [String] :starting_after
|
50
|
-
# @option opts [String] :ending_before
|
51
|
-
# @option opts [String] :count
|
52
|
-
# @return [CoursesResponse]
|
53
|
-
describe 'get_courses test' do
|
54
|
-
it 'should work' do
|
55
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
# unit tests for get_district_for_course
|
60
|
-
# Returns the district for a course
|
61
|
-
# @param id
|
62
|
-
# @param [Hash] opts the optional parameters
|
63
|
-
# @return [DistrictResponse]
|
64
|
-
describe 'get_district_for_course test' do
|
65
|
-
it 'should work' do
|
66
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
# unit tests for get_sections_for_course
|
71
|
-
# Returns the sections for a Courses
|
72
|
-
# @param id
|
73
|
-
# @param [Hash] opts the optional parameters
|
74
|
-
# @option opts [Integer] :limit
|
75
|
-
# @option opts [String] :starting_after
|
76
|
-
# @option opts [String] :ending_before
|
77
|
-
# @return [SectionsResponse]
|
78
|
-
describe 'get_sections_for_course test' do
|
79
|
-
it 'should work' do
|
80
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
end
|
@@ -1,70 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Data API
|
3
|
-
|
4
|
-
#Serves the Clever Data 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: 3.0.51
|
10
|
-
=end
|
11
|
-
|
12
|
-
require 'spec_helper'
|
13
|
-
require 'json'
|
14
|
-
|
15
|
-
# Unit tests for Clever::DistrictAdminsApi
|
16
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
17
|
-
# Please update as you see appropriate
|
18
|
-
describe 'DistrictAdminsApi' do
|
19
|
-
before do
|
20
|
-
# run before each test
|
21
|
-
@instance = Clever::DistrictAdminsApi.new
|
22
|
-
end
|
23
|
-
|
24
|
-
after do
|
25
|
-
# run after each test
|
26
|
-
end
|
27
|
-
|
28
|
-
describe 'test an instance of DistrictAdminsApi' do
|
29
|
-
it 'should create an instance of DistrictAdminsApi' do
|
30
|
-
expect(@instance).to be_instance_of(Clever::DistrictAdminsApi)
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
# unit tests for get_district_admin
|
35
|
-
# Returns a specific district admin
|
36
|
-
# @param id
|
37
|
-
# @param [Hash] opts the optional parameters
|
38
|
-
# @return [DistrictAdminResponse]
|
39
|
-
describe 'get_district_admin test' do
|
40
|
-
it 'should work' do
|
41
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
# unit tests for get_district_admins
|
46
|
-
# Returns a list of district admins
|
47
|
-
# @param [Hash] opts the optional parameters
|
48
|
-
# @option opts [Integer] :limit
|
49
|
-
# @option opts [String] :starting_after
|
50
|
-
# @option opts [String] :ending_before
|
51
|
-
# @option opts [String] :count
|
52
|
-
# @return [DistrictAdminsResponse]
|
53
|
-
describe 'get_district_admins test' do
|
54
|
-
it 'should work' do
|
55
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
# unit tests for get_district_for_district_admin
|
60
|
-
# Returns the district for a district admin
|
61
|
-
# @param id
|
62
|
-
# @param [Hash] opts the optional parameters
|
63
|
-
# @return [DistrictResponse]
|
64
|
-
describe 'get_district_for_district_admin test' do
|
65
|
-
it 'should work' do
|
66
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
end
|
@@ -1,56 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Data API
|
3
|
-
|
4
|
-
#Serves the Clever Data 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: 3.0.51
|
10
|
-
=end
|
11
|
-
|
12
|
-
require 'spec_helper'
|
13
|
-
require 'json'
|
14
|
-
|
15
|
-
# Unit tests for Clever::DistrictsApi
|
16
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
17
|
-
# Please update as you see appropriate
|
18
|
-
describe 'DistrictsApi' do
|
19
|
-
before do
|
20
|
-
# run before each test
|
21
|
-
@instance = Clever::DistrictsApi.new
|
22
|
-
end
|
23
|
-
|
24
|
-
after do
|
25
|
-
# run after each test
|
26
|
-
end
|
27
|
-
|
28
|
-
describe 'test an instance of DistrictsApi' do
|
29
|
-
it 'should create an instance of DistrictsApi' do
|
30
|
-
expect(@instance).to be_instance_of(Clever::DistrictsApi)
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
# unit tests for get_district
|
35
|
-
# Returns a specific district
|
36
|
-
# @param id
|
37
|
-
# @param [Hash] opts the optional parameters
|
38
|
-
# @return [DistrictResponse]
|
39
|
-
describe 'get_district test' do
|
40
|
-
it 'should work' do
|
41
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
# unit tests for get_districts
|
46
|
-
# Returns a list of districts. In practice this will only return the one district associated with the bearer token
|
47
|
-
# @param [Hash] opts the optional parameters
|
48
|
-
# @option opts [String] :count
|
49
|
-
# @return [DistrictsResponse]
|
50
|
-
describe 'get_districts test' do
|
51
|
-
it 'should work' do
|
52
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
|
-
end
|
54
|
-
end
|
55
|
-
|
56
|
-
end
|
@@ -1,84 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Data API
|
3
|
-
|
4
|
-
#Serves the Clever Data 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: 3.0.51
|
10
|
-
=end
|
11
|
-
|
12
|
-
require 'spec_helper'
|
13
|
-
require 'json'
|
14
|
-
|
15
|
-
# Unit tests for Clever::SchoolAdminsApi
|
16
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
17
|
-
# Please update as you see appropriate
|
18
|
-
describe 'SchoolAdminsApi' do
|
19
|
-
before do
|
20
|
-
# run before each test
|
21
|
-
@instance = Clever::SchoolAdminsApi.new
|
22
|
-
end
|
23
|
-
|
24
|
-
after do
|
25
|
-
# run after each test
|
26
|
-
end
|
27
|
-
|
28
|
-
describe 'test an instance of SchoolAdminsApi' do
|
29
|
-
it 'should create an instance of SchoolAdminsApi' do
|
30
|
-
expect(@instance).to be_instance_of(Clever::SchoolAdminsApi)
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
# unit tests for get_district_for_school_admin
|
35
|
-
# Returns the district for a school admin
|
36
|
-
# @param id
|
37
|
-
# @param [Hash] opts the optional parameters
|
38
|
-
# @return [DistrictResponse]
|
39
|
-
describe 'get_district_for_school_admin test' do
|
40
|
-
it 'should work' do
|
41
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
# unit tests for get_school_admin
|
46
|
-
# Returns a specific school admin
|
47
|
-
# @param id
|
48
|
-
# @param [Hash] opts the optional parameters
|
49
|
-
# @return [SchoolAdminResponse]
|
50
|
-
describe 'get_school_admin test' do
|
51
|
-
it 'should work' do
|
52
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
|
-
end
|
54
|
-
end
|
55
|
-
|
56
|
-
# unit tests for get_school_admins
|
57
|
-
# Returns a list of school admins
|
58
|
-
# @param [Hash] opts the optional parameters
|
59
|
-
# @option opts [Integer] :limit
|
60
|
-
# @option opts [String] :starting_after
|
61
|
-
# @option opts [String] :ending_before
|
62
|
-
# @option opts [String] :count
|
63
|
-
# @return [SchoolAdminsResponse]
|
64
|
-
describe 'get_school_admins test' do
|
65
|
-
it 'should work' do
|
66
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
# unit tests for get_schools_for_school_admin
|
71
|
-
# Returns the schools for a school admin
|
72
|
-
# @param id
|
73
|
-
# @param [Hash] opts the optional parameters
|
74
|
-
# @option opts [Integer] :limit
|
75
|
-
# @option opts [String] :starting_after
|
76
|
-
# @option opts [String] :ending_before
|
77
|
-
# @return [SchoolsResponse]
|
78
|
-
describe 'get_schools_for_school_admin test' do
|
79
|
-
it 'should work' do
|
80
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
end
|
@@ -1,112 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Data API
|
3
|
-
|
4
|
-
#Serves the Clever Data 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: 3.0.51
|
10
|
-
=end
|
11
|
-
|
12
|
-
require 'spec_helper'
|
13
|
-
require 'json'
|
14
|
-
|
15
|
-
# Unit tests for Clever::SchoolsApi
|
16
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
17
|
-
# Please update as you see appropriate
|
18
|
-
describe 'SchoolsApi' do
|
19
|
-
before do
|
20
|
-
# run before each test
|
21
|
-
@instance = Clever::SchoolsApi.new
|
22
|
-
end
|
23
|
-
|
24
|
-
after do
|
25
|
-
# run after each test
|
26
|
-
end
|
27
|
-
|
28
|
-
describe 'test an instance of SchoolsApi' do
|
29
|
-
it 'should create an instance of SchoolsApi' do
|
30
|
-
expect(@instance).to be_instance_of(Clever::SchoolsApi)
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
# unit tests for get_district_for_school
|
35
|
-
# Returns the district for a school
|
36
|
-
# @param id
|
37
|
-
# @param [Hash] opts the optional parameters
|
38
|
-
# @return [DistrictResponse]
|
39
|
-
describe 'get_district_for_school test' do
|
40
|
-
it 'should work' do
|
41
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
# unit tests for get_school
|
46
|
-
# Returns a specific school
|
47
|
-
# @param id
|
48
|
-
# @param [Hash] opts the optional parameters
|
49
|
-
# @return [SchoolResponse]
|
50
|
-
describe 'get_school test' do
|
51
|
-
it 'should work' do
|
52
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
|
-
end
|
54
|
-
end
|
55
|
-
|
56
|
-
# unit tests for get_schools
|
57
|
-
# Returns a list of schools
|
58
|
-
# @param [Hash] opts the optional parameters
|
59
|
-
# @option opts [Integer] :limit
|
60
|
-
# @option opts [String] :starting_after
|
61
|
-
# @option opts [String] :ending_before
|
62
|
-
# @option opts [String] :count
|
63
|
-
# @return [SchoolsResponse]
|
64
|
-
describe 'get_schools test' do
|
65
|
-
it 'should work' do
|
66
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
# unit tests for get_sections_for_school
|
71
|
-
# Returns the sections for a school
|
72
|
-
# @param id
|
73
|
-
# @param [Hash] opts the optional parameters
|
74
|
-
# @option opts [Integer] :limit
|
75
|
-
# @option opts [String] :starting_after
|
76
|
-
# @option opts [String] :ending_before
|
77
|
-
# @return [SectionsResponse]
|
78
|
-
describe 'get_sections_for_school test' do
|
79
|
-
it 'should work' do
|
80
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
# unit tests for get_students_for_school
|
85
|
-
# Returns the students for a school
|
86
|
-
# @param id
|
87
|
-
# @param [Hash] opts the optional parameters
|
88
|
-
# @option opts [Integer] :limit
|
89
|
-
# @option opts [String] :starting_after
|
90
|
-
# @option opts [String] :ending_before
|
91
|
-
# @return [StudentsResponse]
|
92
|
-
describe 'get_students_for_school test' do
|
93
|
-
it 'should work' do
|
94
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
95
|
-
end
|
96
|
-
end
|
97
|
-
|
98
|
-
# unit tests for get_teachers_for_school
|
99
|
-
# Returns the teachers for a school
|
100
|
-
# @param id
|
101
|
-
# @param [Hash] opts the optional parameters
|
102
|
-
# @option opts [Integer] :limit
|
103
|
-
# @option opts [String] :starting_after
|
104
|
-
# @option opts [String] :ending_before
|
105
|
-
# @return [TeachersResponse]
|
106
|
-
describe 'get_teachers_for_school test' do
|
107
|
-
it 'should work' do
|
108
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
109
|
-
end
|
110
|
-
end
|
111
|
-
|
112
|
-
end
|
@@ -1,142 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Data API
|
3
|
-
|
4
|
-
#Serves the Clever Data 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: 3.0.51
|
10
|
-
=end
|
11
|
-
|
12
|
-
require 'spec_helper'
|
13
|
-
require 'json'
|
14
|
-
|
15
|
-
# Unit tests for Clever::SectionsApi
|
16
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
17
|
-
# Please update as you see appropriate
|
18
|
-
describe 'SectionsApi' do
|
19
|
-
before do
|
20
|
-
# run before each test
|
21
|
-
@instance = Clever::SectionsApi.new
|
22
|
-
end
|
23
|
-
|
24
|
-
after do
|
25
|
-
# run after each test
|
26
|
-
end
|
27
|
-
|
28
|
-
describe 'test an instance of SectionsApi' do
|
29
|
-
it 'should create an instance of SectionsApi' do
|
30
|
-
expect(@instance).to be_instance_of(Clever::SectionsApi)
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
# unit tests for get_course_for_section
|
35
|
-
# Returns the course for a section
|
36
|
-
# @param id
|
37
|
-
# @param [Hash] opts the optional parameters
|
38
|
-
# @return [CourseResponse]
|
39
|
-
describe 'get_course_for_section test' do
|
40
|
-
it 'should work' do
|
41
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
# unit tests for get_district_for_section
|
46
|
-
# Returns the district for a section
|
47
|
-
# @param id
|
48
|
-
# @param [Hash] opts the optional parameters
|
49
|
-
# @return [DistrictResponse]
|
50
|
-
describe 'get_district_for_section test' do
|
51
|
-
it 'should work' do
|
52
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
|
-
end
|
54
|
-
end
|
55
|
-
|
56
|
-
# unit tests for get_school_for_section
|
57
|
-
# Returns the school for a section
|
58
|
-
# @param id
|
59
|
-
# @param [Hash] opts the optional parameters
|
60
|
-
# @return [SchoolResponse]
|
61
|
-
describe 'get_school_for_section test' do
|
62
|
-
it 'should work' do
|
63
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
|
-
# unit tests for get_section
|
68
|
-
# Returns a specific section
|
69
|
-
# @param id
|
70
|
-
# @param [Hash] opts the optional parameters
|
71
|
-
# @return [SectionResponse]
|
72
|
-
describe 'get_section test' do
|
73
|
-
it 'should work' do
|
74
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
75
|
-
end
|
76
|
-
end
|
77
|
-
|
78
|
-
# unit tests for get_sections
|
79
|
-
# Returns a list of sections
|
80
|
-
# @param [Hash] opts the optional parameters
|
81
|
-
# @option opts [Integer] :limit
|
82
|
-
# @option opts [String] :starting_after
|
83
|
-
# @option opts [String] :ending_before
|
84
|
-
# @option opts [String] :count
|
85
|
-
# @return [SectionsResponse]
|
86
|
-
describe 'get_sections test' do
|
87
|
-
it 'should work' do
|
88
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
89
|
-
end
|
90
|
-
end
|
91
|
-
|
92
|
-
# unit tests for get_students_for_section
|
93
|
-
# Returns the students for a section
|
94
|
-
# @param id
|
95
|
-
# @param [Hash] opts the optional parameters
|
96
|
-
# @option opts [Integer] :limit
|
97
|
-
# @option opts [String] :starting_after
|
98
|
-
# @option opts [String] :ending_before
|
99
|
-
# @return [StudentsResponse]
|
100
|
-
describe 'get_students_for_section test' do
|
101
|
-
it 'should work' do
|
102
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
103
|
-
end
|
104
|
-
end
|
105
|
-
|
106
|
-
# unit tests for get_teacher_for_section
|
107
|
-
# Returns the primary teacher for a section
|
108
|
-
# @param id
|
109
|
-
# @param [Hash] opts the optional parameters
|
110
|
-
# @return [TeacherResponse]
|
111
|
-
describe 'get_teacher_for_section test' do
|
112
|
-
it 'should work' do
|
113
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
114
|
-
end
|
115
|
-
end
|
116
|
-
|
117
|
-
# unit tests for get_teachers_for_section
|
118
|
-
# Returns the teachers for a section
|
119
|
-
# @param id
|
120
|
-
# @param [Hash] opts the optional parameters
|
121
|
-
# @option opts [Integer] :limit
|
122
|
-
# @option opts [String] :starting_after
|
123
|
-
# @option opts [String] :ending_before
|
124
|
-
# @return [TeachersResponse]
|
125
|
-
describe 'get_teachers_for_section test' do
|
126
|
-
it 'should work' do
|
127
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
128
|
-
end
|
129
|
-
end
|
130
|
-
|
131
|
-
# unit tests for get_term_for_section
|
132
|
-
# Returns the term for a section
|
133
|
-
# @param id
|
134
|
-
# @param [Hash] opts the optional parameters
|
135
|
-
# @return [TermResponse]
|
136
|
-
describe 'get_term_for_section test' do
|
137
|
-
it 'should work' do
|
138
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
139
|
-
end
|
140
|
-
end
|
141
|
-
|
142
|
-
end
|