commonlit-clever-ruby 2.1.3 → 2.1.6.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +27 -30
- data/Makefile +1 -1
- data/README.md +64 -65
- data/clever-ruby.gemspec +5 -5
- 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 +71 -71
- 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 +49 -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 +3 -4
- 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 +3 -4
- data/spec/spec_helper.rb +25 -18
- metadata +48 -179
- data/docs/DataApi.md +0 -2852
- data/git_push.sh +0 -55
- data/lib/clever-ruby/api/data_api.rb +0 -2798
- data/spec/api/data_api_spec.rb +0 -671
- data/spec/configuration_spec.rb +0 -42
- data/spec/events.json +0 -227
- data/spec/models/bad_request_spec.rb +0 -41
- data/spec/models/contact_object_spec.rb +0 -41
- data/spec/models/contact_response_spec.rb +0 -41
- data/spec/models/contact_spec.rb +0 -107
- data/spec/models/contacts_created_spec.rb +0 -59
- data/spec/models/contacts_deleted_spec.rb +0 -59
- data/spec/models/contacts_response_spec.rb +0 -41
- data/spec/models/contacts_updated_spec.rb +0 -65
- data/spec/models/course_object_spec.rb +0 -41
- data/spec/models/course_response_spec.rb +0 -41
- data/spec/models/course_spec.rb +0 -59
- data/spec/models/courses_created_spec.rb +0 -59
- data/spec/models/courses_deleted_spec.rb +0 -59
- data/spec/models/courses_response_spec.rb +0 -41
- data/spec/models/courses_updated_spec.rb +0 -65
- data/spec/models/credentials_spec.rb +0 -41
- data/spec/models/district_admin_object_spec.rb +0 -41
- data/spec/models/district_admin_response_spec.rb +0 -41
- data/spec/models/district_admin_spec.rb +0 -65
- data/spec/models/district_admins_response_spec.rb +0 -41
- data/spec/models/district_object_spec.rb +0 -41
- data/spec/models/district_response_spec.rb +0 -41
- data/spec/models/district_spec.rb +0 -123
- data/spec/models/districtadmins_created_spec.rb +0 -59
- data/spec/models/districtadmins_deleted_spec.rb +0 -59
- data/spec/models/districtadmins_updated_spec.rb +0 -65
- data/spec/models/districts_created_spec.rb +0 -59
- data/spec/models/districts_deleted_spec.rb +0 -59
- data/spec/models/districts_response_spec.rb +0 -41
- data/spec/models/districts_updated_spec.rb +0 -65
- data/spec/models/event_response_spec.rb +0 -41
- data/spec/models/event_spec.rb +0 -53
- data/spec/models/events_response_spec.rb +0 -41
- data/spec/models/internal_error_spec.rb +0 -41
- data/spec/models/location_spec.rb +0 -71
- data/spec/models/name_spec.rb +0 -53
- data/spec/models/not_found_spec.rb +0 -41
- data/spec/models/principal_spec.rb +0 -47
- data/spec/models/school_admin_object_spec.rb +0 -41
- data/spec/models/school_admin_response_spec.rb +0 -41
- data/spec/models/school_admin_spec.rb +0 -95
- data/spec/models/school_admins_response_spec.rb +0 -41
- data/spec/models/school_enrollment_spec.rb +0 -53
- data/spec/models/school_object_spec.rb +0 -41
- data/spec/models/school_response_spec.rb +0 -41
- data/spec/models/school_spec.rb +0 -139
- data/spec/models/schooladmins_created_spec.rb +0 -59
- data/spec/models/schooladmins_deleted_spec.rb +0 -59
- data/spec/models/schooladmins_updated_spec.rb +0 -65
- data/spec/models/schools_created_spec.rb +0 -59
- data/spec/models/schools_deleted_spec.rb +0 -59
- data/spec/models/schools_response_spec.rb +0 -41
- data/spec/models/schools_updated_spec.rb +0 -65
- data/spec/models/section_object_spec.rb +0 -41
- data/spec/models/section_response_spec.rb +0 -41
- data/spec/models/section_spec.rb +0 -145
- data/spec/models/sections_created_spec.rb +0 -59
- data/spec/models/sections_deleted_spec.rb +0 -59
- data/spec/models/sections_response_spec.rb +0 -41
- data/spec/models/sections_updated_spec.rb +0 -65
- data/spec/models/student_object_spec.rb +0 -41
- data/spec/models/student_response_spec.rb +0 -41
- data/spec/models/student_spec.rb +0 -215
- data/spec/models/students_created_spec.rb +0 -59
- data/spec/models/students_deleted_spec.rb +0 -59
- data/spec/models/students_response_spec.rb +0 -41
- data/spec/models/students_updated_spec.rb +0 -65
- data/spec/models/teacher_object_spec.rb +0 -41
- data/spec/models/teacher_response_spec.rb +0 -41
- data/spec/models/teacher_spec.rb +0 -119
- data/spec/models/teachers_created_spec.rb +0 -59
- data/spec/models/teachers_deleted_spec.rb +0 -59
- data/spec/models/teachers_response_spec.rb +0 -41
- data/spec/models/teachers_updated_spec.rb +0 -65
- data/spec/models/term_object_spec.rb +0 -41
- data/spec/models/term_response_spec.rb +0 -41
- data/spec/models/term_spec.rb +0 -65
- data/spec/models/terms_created_spec.rb +0 -59
- data/spec/models/terms_deleted_spec.rb +0 -59
- data/spec/models/terms_response_spec.rb +0 -41
- data/spec/models/terms_updated_spec.rb +0 -65
- data/tags +0 -1681
data/docs/SchoolsDeleted.md
CHANGED
@@ -3,9 +3,9 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**created** | **String** | | [optional]
|
7
|
-
**id** | **String** | | [optional]
|
8
6
|
**type** | **String** | |
|
7
|
+
**id** | **String** | | [optional]
|
8
|
+
**created** | **String** | | [optional]
|
9
9
|
**data** | [**SchoolObject**](SchoolObject.md) | | [optional]
|
10
10
|
|
11
11
|
|
data/docs/SchoolsUpdated.md
CHANGED
@@ -3,9 +3,9 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**created** | **String** | | [optional]
|
7
|
-
**id** | **String** | | [optional]
|
8
6
|
**type** | **String** | |
|
7
|
+
**id** | **String** | | [optional]
|
8
|
+
**created** | **String** | | [optional]
|
9
9
|
**data** | [**SchoolObject**](SchoolObject.md) | | [optional]
|
10
10
|
**previous_attributes** | **Object** | | [optional]
|
11
11
|
|
data/docs/Section.md
CHANGED
@@ -3,12 +3,11 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | | [optional]
|
6
7
|
**course** | **String** | | [optional]
|
7
8
|
**created** | **String** | | [optional]
|
8
9
|
**district** | **String** | | [optional]
|
9
|
-
**ext** | **Object** | | [optional]
|
10
10
|
**grade** | **String** | | [optional]
|
11
|
-
**id** | **String** | | [optional]
|
12
11
|
**last_modified** | **String** | | [optional]
|
13
12
|
**name** | **String** | | [optional]
|
14
13
|
**period** | **String** | | [optional]
|
@@ -20,5 +19,6 @@ Name | Type | Description | Notes
|
|
20
19
|
**teacher** | **String** | | [optional]
|
21
20
|
**teachers** | **Array<String>** | | [optional]
|
22
21
|
**term_id** | **String** | | [optional]
|
22
|
+
**ext** | **Object** | | [optional]
|
23
23
|
|
24
24
|
|
data/docs/SectionsApi.md
ADDED
@@ -0,0 +1,499 @@
|
|
1
|
+
# Clever::SectionsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.clever.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_course_for_section**](SectionsApi.md#get_course_for_section) | **GET** /sections/{id}/course |
|
8
|
+
[**get_district_for_section**](SectionsApi.md#get_district_for_section) | **GET** /sections/{id}/district |
|
9
|
+
[**get_school_for_section**](SectionsApi.md#get_school_for_section) | **GET** /sections/{id}/school |
|
10
|
+
[**get_section**](SectionsApi.md#get_section) | **GET** /sections/{id} |
|
11
|
+
[**get_sections**](SectionsApi.md#get_sections) | **GET** /sections |
|
12
|
+
[**get_students_for_section**](SectionsApi.md#get_students_for_section) | **GET** /sections/{id}/students |
|
13
|
+
[**get_teacher_for_section**](SectionsApi.md#get_teacher_for_section) | **GET** /sections/{id}/teacher |
|
14
|
+
[**get_teachers_for_section**](SectionsApi.md#get_teachers_for_section) | **GET** /sections/{id}/teachers |
|
15
|
+
[**get_term_for_section**](SectionsApi.md#get_term_for_section) | **GET** /sections/{id}/term |
|
16
|
+
|
17
|
+
|
18
|
+
# **get_course_for_section**
|
19
|
+
> CourseResponse get_course_for_section(id)
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
Returns the course for a section
|
24
|
+
|
25
|
+
### Example
|
26
|
+
```ruby
|
27
|
+
# load the gem
|
28
|
+
require 'clever-ruby'
|
29
|
+
# setup authorization
|
30
|
+
Clever.configure do |config|
|
31
|
+
# Configure OAuth2 access token for authorization: oauth
|
32
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
33
|
+
end
|
34
|
+
|
35
|
+
api_instance = Clever::SectionsApi.new
|
36
|
+
|
37
|
+
id = 'id_example' # String |
|
38
|
+
|
39
|
+
|
40
|
+
begin
|
41
|
+
result = api_instance.get_course_for_section(id)
|
42
|
+
p result
|
43
|
+
rescue Clever::ApiError => e
|
44
|
+
puts "Exception when calling SectionsApi->get_course_for_section: #{e}"
|
45
|
+
end
|
46
|
+
```
|
47
|
+
|
48
|
+
### Parameters
|
49
|
+
|
50
|
+
Name | Type | Description | Notes
|
51
|
+
------------- | ------------- | ------------- | -------------
|
52
|
+
**id** | **String**| |
|
53
|
+
|
54
|
+
### Return type
|
55
|
+
|
56
|
+
[**CourseResponse**](CourseResponse.md)
|
57
|
+
|
58
|
+
### Authorization
|
59
|
+
|
60
|
+
[oauth](../README.md#oauth)
|
61
|
+
|
62
|
+
### HTTP request headers
|
63
|
+
|
64
|
+
- **Content-Type**: Not defined
|
65
|
+
- **Accept**: application/json
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
# **get_district_for_section**
|
70
|
+
> DistrictResponse get_district_for_section(id)
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
Returns the district for a section
|
75
|
+
|
76
|
+
### Example
|
77
|
+
```ruby
|
78
|
+
# load the gem
|
79
|
+
require 'clever-ruby'
|
80
|
+
# setup authorization
|
81
|
+
Clever.configure do |config|
|
82
|
+
# Configure OAuth2 access token for authorization: oauth
|
83
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
84
|
+
end
|
85
|
+
|
86
|
+
api_instance = Clever::SectionsApi.new
|
87
|
+
|
88
|
+
id = 'id_example' # String |
|
89
|
+
|
90
|
+
|
91
|
+
begin
|
92
|
+
result = api_instance.get_district_for_section(id)
|
93
|
+
p result
|
94
|
+
rescue Clever::ApiError => e
|
95
|
+
puts "Exception when calling SectionsApi->get_district_for_section: #{e}"
|
96
|
+
end
|
97
|
+
```
|
98
|
+
|
99
|
+
### Parameters
|
100
|
+
|
101
|
+
Name | Type | Description | Notes
|
102
|
+
------------- | ------------- | ------------- | -------------
|
103
|
+
**id** | **String**| |
|
104
|
+
|
105
|
+
### Return type
|
106
|
+
|
107
|
+
[**DistrictResponse**](DistrictResponse.md)
|
108
|
+
|
109
|
+
### Authorization
|
110
|
+
|
111
|
+
[oauth](../README.md#oauth)
|
112
|
+
|
113
|
+
### HTTP request headers
|
114
|
+
|
115
|
+
- **Content-Type**: Not defined
|
116
|
+
- **Accept**: application/json
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
# **get_school_for_section**
|
121
|
+
> SchoolResponse get_school_for_section(id)
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
Returns the school for a section
|
126
|
+
|
127
|
+
### Example
|
128
|
+
```ruby
|
129
|
+
# load the gem
|
130
|
+
require 'clever-ruby'
|
131
|
+
# setup authorization
|
132
|
+
Clever.configure do |config|
|
133
|
+
# Configure OAuth2 access token for authorization: oauth
|
134
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
135
|
+
end
|
136
|
+
|
137
|
+
api_instance = Clever::SectionsApi.new
|
138
|
+
|
139
|
+
id = 'id_example' # String |
|
140
|
+
|
141
|
+
|
142
|
+
begin
|
143
|
+
result = api_instance.get_school_for_section(id)
|
144
|
+
p result
|
145
|
+
rescue Clever::ApiError => e
|
146
|
+
puts "Exception when calling SectionsApi->get_school_for_section: #{e}"
|
147
|
+
end
|
148
|
+
```
|
149
|
+
|
150
|
+
### Parameters
|
151
|
+
|
152
|
+
Name | Type | Description | Notes
|
153
|
+
------------- | ------------- | ------------- | -------------
|
154
|
+
**id** | **String**| |
|
155
|
+
|
156
|
+
### Return type
|
157
|
+
|
158
|
+
[**SchoolResponse**](SchoolResponse.md)
|
159
|
+
|
160
|
+
### Authorization
|
161
|
+
|
162
|
+
[oauth](../README.md#oauth)
|
163
|
+
|
164
|
+
### HTTP request headers
|
165
|
+
|
166
|
+
- **Content-Type**: Not defined
|
167
|
+
- **Accept**: application/json
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
# **get_section**
|
172
|
+
> SectionResponse get_section(id)
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
Returns a specific section
|
177
|
+
|
178
|
+
### Example
|
179
|
+
```ruby
|
180
|
+
# load the gem
|
181
|
+
require 'clever-ruby'
|
182
|
+
# setup authorization
|
183
|
+
Clever.configure do |config|
|
184
|
+
# Configure OAuth2 access token for authorization: oauth
|
185
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
186
|
+
end
|
187
|
+
|
188
|
+
api_instance = Clever::SectionsApi.new
|
189
|
+
|
190
|
+
id = 'id_example' # String |
|
191
|
+
|
192
|
+
|
193
|
+
begin
|
194
|
+
result = api_instance.get_section(id)
|
195
|
+
p result
|
196
|
+
rescue Clever::ApiError => e
|
197
|
+
puts "Exception when calling SectionsApi->get_section: #{e}"
|
198
|
+
end
|
199
|
+
```
|
200
|
+
|
201
|
+
### Parameters
|
202
|
+
|
203
|
+
Name | Type | Description | Notes
|
204
|
+
------------- | ------------- | ------------- | -------------
|
205
|
+
**id** | **String**| |
|
206
|
+
|
207
|
+
### Return type
|
208
|
+
|
209
|
+
[**SectionResponse**](SectionResponse.md)
|
210
|
+
|
211
|
+
### Authorization
|
212
|
+
|
213
|
+
[oauth](../README.md#oauth)
|
214
|
+
|
215
|
+
### HTTP request headers
|
216
|
+
|
217
|
+
- **Content-Type**: Not defined
|
218
|
+
- **Accept**: application/json
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
# **get_sections**
|
223
|
+
> SectionsResponse get_sections(opts)
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
Returns a list of sections
|
228
|
+
|
229
|
+
### Example
|
230
|
+
```ruby
|
231
|
+
# load the gem
|
232
|
+
require 'clever-ruby'
|
233
|
+
# setup authorization
|
234
|
+
Clever.configure do |config|
|
235
|
+
# Configure OAuth2 access token for authorization: oauth
|
236
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
237
|
+
end
|
238
|
+
|
239
|
+
api_instance = Clever::SectionsApi.new
|
240
|
+
|
241
|
+
opts = {
|
242
|
+
limit: 56, # Integer |
|
243
|
+
starting_after: 'starting_after_example', # String |
|
244
|
+
ending_before: 'ending_before_example', # String |
|
245
|
+
count: 'count_example' # String |
|
246
|
+
}
|
247
|
+
|
248
|
+
begin
|
249
|
+
result = api_instance.get_sections(opts)
|
250
|
+
p result
|
251
|
+
rescue Clever::ApiError => e
|
252
|
+
puts "Exception when calling SectionsApi->get_sections: #{e}"
|
253
|
+
end
|
254
|
+
```
|
255
|
+
|
256
|
+
### Parameters
|
257
|
+
|
258
|
+
Name | Type | Description | Notes
|
259
|
+
------------- | ------------- | ------------- | -------------
|
260
|
+
**limit** | **Integer**| | [optional]
|
261
|
+
**starting_after** | **String**| | [optional]
|
262
|
+
**ending_before** | **String**| | [optional]
|
263
|
+
**count** | **String**| | [optional]
|
264
|
+
|
265
|
+
### Return type
|
266
|
+
|
267
|
+
[**SectionsResponse**](SectionsResponse.md)
|
268
|
+
|
269
|
+
### Authorization
|
270
|
+
|
271
|
+
[oauth](../README.md#oauth)
|
272
|
+
|
273
|
+
### HTTP request headers
|
274
|
+
|
275
|
+
- **Content-Type**: Not defined
|
276
|
+
- **Accept**: application/json
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
# **get_students_for_section**
|
281
|
+
> StudentsResponse get_students_for_section(id, opts)
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
Returns the students for a section
|
286
|
+
|
287
|
+
### Example
|
288
|
+
```ruby
|
289
|
+
# load the gem
|
290
|
+
require 'clever-ruby'
|
291
|
+
# setup authorization
|
292
|
+
Clever.configure do |config|
|
293
|
+
# Configure OAuth2 access token for authorization: oauth
|
294
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
295
|
+
end
|
296
|
+
|
297
|
+
api_instance = Clever::SectionsApi.new
|
298
|
+
|
299
|
+
id = 'id_example' # String |
|
300
|
+
|
301
|
+
opts = {
|
302
|
+
limit: 56, # Integer |
|
303
|
+
starting_after: 'starting_after_example', # String |
|
304
|
+
ending_before: 'ending_before_example' # String |
|
305
|
+
}
|
306
|
+
|
307
|
+
begin
|
308
|
+
result = api_instance.get_students_for_section(id, opts)
|
309
|
+
p result
|
310
|
+
rescue Clever::ApiError => e
|
311
|
+
puts "Exception when calling SectionsApi->get_students_for_section: #{e}"
|
312
|
+
end
|
313
|
+
```
|
314
|
+
|
315
|
+
### Parameters
|
316
|
+
|
317
|
+
Name | Type | Description | Notes
|
318
|
+
------------- | ------------- | ------------- | -------------
|
319
|
+
**id** | **String**| |
|
320
|
+
**limit** | **Integer**| | [optional]
|
321
|
+
**starting_after** | **String**| | [optional]
|
322
|
+
**ending_before** | **String**| | [optional]
|
323
|
+
|
324
|
+
### Return type
|
325
|
+
|
326
|
+
[**StudentsResponse**](StudentsResponse.md)
|
327
|
+
|
328
|
+
### Authorization
|
329
|
+
|
330
|
+
[oauth](../README.md#oauth)
|
331
|
+
|
332
|
+
### HTTP request headers
|
333
|
+
|
334
|
+
- **Content-Type**: Not defined
|
335
|
+
- **Accept**: application/json
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
# **get_teacher_for_section**
|
340
|
+
> TeacherResponse get_teacher_for_section(id)
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
Returns the primary teacher for a section
|
345
|
+
|
346
|
+
### Example
|
347
|
+
```ruby
|
348
|
+
# load the gem
|
349
|
+
require 'clever-ruby'
|
350
|
+
# setup authorization
|
351
|
+
Clever.configure do |config|
|
352
|
+
# Configure OAuth2 access token for authorization: oauth
|
353
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
354
|
+
end
|
355
|
+
|
356
|
+
api_instance = Clever::SectionsApi.new
|
357
|
+
|
358
|
+
id = 'id_example' # String |
|
359
|
+
|
360
|
+
|
361
|
+
begin
|
362
|
+
result = api_instance.get_teacher_for_section(id)
|
363
|
+
p result
|
364
|
+
rescue Clever::ApiError => e
|
365
|
+
puts "Exception when calling SectionsApi->get_teacher_for_section: #{e}"
|
366
|
+
end
|
367
|
+
```
|
368
|
+
|
369
|
+
### Parameters
|
370
|
+
|
371
|
+
Name | Type | Description | Notes
|
372
|
+
------------- | ------------- | ------------- | -------------
|
373
|
+
**id** | **String**| |
|
374
|
+
|
375
|
+
### Return type
|
376
|
+
|
377
|
+
[**TeacherResponse**](TeacherResponse.md)
|
378
|
+
|
379
|
+
### Authorization
|
380
|
+
|
381
|
+
[oauth](../README.md#oauth)
|
382
|
+
|
383
|
+
### HTTP request headers
|
384
|
+
|
385
|
+
- **Content-Type**: Not defined
|
386
|
+
- **Accept**: application/json
|
387
|
+
|
388
|
+
|
389
|
+
|
390
|
+
# **get_teachers_for_section**
|
391
|
+
> TeachersResponse get_teachers_for_section(id, opts)
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
Returns the teachers for a section
|
396
|
+
|
397
|
+
### Example
|
398
|
+
```ruby
|
399
|
+
# load the gem
|
400
|
+
require 'clever-ruby'
|
401
|
+
# setup authorization
|
402
|
+
Clever.configure do |config|
|
403
|
+
# Configure OAuth2 access token for authorization: oauth
|
404
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
405
|
+
end
|
406
|
+
|
407
|
+
api_instance = Clever::SectionsApi.new
|
408
|
+
|
409
|
+
id = 'id_example' # String |
|
410
|
+
|
411
|
+
opts = {
|
412
|
+
limit: 56, # Integer |
|
413
|
+
starting_after: 'starting_after_example', # String |
|
414
|
+
ending_before: 'ending_before_example' # String |
|
415
|
+
}
|
416
|
+
|
417
|
+
begin
|
418
|
+
result = api_instance.get_teachers_for_section(id, opts)
|
419
|
+
p result
|
420
|
+
rescue Clever::ApiError => e
|
421
|
+
puts "Exception when calling SectionsApi->get_teachers_for_section: #{e}"
|
422
|
+
end
|
423
|
+
```
|
424
|
+
|
425
|
+
### Parameters
|
426
|
+
|
427
|
+
Name | Type | Description | Notes
|
428
|
+
------------- | ------------- | ------------- | -------------
|
429
|
+
**id** | **String**| |
|
430
|
+
**limit** | **Integer**| | [optional]
|
431
|
+
**starting_after** | **String**| | [optional]
|
432
|
+
**ending_before** | **String**| | [optional]
|
433
|
+
|
434
|
+
### Return type
|
435
|
+
|
436
|
+
[**TeachersResponse**](TeachersResponse.md)
|
437
|
+
|
438
|
+
### Authorization
|
439
|
+
|
440
|
+
[oauth](../README.md#oauth)
|
441
|
+
|
442
|
+
### HTTP request headers
|
443
|
+
|
444
|
+
- **Content-Type**: Not defined
|
445
|
+
- **Accept**: application/json
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
# **get_term_for_section**
|
450
|
+
> TermResponse get_term_for_section(id)
|
451
|
+
|
452
|
+
|
453
|
+
|
454
|
+
Returns the term for a section
|
455
|
+
|
456
|
+
### Example
|
457
|
+
```ruby
|
458
|
+
# load the gem
|
459
|
+
require 'clever-ruby'
|
460
|
+
# setup authorization
|
461
|
+
Clever.configure do |config|
|
462
|
+
# Configure OAuth2 access token for authorization: oauth
|
463
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
464
|
+
end
|
465
|
+
|
466
|
+
api_instance = Clever::SectionsApi.new
|
467
|
+
|
468
|
+
id = 'id_example' # String |
|
469
|
+
|
470
|
+
|
471
|
+
begin
|
472
|
+
result = api_instance.get_term_for_section(id)
|
473
|
+
p result
|
474
|
+
rescue Clever::ApiError => e
|
475
|
+
puts "Exception when calling SectionsApi->get_term_for_section: #{e}"
|
476
|
+
end
|
477
|
+
```
|
478
|
+
|
479
|
+
### Parameters
|
480
|
+
|
481
|
+
Name | Type | Description | Notes
|
482
|
+
------------- | ------------- | ------------- | -------------
|
483
|
+
**id** | **String**| |
|
484
|
+
|
485
|
+
### Return type
|
486
|
+
|
487
|
+
[**TermResponse**](TermResponse.md)
|
488
|
+
|
489
|
+
### Authorization
|
490
|
+
|
491
|
+
[oauth](../README.md#oauth)
|
492
|
+
|
493
|
+
### HTTP request headers
|
494
|
+
|
495
|
+
- **Content-Type**: Not defined
|
496
|
+
- **Accept**: application/json
|
497
|
+
|
498
|
+
|
499
|
+
|
data/docs/SectionsCreated.md
CHANGED
@@ -3,9 +3,9 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**created** | **String** | | [optional]
|
7
|
-
**id** | **String** | | [optional]
|
8
6
|
**type** | **String** | |
|
7
|
+
**id** | **String** | | [optional]
|
8
|
+
**created** | **String** | | [optional]
|
9
9
|
**data** | [**SectionObject**](SectionObject.md) | | [optional]
|
10
10
|
|
11
11
|
|
data/docs/SectionsDeleted.md
CHANGED
@@ -3,9 +3,9 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**created** | **String** | | [optional]
|
7
|
-
**id** | **String** | | [optional]
|
8
6
|
**type** | **String** | |
|
7
|
+
**id** | **String** | | [optional]
|
8
|
+
**created** | **String** | | [optional]
|
9
9
|
**data** | [**SectionObject**](SectionObject.md) | | [optional]
|
10
10
|
|
11
11
|
|
data/docs/SectionsUpdated.md
CHANGED
@@ -3,9 +3,9 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**created** | **String** | | [optional]
|
7
|
-
**id** | **String** | | [optional]
|
8
6
|
**type** | **String** | |
|
7
|
+
**id** | **String** | | [optional]
|
8
|
+
**created** | **String** | | [optional]
|
9
9
|
**data** | [**SectionObject**](SectionObject.md) | | [optional]
|
10
10
|
**previous_attributes** | **Object** | | [optional]
|
11
11
|
|
data/docs/Student.md
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | | [optional]
|
6
7
|
**created** | **String** | | [optional]
|
7
8
|
**credentials** | [**Credentials**](Credentials.md) | | [optional]
|
8
9
|
**district** | **String** | | [optional]
|
@@ -10,13 +11,11 @@ Name | Type | Description | Notes
|
|
10
11
|
**ell_status** | **String** | | [optional]
|
11
12
|
**email** | **String** | | [optional]
|
12
13
|
**enrollments** | [**Array<SchoolEnrollment>**](SchoolEnrollment.md) | | [optional]
|
13
|
-
**ext** | **Object** | | [optional]
|
14
14
|
**gender** | **String** | | [optional]
|
15
|
-
**grade** | **String** | | [optional]
|
16
15
|
**graduation_year** | **String** | | [optional]
|
16
|
+
**grade** | **String** | | [optional]
|
17
17
|
**hispanic_ethnicity** | **String** | | [optional]
|
18
18
|
**home_language** | **String** | | [optional]
|
19
|
-
**id** | **String** | | [optional]
|
20
19
|
**iep_status** | **String** | | [optional]
|
21
20
|
**last_modified** | **String** | | [optional]
|
22
21
|
**location** | [**Location**](Location.md) | | [optional]
|
@@ -29,5 +28,6 @@ Name | Type | Description | Notes
|
|
29
28
|
**student_number** | **String** | | [optional]
|
30
29
|
**unweighted_gpa** | **String** | | [optional]
|
31
30
|
**weighted_gpa** | **String** | | [optional]
|
31
|
+
**ext** | **Object** | | [optional]
|
32
32
|
|
33
33
|
|