commonlit-clever-ruby 2.1.4 → 2.1.6.beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +27 -30
- data/Makefile +1 -1
- data/README.md +60 -61
- data/clever-ruby.gemspec +6 -6
- data/docs/Contact.md +1 -1
- data/docs/ContactsApi.md +231 -0
- data/docs/ContactsCreated.md +2 -2
- data/docs/ContactsDeleted.md +2 -2
- data/docs/ContactsUpdated.md +2 -2
- data/docs/Course.md +1 -1
- data/docs/CoursesApi.md +231 -0
- data/docs/CoursesCreated.md +2 -2
- data/docs/CoursesDeleted.md +2 -2
- data/docs/CoursesUpdated.md +2 -2
- data/docs/District.md +9 -9
- data/docs/DistrictAdmin.md +2 -2
- data/docs/DistrictAdminsApi.md +171 -0
- data/docs/DistrictadminsCreated.md +2 -2
- data/docs/DistrictadminsDeleted.md +2 -2
- data/docs/DistrictadminsUpdated.md +2 -2
- data/docs/DistrictsApi.md +113 -0
- data/docs/DistrictsCreated.md +2 -2
- data/docs/DistrictsDeleted.md +2 -2
- data/docs/DistrictsUpdated.md +2 -2
- data/docs/Event.md +2 -2
- data/docs/EventsApi.md +1 -1
- data/docs/Location.md +2 -2
- data/docs/Name.md +1 -1
- data/docs/Principal.md +1 -1
- data/docs/School.md +3 -3
- data/docs/SchoolAdmin.md +3 -3
- data/docs/SchoolAdminsApi.md +231 -0
- data/docs/SchoolEnrollment.md +1 -1
- data/docs/SchooladminsCreated.md +2 -2
- data/docs/SchooladminsDeleted.md +2 -2
- data/docs/SchooladminsUpdated.md +2 -2
- data/docs/SchoolsApi.md +351 -0
- data/docs/SchoolsCreated.md +2 -2
- data/docs/SchoolsDeleted.md +2 -2
- data/docs/SchoolsUpdated.md +2 -2
- data/docs/Section.md +2 -2
- data/docs/SectionsApi.md +499 -0
- data/docs/SectionsCreated.md +2 -2
- data/docs/SectionsDeleted.md +2 -2
- data/docs/SectionsUpdated.md +2 -2
- data/docs/Student.md +3 -3
- data/docs/StudentsApi.md +463 -0
- data/docs/StudentsCreated.md +2 -2
- data/docs/StudentsDeleted.md +2 -2
- data/docs/StudentsUpdated.md +2 -2
- data/docs/Teacher.md +2 -2
- data/docs/TeachersApi.md +403 -0
- data/docs/TeachersCreated.md +2 -2
- data/docs/TeachersDeleted.md +2 -2
- data/docs/TeachersUpdated.md +2 -2
- data/docs/Term.md +2 -2
- data/docs/TermsApi.md +231 -0
- data/docs/TermsCreated.md +2 -2
- data/docs/TermsDeleted.md +2 -2
- data/docs/TermsUpdated.md +2 -2
- data/full-v2.yml +2541 -0
- data/lib/clever-ruby/api/contacts_api.rb +241 -0
- data/lib/clever-ruby/api/courses_api.rb +241 -0
- data/lib/clever-ruby/api/district_admins_api.rb +182 -0
- data/lib/clever-ruby/api/districts_api.rb +123 -0
- data/lib/clever-ruby/api/events_api.rb +3 -3
- data/lib/clever-ruby/api/school_admins_api.rb +241 -0
- data/lib/clever-ruby/api/schools_api.rb +359 -0
- data/lib/clever-ruby/api/sections_api.rb +500 -0
- data/lib/clever-ruby/api/students_api.rb +468 -0
- data/lib/clever-ruby/api/teachers_api.rb +409 -0
- data/lib/clever-ruby/api/terms_api.rb +241 -0
- data/lib/clever-ruby/api_client.rb +1 -0
- data/lib/clever-ruby/api_error.rb +3 -3
- data/lib/clever-ruby/configuration.rb +4 -4
- data/lib/clever-ruby/models/admin_name.rb +3 -3
- data/lib/clever-ruby/models/bad_request.rb +3 -3
- data/lib/clever-ruby/models/contact.rb +13 -13
- data/lib/clever-ruby/models/contact_object.rb +3 -3
- data/lib/clever-ruby/models/contact_response.rb +3 -3
- data/lib/clever-ruby/models/contacts_response.rb +3 -3
- data/lib/clever-ruby/models/course.rb +16 -16
- data/lib/clever-ruby/models/course_object.rb +3 -3
- data/lib/clever-ruby/models/course_response.rb +3 -3
- data/lib/clever-ruby/models/courses_response.rb +3 -3
- data/lib/clever-ruby/models/credentials.rb +3 -3
- data/lib/clever-ruby/models/district.rb +69 -69
- data/lib/clever-ruby/models/district_admin.rb +25 -25
- data/lib/clever-ruby/models/district_admin_object.rb +3 -3
- data/lib/clever-ruby/models/district_admin_response.rb +3 -3
- data/lib/clever-ruby/models/district_admins_response.rb +3 -3
- data/lib/clever-ruby/models/district_object.rb +3 -3
- data/lib/clever-ruby/models/district_response.rb +3 -3
- data/lib/clever-ruby/models/districts_response.rb +3 -3
- data/lib/clever-ruby/models/event.rb +16 -16
- data/lib/clever-ruby/models/event_response.rb +3 -3
- data/lib/clever-ruby/models/events_response.rb +3 -3
- data/lib/clever-ruby/models/internal_error.rb +3 -3
- data/lib/clever-ruby/models/link.rb +3 -3
- data/lib/clever-ruby/models/location.rb +25 -25
- data/lib/clever-ruby/models/name.rb +16 -16
- data/lib/clever-ruby/models/not_found.rb +3 -3
- data/lib/clever-ruby/models/principal.rb +16 -16
- data/lib/clever-ruby/models/school.rb +34 -34
- data/lib/clever-ruby/models/school_admin.rb +34 -34
- data/lib/clever-ruby/models/school_admin_object.rb +3 -3
- data/lib/clever-ruby/models/school_admin_response.rb +3 -3
- data/lib/clever-ruby/models/school_admins_response.rb +3 -3
- data/lib/clever-ruby/models/school_enrollment.rb +16 -16
- data/lib/clever-ruby/models/school_object.rb +3 -3
- data/lib/clever-ruby/models/school_response.rb +3 -3
- data/lib/clever-ruby/models/schools_response.rb +3 -3
- data/lib/clever-ruby/models/section.rb +25 -25
- data/lib/clever-ruby/models/section_object.rb +3 -3
- data/lib/clever-ruby/models/section_response.rb +3 -3
- data/lib/clever-ruby/models/sections_response.rb +3 -3
- data/lib/clever-ruby/models/student.rb +34 -34
- data/lib/clever-ruby/models/student_object.rb +3 -3
- data/lib/clever-ruby/models/student_response.rb +3 -3
- data/lib/clever-ruby/models/students_response.rb +3 -3
- data/lib/clever-ruby/models/teacher.rb +25 -25
- data/lib/clever-ruby/models/teacher_object.rb +3 -3
- data/lib/clever-ruby/models/teacher_response.rb +3 -3
- data/lib/clever-ruby/models/teachers_response.rb +3 -3
- data/lib/clever-ruby/models/term.rb +25 -25
- data/lib/clever-ruby/models/term_object.rb +3 -3
- data/lib/clever-ruby/models/term_response.rb +3 -3
- data/lib/clever-ruby/models/terms_response.rb +3 -3
- data/lib/clever-ruby/version.rb +4 -4
- data/lib/clever-ruby.rb +13 -4
- data/override/README-extension.md +4 -5
- data/override/api_client.rb +1 -0
- data/override/override.sh +4 -5
- data/spec/api/contacts_api_spec.rb +84 -0
- data/spec/api/courses_api_spec.rb +84 -0
- data/spec/api/district_admins_api_spec.rb +70 -0
- data/spec/api/districts_api_spec.rb +56 -0
- data/spec/api/events_api_spec.rb +60 -0
- data/spec/api/school_admins_api_spec.rb +84 -0
- data/spec/api/schools_api_spec.rb +112 -0
- data/spec/api/sections_api_spec.rb +142 -0
- data/spec/api/students_api_spec.rb +137 -0
- data/spec/api/teachers_api_spec.rb +123 -0
- data/spec/api/terms_api_spec.rb +84 -0
- data/spec/api_client_spec.rb +225 -0
- data/spec/spec_helper.rb +25 -18
- metadata +71 -33
- data/commonlit-clever-ruby-2.1.3.gem +0 -0
- data/docs/DataApi.md +0 -2852
- data/git_push.sh +0 -55
- data/lib/clever-ruby/api/data_api.rb +0 -2798
- data/spec/events.json +0 -227
- data/tags +0 -1681
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#Data API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Serves the Clever Data 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: 2.4.
|
|
9
|
+
Swagger Codegen version: 2.4.37
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,35 +14,35 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module Clever
|
|
16
16
|
class Term
|
|
17
|
-
attr_accessor :district
|
|
18
|
-
|
|
19
|
-
attr_accessor :end_date
|
|
20
|
-
|
|
21
17
|
attr_accessor :id
|
|
22
18
|
|
|
23
19
|
attr_accessor :name
|
|
24
20
|
|
|
25
21
|
attr_accessor :start_date
|
|
26
22
|
|
|
23
|
+
attr_accessor :end_date
|
|
24
|
+
|
|
25
|
+
attr_accessor :district
|
|
26
|
+
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
28
|
def self.attribute_map
|
|
29
29
|
{
|
|
30
|
-
:'district' => :'district',
|
|
31
|
-
:'end_date' => :'end_date',
|
|
32
30
|
:'id' => :'id',
|
|
33
31
|
:'name' => :'name',
|
|
34
|
-
:'start_date' => :'start_date'
|
|
32
|
+
:'start_date' => :'start_date',
|
|
33
|
+
:'end_date' => :'end_date',
|
|
34
|
+
:'district' => :'district'
|
|
35
35
|
}
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
# Attribute type mapping.
|
|
39
39
|
def self.swagger_types
|
|
40
40
|
{
|
|
41
|
-
:'district' => :'String',
|
|
42
|
-
:'end_date' => :'String',
|
|
43
41
|
:'id' => :'String',
|
|
44
42
|
:'name' => :'String',
|
|
45
|
-
:'start_date' => :'String'
|
|
43
|
+
:'start_date' => :'String',
|
|
44
|
+
:'end_date' => :'String',
|
|
45
|
+
:'district' => :'String'
|
|
46
46
|
}
|
|
47
47
|
end
|
|
48
48
|
|
|
@@ -54,14 +54,6 @@ module Clever
|
|
|
54
54
|
# convert string to symbol for hash key
|
|
55
55
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
56
56
|
|
|
57
|
-
if attributes.has_key?(:'district')
|
|
58
|
-
self.district = attributes[:'district']
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
if attributes.has_key?(:'end_date')
|
|
62
|
-
self.end_date = attributes[:'end_date']
|
|
63
|
-
end
|
|
64
|
-
|
|
65
57
|
if attributes.has_key?(:'id')
|
|
66
58
|
self.id = attributes[:'id']
|
|
67
59
|
end
|
|
@@ -73,6 +65,14 @@ module Clever
|
|
|
73
65
|
if attributes.has_key?(:'start_date')
|
|
74
66
|
self.start_date = attributes[:'start_date']
|
|
75
67
|
end
|
|
68
|
+
|
|
69
|
+
if attributes.has_key?(:'end_date')
|
|
70
|
+
self.end_date = attributes[:'end_date']
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
if attributes.has_key?(:'district')
|
|
74
|
+
self.district = attributes[:'district']
|
|
75
|
+
end
|
|
76
76
|
end
|
|
77
77
|
|
|
78
78
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -93,11 +93,11 @@ module Clever
|
|
|
93
93
|
def ==(o)
|
|
94
94
|
return true if self.equal?(o)
|
|
95
95
|
self.class == o.class &&
|
|
96
|
-
district == o.district &&
|
|
97
|
-
end_date == o.end_date &&
|
|
98
96
|
id == o.id &&
|
|
99
97
|
name == o.name &&
|
|
100
|
-
start_date == o.start_date
|
|
98
|
+
start_date == o.start_date &&
|
|
99
|
+
end_date == o.end_date &&
|
|
100
|
+
district == o.district
|
|
101
101
|
end
|
|
102
102
|
|
|
103
103
|
# @see the `==` method
|
|
@@ -109,7 +109,7 @@ module Clever
|
|
|
109
109
|
# Calculates hash code according to all attributes.
|
|
110
110
|
# @return [Fixnum] Hash code
|
|
111
111
|
def hash
|
|
112
|
-
[
|
|
112
|
+
[id, name, start_date, end_date, district].hash
|
|
113
113
|
end
|
|
114
114
|
|
|
115
115
|
# Builds the object from hash
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#Data API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Serves the Clever Data 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: 2.4.
|
|
9
|
+
Swagger Codegen version: 2.4.37
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#Data API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Serves the Clever Data 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: 2.4.
|
|
9
|
+
Swagger Codegen version: 2.4.37
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#Data API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Serves the Clever Data 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: 2.4.
|
|
9
|
+
Swagger Codegen version: 2.4.37
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
data/lib/clever-ruby/version.rb
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#Data API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Serves the Clever Data 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: 2.4.
|
|
9
|
+
Swagger Codegen version: 2.4.37
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
module Clever
|
|
14
|
-
VERSION = '2.1.
|
|
14
|
+
VERSION = '2.1.6.beta1'
|
|
15
15
|
end
|
data/lib/clever-ruby.rb
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#Data API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Serves the Clever Data 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: 2.4.
|
|
9
|
+
Swagger Codegen version: 2.4.37
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -102,8 +102,17 @@ require 'clever-ruby/models/terms_response'
|
|
|
102
102
|
require 'clever-ruby/models/terms_updated'
|
|
103
103
|
|
|
104
104
|
# APIs
|
|
105
|
-
require 'clever-ruby/api/
|
|
105
|
+
require 'clever-ruby/api/contacts_api'
|
|
106
|
+
require 'clever-ruby/api/courses_api'
|
|
107
|
+
require 'clever-ruby/api/district_admins_api'
|
|
108
|
+
require 'clever-ruby/api/districts_api'
|
|
106
109
|
require 'clever-ruby/api/events_api'
|
|
110
|
+
require 'clever-ruby/api/school_admins_api'
|
|
111
|
+
require 'clever-ruby/api/schools_api'
|
|
112
|
+
require 'clever-ruby/api/sections_api'
|
|
113
|
+
require 'clever-ruby/api/students_api'
|
|
114
|
+
require 'clever-ruby/api/teachers_api'
|
|
115
|
+
require 'clever-ruby/api/terms_api'
|
|
107
116
|
|
|
108
117
|
module Clever
|
|
109
118
|
class << self
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
The current client support v2.0 of the API. For v1.2 please use:
|
|
4
4
|
|
|
5
|
-
-
|
|
6
|
-
-
|
|
7
|
-
|
|
5
|
+
- https://rubygems.org/gems/clever-ruby/versions/1.2.4
|
|
6
|
+
- https://github.com/Clever/clever-ruby/tree/v1.2.4
|
|
8
7
|
|
|
9
8
|
## Updating the Library
|
|
10
9
|
|
|
@@ -13,13 +12,13 @@ The current client support v2.0 of the API. For v1.2 please use:
|
|
|
13
12
|
2. Git clone Clever's swagger-api repo (https://github.com/Clever/swagger-api)
|
|
14
13
|
|
|
15
14
|
3. Run this command in the swagger-codegen repo
|
|
15
|
+
|
|
16
16
|
```
|
|
17
|
-
|
|
17
|
+
swagger-codegen generate -i $PATH_TO_SWAGGER_API_REPO/full-v2.yml -l ruby -o $PATH_TO_THIS_REPO --additional-properties gemVersion=$VERSION
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
4. Run `make build` to copy over the override files
|
|
21
21
|
|
|
22
|
-
|
|
23
22
|
## Publishing
|
|
24
23
|
|
|
25
24
|
Signup to rubygems.org if you don't already have an account, and ask one of the gem [owners](https://rubygems.org/gems/clever-ruby) to add you as an owner. You'll be prompted to log in from the command line when you push the gem, if you aren't already logged in.
|
data/override/api_client.rb
CHANGED
data/override/override.sh
CHANGED
|
@@ -15,11 +15,10 @@ cp override/api_client.rb lib/clever-ruby/
|
|
|
15
15
|
git grep -l 'SwaggerClient' -- './*' ':(exclude)override/override.sh' | xargs sed -i "" 's/SwaggerClient/Clever/g'
|
|
16
16
|
git grep -l 'swagger_client' -- './*' ':(exclude)override/override.sh' | xargs sed -i "" 's/swagger_client/clever-ruby/g'
|
|
17
17
|
|
|
18
|
-
#
|
|
19
|
-
rm -
|
|
20
|
-
rm -
|
|
21
|
-
rm -
|
|
22
|
-
rm -r spec/configuration_spec.rb || true
|
|
18
|
+
# Swagger makes some broken generated tests so let's remove them
|
|
19
|
+
rm -rf spec/base_object_spec.rb
|
|
20
|
+
rm -rf spec/configuration_spec.rb
|
|
21
|
+
rm -rf spec/models || true
|
|
23
22
|
|
|
24
23
|
# Add the extension to the readme if it's not already there
|
|
25
24
|
if ! grep -q -i '## Previous Versions' README.md; then
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
|
@@ -0,0 +1,60 @@
|
|
|
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::EventsApi
|
|
16
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
17
|
+
# Please update as you see appropriate
|
|
18
|
+
describe 'EventsApi' do
|
|
19
|
+
before do
|
|
20
|
+
# run before each test
|
|
21
|
+
@instance = Clever::EventsApi.new
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
after do
|
|
25
|
+
# run after each test
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
describe 'test an instance of EventsApi' do
|
|
29
|
+
it 'should create an instance of EventsApi' do
|
|
30
|
+
expect(@instance).to be_instance_of(Clever::EventsApi)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# unit tests for get_event
|
|
35
|
+
# Returns the specific event
|
|
36
|
+
# @param id
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @return [EventResponse]
|
|
39
|
+
describe 'get_event 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_events
|
|
46
|
+
# Returns a list of events
|
|
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] :school
|
|
52
|
+
# @option opts [Array<String>] :record_type
|
|
53
|
+
# @return [EventsResponse]
|
|
54
|
+
describe 'get_events 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
|
+
end
|