flat_api 0.1.2 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/flat_api/api/account_api.rb +31 -21
- data/lib/flat_api/api/class_api.rb +1405 -405
- data/lib/flat_api/api/collection_api.rb +684 -0
- data/lib/flat_api/api/edu_resources_api.rb +851 -0
- data/lib/flat_api/api/group_api.rb +81 -55
- data/lib/flat_api/api/organization_api.rb +524 -180
- data/lib/flat_api/api/score_api.rb +1034 -570
- data/lib/flat_api/api/task_api.rb +85 -0
- data/lib/flat_api/api/user_api.rb +114 -76
- data/lib/flat_api/api_client.rb +112 -107
- data/lib/flat_api/api_error.rb +24 -4
- data/lib/flat_api/configuration.rb +105 -16
- data/lib/flat_api/models/api_access_token.rb +268 -0
- data/lib/flat_api/models/app_scopes.rb +59 -0
- data/lib/flat_api/models/assignment.rb +192 -101
- data/lib/flat_api/models/assignment_capabilities.rb +283 -0
- data/lib/flat_api/models/assignment_capabilities_can_publish_in_class_error.rb +240 -0
- data/lib/flat_api/models/assignment_copy.rb +80 -169
- data/lib/flat_api/models/assignment_copy_response.rb +430 -0
- data/lib/flat_api/models/assignment_copy_to_class.rb +243 -0
- data/lib/flat_api/models/assignment_copy_to_resource_library.rb +233 -0
- data/lib/flat_api/models/assignment_submission.rb +249 -66
- data/lib/flat_api/models/assignment_submission_comment.rb +276 -0
- data/lib/flat_api/models/assignment_submission_comment_creation.rb +223 -0
- data/lib/flat_api/models/assignment_submission_comments.rb +225 -0
- data/lib/flat_api/models/assignment_submission_history.rb +384 -0
- data/lib/flat_api/models/assignment_submission_history_attachment.rb +235 -0
- data/lib/flat_api/models/assignment_submission_history_state.rb +43 -0
- data/lib/flat_api/models/assignment_submission_lti.rb +222 -0
- data/lib/flat_api/models/assignment_submission_playback_inner.rb +240 -0
- data/lib/flat_api/models/assignment_submission_state.rb +42 -0
- data/lib/flat_api/models/assignment_submission_update.rb +150 -50
- data/lib/flat_api/models/assignment_type.rb +44 -0
- data/lib/flat_api/models/assignment_update.rb +407 -0
- data/lib/flat_api/models/class_assignment.rb +613 -0
- data/lib/flat_api/models/class_assignment_all_of_canvas.rb +226 -0
- data/lib/flat_api/models/class_assignment_all_of_lti.rb +216 -0
- data/lib/flat_api/models/class_assignment_all_of_mfc.rb +226 -0
- data/lib/flat_api/models/class_assignment_update.rb +509 -0
- data/lib/flat_api/models/class_assignment_update_all_of_google_classroom.rb +217 -0
- data/lib/flat_api/models/class_assignment_update_all_of_microsoft_graph.rb +219 -0
- data/lib/flat_api/models/class_attachment_creation.rb +110 -41
- data/lib/flat_api/models/class_creation.rb +144 -43
- data/lib/flat_api/models/class_details.rb +175 -60
- data/lib/flat_api/models/class_details_canvas.rb +61 -34
- data/lib/flat_api/models/class_details_clever.rb +76 -48
- data/lib/flat_api/models/class_details_google_classroom.rb +66 -59
- data/lib/flat_api/models/class_details_google_drive.rb +63 -36
- data/lib/flat_api/models/class_details_issues.rb +218 -0
- data/lib/flat_api/models/class_details_issues_sync_inner.rb +270 -0
- data/lib/flat_api/models/class_details_lti.rb +65 -38
- data/lib/flat_api/models/class_details_mfc.rb +226 -0
- data/lib/flat_api/models/class_details_microsoft_graph.rb +215 -0
- data/lib/flat_api/models/class_grade_level.rb +43 -0
- data/lib/flat_api/models/class_roles.rb +18 -9
- data/lib/flat_api/models/class_state.rb +18 -9
- data/lib/flat_api/models/class_update.rb +144 -42
- data/lib/flat_api/models/collection.rb +373 -0
- data/lib/flat_api/models/collection_app.rb +236 -0
- data/lib/flat_api/models/collection_capabilities.rb +291 -0
- data/lib/flat_api/models/collection_creation.rb +288 -0
- data/lib/flat_api/models/collection_modification.rb +275 -0
- data/lib/flat_api/models/collection_privacy.rb +39 -0
- data/lib/flat_api/models/collection_type.rb +44 -0
- data/lib/flat_api/models/edu_library.rb +292 -0
- data/lib/flat_api/models/edu_resource.rb +366 -0
- data/lib/flat_api/models/edu_resource_capabilities.rb +236 -0
- data/lib/flat_api/models/edu_resource_copy.rb +223 -0
- data/lib/flat_api/models/edu_resource_creation.rb +301 -0
- data/lib/flat_api/models/edu_resource_folder.rb +216 -0
- data/lib/flat_api/models/edu_resource_lti_link.rb +223 -0
- data/lib/flat_api/models/edu_resource_move.rb +223 -0
- data/lib/flat_api/models/edu_resource_privacy.rb +41 -0
- data/lib/flat_api/models/edu_resource_resource.rb +105 -0
- data/lib/flat_api/models/edu_resource_type.rb +40 -0
- data/lib/flat_api/models/edu_resource_update.rb +277 -0
- data/lib/flat_api/models/edu_resource_use_in_class.rb +233 -0
- data/lib/flat_api/models/flat_error_response.rb +79 -38
- data/lib/flat_api/models/flat_locales.rb +30 -10
- data/lib/flat_api/models/google_classroom_coursework.rb +76 -38
- data/lib/flat_api/models/google_classroom_submission.rb +84 -36
- data/lib/flat_api/models/group.rb +72 -44
- data/lib/flat_api/models/group_details.rb +92 -43
- data/lib/flat_api/models/group_type.rb +18 -9
- data/lib/flat_api/models/license_mode.rb +18 -9
- data/lib/flat_api/models/license_sources.rb +21 -9
- data/lib/flat_api/models/lms_name.rb +19 -9
- data/lib/flat_api/models/lti_credentials.rb +95 -46
- data/lib/flat_api/models/lti_credentials_creation.rb +91 -38
- data/lib/flat_api/models/media_attachment.rb +167 -70
- data/lib/flat_api/models/media_score_sharing_mode.rb +19 -9
- data/lib/flat_api/models/microsoft_graph_assignment.rb +248 -0
- data/lib/flat_api/models/microsoft_graph_submission.rb +240 -0
- data/lib/flat_api/models/organization_invitation.rb +139 -44
- data/lib/flat_api/models/organization_invitation_creation.rb +99 -35
- data/lib/flat_api/models/organization_roles.rb +18 -9
- data/lib/flat_api/models/organization_user_access_token_creation.rb +225 -0
- data/lib/flat_api/models/resource_collaborator.rb +403 -0
- data/lib/flat_api/models/{score_collaborator_creation.rb → resource_collaborator_creation.rb} +85 -48
- data/lib/flat_api/models/resource_rights.rb +318 -0
- data/lib/flat_api/models/score_comment.rb +93 -56
- data/lib/flat_api/models/score_comment_context.rb +103 -59
- data/lib/flat_api/models/score_comment_creation.rb +70 -41
- data/lib/flat_api/models/score_comment_moderation.rb +260 -0
- data/lib/flat_api/models/score_comment_update.rb +82 -49
- data/lib/flat_api/models/score_comments_counts.rb +67 -40
- data/lib/flat_api/models/score_creation.rb +81 -215
- data/lib/flat_api/models/score_creation_builder_data.rb +298 -0
- data/lib/flat_api/models/score_creation_builder_data_all_of_builder_data.rb +230 -0
- data/lib/flat_api/models/score_creation_builder_data_all_of_builder_data_layout_data.rb +322 -0
- data/lib/flat_api/models/score_creation_builder_data_all_of_builder_data_score_data.rb +274 -0
- data/lib/flat_api/models/score_creation_builder_data_all_of_builder_data_score_data_instruments.rb +269 -0
- data/lib/flat_api/models/score_creation_common.rb +268 -0
- data/lib/flat_api/models/score_creation_file_import.rb +324 -0
- data/lib/flat_api/models/score_creation_google_drive_import.rb +291 -0
- data/lib/flat_api/models/score_creation_type.rb +19 -9
- data/lib/flat_api/models/score_details.rb +274 -83
- data/lib/flat_api/models/score_fork.rb +94 -32
- data/lib/flat_api/models/score_license.rb +19 -9
- data/lib/flat_api/models/score_likes_counts.rb +83 -35
- data/lib/flat_api/models/score_modification.rb +175 -52
- data/lib/flat_api/models/score_plays_counts.rb +236 -0
- data/lib/flat_api/models/score_privacy.rb +18 -9
- data/lib/flat_api/models/score_revision.rb +80 -43
- data/lib/flat_api/models/score_revision_creation.rb +105 -40
- data/lib/flat_api/models/score_revision_statistics.rb +83 -36
- data/lib/flat_api/models/score_source.rb +61 -35
- data/lib/flat_api/models/score_summary.rb +124 -40
- data/lib/flat_api/models/score_track.rb +172 -51
- data/lib/flat_api/models/score_track_creation.rb +101 -39
- data/lib/flat_api/models/score_track_point.rb +70 -38
- data/lib/flat_api/models/score_track_purpose.rb +40 -0
- data/lib/flat_api/models/score_track_state.rb +18 -9
- data/lib/flat_api/models/score_track_type.rb +18 -9
- data/lib/flat_api/models/score_track_update.rb +88 -37
- data/lib/flat_api/models/score_views_counts.rb +62 -35
- data/lib/flat_api/models/task.rb +364 -0
- data/lib/flat_api/models/task_export_options.rb +218 -0
- data/lib/flat_api/models/task_progress.rb +226 -0
- data/lib/flat_api/models/task_result.rb +226 -0
- data/lib/flat_api/models/tutteo_product.rb +42 -0
- data/lib/flat_api/models/user_admin_update.rb +219 -41
- data/lib/flat_api/models/user_azure_details.rb +235 -0
- data/lib/flat_api/models/user_basics.rb +187 -55
- data/lib/flat_api/models/user_community_profile_links.rb +272 -0
- data/lib/flat_api/models/user_creation.rb +215 -49
- data/lib/flat_api/models/user_details.rb +258 -93
- data/lib/flat_api/models/user_details_admin.rb +220 -68
- data/lib/flat_api/models/user_details_admin_all_of_license.rb +278 -0
- data/lib/flat_api/models/user_public.rb +242 -79
- data/lib/flat_api/models/user_public_summary.rb +201 -61
- data/lib/flat_api/models/user_signin_link.rb +225 -0
- data/lib/flat_api/models/user_signin_link_creation.rb +217 -0
- data/lib/flat_api/version.rb +5 -5
- data/lib/flat_api.rb +87 -15
- data/spec/api/account_api_spec.rb +11 -10
- data/spec/api/class_api_spec.rb +212 -68
- data/spec/api/collection_api_spec.rb +158 -0
- data/spec/api/edu_resources_api_spec.rb +181 -0
- data/spec/api/group_api_spec.rb +14 -15
- data/spec/api/organization_api_spec.rb +78 -39
- data/spec/api/score_api_spec.rb +139 -110
- data/spec/api/task_api_spec.rb +47 -0
- data/spec/api/user_api_spec.rb +28 -26
- data/spec/models/api_access_token_spec.rb +66 -0
- data/spec/models/app_scopes_spec.rb +30 -0
- data/spec/models/assignment_capabilities_can_publish_in_class_error_spec.rb +42 -0
- data/spec/models/assignment_capabilities_spec.rb +60 -0
- data/spec/models/assignment_copy_response_spec.rb +124 -0
- data/spec/models/assignment_copy_spec.rb +13 -23
- data/spec/models/assignment_copy_to_class_spec.rb +48 -0
- data/spec/models/assignment_copy_to_resource_library_spec.rb +42 -0
- data/spec/models/assignment_spec.rb +51 -39
- data/spec/models/assignment_submission_comment_creation_spec.rb +36 -0
- data/spec/models/assignment_submission_comment_spec.rb +72 -0
- data/spec/models/assignment_submission_comments_spec.rb +42 -0
- data/spec/models/assignment_submission_history_attachment_spec.rb +48 -0
- data/spec/models/assignment_submission_history_spec.rb +112 -0
- data/spec/models/assignment_submission_history_state_spec.rb +30 -0
- data/spec/models/assignment_submission_lti_spec.rb +36 -0
- data/spec/models/assignment_submission_playback_inner_spec.rb +42 -0
- data/spec/models/assignment_submission_spec.rb +68 -32
- data/spec/models/assignment_submission_state_spec.rb +30 -0
- data/spec/models/assignment_submission_update_spec.rb +29 -23
- data/spec/models/assignment_type_spec.rb +30 -0
- data/spec/models/assignment_update_spec.rb +100 -0
- data/spec/models/class_assignment_all_of_canvas_spec.rb +42 -0
- data/spec/models/class_assignment_all_of_lti_spec.rb +36 -0
- data/spec/models/class_assignment_all_of_mfc_spec.rb +42 -0
- data/spec/models/class_assignment_spec.rb +216 -0
- data/spec/models/class_assignment_update_all_of_google_classroom_spec.rb +36 -0
- data/spec/models/class_assignment_update_all_of_microsoft_graph_spec.rb +36 -0
- data/spec/models/class_assignment_update_spec.rb +150 -0
- data/spec/models/class_attachment_creation_spec.rb +41 -23
- data/spec/models/class_creation_spec.rb +34 -18
- data/spec/models/class_details_canvas_spec.rb +12 -18
- data/spec/models/class_details_clever_spec.rb +21 -27
- data/spec/models/class_details_google_classroom_spec.rb +12 -30
- data/spec/models/class_details_google_drive_spec.rb +12 -18
- data/spec/models/class_details_issues_spec.rb +36 -0
- data/spec/models/class_details_issues_sync_inner_spec.rb +52 -0
- data/spec/models/class_details_lti_spec.rb +13 -19
- data/spec/models/class_details_mfc_spec.rb +42 -0
- data/spec/models/class_details_microsoft_graph_spec.rb +36 -0
- data/spec/models/class_details_spec.rb +68 -34
- data/spec/models/class_grade_level_spec.rb +30 -0
- data/spec/models/class_roles_spec.rb +10 -16
- data/spec/models/class_state_spec.rb +10 -16
- data/spec/models/class_update_spec.rb +34 -18
- data/spec/models/collection_app_spec.rb +48 -0
- data/spec/models/collection_capabilities_spec.rb +60 -0
- data/spec/models/collection_creation_spec.rb +42 -0
- data/spec/models/collection_modification_spec.rb +42 -0
- data/spec/models/collection_privacy_spec.rb +30 -0
- data/spec/models/collection_spec.rb +114 -0
- data/spec/models/collection_type_spec.rb +30 -0
- data/spec/models/edu_library_spec.rb +62 -0
- data/spec/models/edu_resource_capabilities_spec.rb +48 -0
- data/spec/models/edu_resource_copy_spec.rb +36 -0
- data/spec/models/edu_resource_creation_spec.rb +48 -0
- data/spec/models/edu_resource_folder_spec.rb +36 -0
- data/spec/models/edu_resource_lti_link_spec.rb +36 -0
- data/spec/models/edu_resource_move_spec.rb +36 -0
- data/spec/models/edu_resource_privacy_spec.rb +30 -0
- data/spec/models/edu_resource_resource_spec.rb +32 -0
- data/spec/models/edu_resource_spec.rb +96 -0
- data/spec/models/edu_resource_type_spec.rb +30 -0
- data/spec/models/edu_resource_update_spec.rb +42 -0
- data/spec/models/edu_resource_use_in_class_spec.rb +42 -0
- data/spec/models/flat_error_response_spec.rb +14 -20
- data/spec/models/flat_locales_spec.rb +10 -16
- data/spec/models/google_classroom_coursework_spec.rb +19 -19
- data/spec/models/google_classroom_submission_spec.rb +13 -19
- data/spec/models/group_details_spec.rb +17 -23
- data/spec/models/group_spec.rb +21 -27
- data/spec/models/group_type_spec.rb +10 -16
- data/spec/models/license_mode_spec.rb +10 -16
- data/spec/models/license_sources_spec.rb +10 -16
- data/spec/models/lms_name_spec.rb +10 -16
- data/spec/models/lti_credentials_creation_spec.rb +12 -18
- data/spec/models/lti_credentials_spec.rb +19 -25
- data/spec/models/media_attachment_spec.rb +67 -37
- data/spec/models/media_score_sharing_mode_spec.rb +10 -16
- data/spec/models/microsoft_graph_assignment_spec.rb +54 -0
- data/spec/models/microsoft_graph_submission_spec.rb +42 -0
- data/spec/models/organization_invitation_creation_spec.rb +16 -18
- data/spec/models/organization_invitation_spec.rb +29 -23
- data/spec/models/organization_roles_spec.rb +10 -16
- data/spec/models/organization_user_access_token_creation_spec.rb +36 -0
- data/spec/models/resource_collaborator_creation_spec.rb +72 -0
- data/spec/models/resource_collaborator_spec.rb +112 -0
- data/spec/models/resource_rights_spec.rb +64 -0
- data/spec/models/score_comment_context_spec.rb +23 -23
- data/spec/models/score_comment_creation_spec.rb +16 -22
- data/spec/models/score_comment_moderation_spec.rb +46 -0
- data/spec/models/score_comment_spec.rb +35 -35
- data/spec/models/score_comment_update_spec.rb +14 -20
- data/spec/models/score_comments_counts_spec.rb +14 -20
- data/spec/models/score_creation_builder_data_all_of_builder_data_layout_data_spec.rb +82 -0
- data/spec/models/score_creation_builder_data_all_of_builder_data_score_data_instruments_spec.rb +60 -0
- data/spec/models/score_creation_builder_data_all_of_builder_data_score_data_spec.rb +66 -0
- data/spec/models/score_creation_builder_data_all_of_builder_data_spec.rb +42 -0
- data/spec/models/score_creation_builder_data_spec.rb +60 -0
- data/spec/models/score_creation_common_spec.rb +54 -0
- data/spec/models/score_creation_file_import_spec.rb +76 -0
- data/spec/models/score_creation_google_drive_import_spec.rb +60 -0
- data/spec/models/score_creation_spec.rb +12 -52
- data/spec/models/score_creation_type_spec.rb +10 -16
- data/spec/models/score_details_spec.rb +75 -45
- data/spec/models/score_fork_spec.rb +27 -15
- data/spec/models/score_license_spec.rb +10 -16
- data/spec/models/score_likes_counts_spec.rb +13 -19
- data/spec/models/score_modification_spec.rb +51 -21
- data/spec/models/score_plays_counts_spec.rb +48 -0
- data/spec/models/score_privacy_spec.rb +10 -16
- data/spec/models/score_revision_creation_spec.rb +18 -20
- data/spec/models/score_revision_spec.rb +23 -23
- data/spec/models/score_revision_statistics_spec.rb +24 -18
- data/spec/models/score_source_spec.rb +11 -17
- data/spec/models/score_summary_spec.rb +16 -22
- data/spec/models/score_track_creation_spec.rb +21 -21
- data/spec/models/score_track_point_spec.rb +17 -23
- data/spec/models/score_track_purpose_spec.rb +30 -0
- data/spec/models/score_track_spec.rb +28 -28
- data/spec/models/score_track_state_spec.rb +10 -16
- data/spec/models/score_track_type_spec.rb +10 -16
- data/spec/models/score_track_update_spec.rb +14 -20
- data/spec/models/score_views_counts_spec.rb +13 -19
- data/spec/models/task_export_options_spec.rb +36 -0
- data/spec/models/task_progress_spec.rb +42 -0
- data/spec/models/task_result_spec.rb +42 -0
- data/spec/models/task_spec.rb +100 -0
- data/spec/models/tutteo_product_spec.rb +30 -0
- data/spec/models/user_admin_update_spec.rb +36 -18
- data/spec/models/user_azure_details_spec.rb +48 -0
- data/spec/models/user_basics_spec.rb +47 -25
- data/spec/models/user_community_profile_links_spec.rb +66 -0
- data/spec/models/user_creation_spec.rb +36 -20
- data/spec/models/user_details_admin_all_of_license_spec.rb +60 -0
- data/spec/models/user_details_admin_spec.rb +60 -32
- data/spec/models/user_details_spec.rb +93 -45
- data/spec/models/user_public_spec.rb +71 -37
- data/spec/models/user_public_summary_spec.rb +51 -29
- data/spec/models/user_signin_link_creation_spec.rb +36 -0
- data/spec/models/user_signin_link_spec.rb +42 -0
- data/spec/spec_helper.rb +4 -4
- metadata +299 -312
- data/CHANGELOG.md +0 -13
- data/Gemfile +0 -7
- data/README.md +0 -249
- data/Rakefile +0 -8
- data/docs/AccountApi.md +0 -55
- data/docs/Assignment.md +0 -18
- data/docs/AssignmentCopy.md +0 -8
- data/docs/AssignmentCreation.md +0 -12
- data/docs/AssignmentSubmission.md +0 -19
- data/docs/AssignmentSubmissionUpdate.md +0 -11
- data/docs/ClassApi.md +0 -1051
- data/docs/ClassAttachmentCreation.md +0 -10
- data/docs/ClassCreation.md +0 -9
- data/docs/ClassDetails.md +0 -25
- data/docs/ClassDetailsCanvas.md +0 -9
- data/docs/ClassDetailsClever.md +0 -14
- data/docs/ClassDetailsGoogleClassroom.md +0 -11
- data/docs/ClassDetailsGoogleDrive.md +0 -9
- data/docs/ClassDetailsLti.md +0 -10
- data/docs/ClassRoles.md +0 -7
- data/docs/ClassState.md +0 -7
- data/docs/ClassUpdate.md +0 -9
- data/docs/FlatErrorResponse.md +0 -11
- data/docs/FlatLocales.md +0 -7
- data/docs/GoogleClassroomCoursework.md +0 -10
- data/docs/GoogleClassroomSubmission.md +0 -10
- data/docs/Group.md +0 -14
- data/docs/GroupApi.md +0 -167
- data/docs/GroupDetails.md +0 -14
- data/docs/GroupType.md +0 -7
- data/docs/LicenseMode.md +0 -7
- data/docs/LicenseSources.md +0 -7
- data/docs/LmsName.md +0 -7
- data/docs/LtiCredentials.md +0 -16
- data/docs/LtiCredentialsCreation.md +0 -9
- data/docs/MediaAttachment.md +0 -23
- data/docs/MediaScoreSharingMode.md +0 -7
- data/docs/OrganizationApi.md +0 -538
- data/docs/OrganizationInvitation.md +0 -14
- data/docs/OrganizationInvitationCreation.md +0 -9
- data/docs/OrganizationRoles.md +0 -7
- data/docs/ScoreApi.md +0 -1605
- data/docs/ScoreCollaborator.md +0 -15
- data/docs/ScoreCollaboratorCreation.md +0 -13
- data/docs/ScoreComment.md +0 -22
- data/docs/ScoreCommentContext.md +0 -14
- data/docs/ScoreCommentCreation.md +0 -13
- data/docs/ScoreCommentUpdate.md +0 -11
- data/docs/ScoreCommentsCounts.md +0 -11
- data/docs/ScoreCreation.md +0 -13
- data/docs/ScoreCreationType.md +0 -7
- data/docs/ScoreData.md +0 -7
- data/docs/ScoreDataEncoding.md +0 -7
- data/docs/ScoreDetails.md +0 -36
- data/docs/ScoreFork.md +0 -7
- data/docs/ScoreLicense.md +0 -7
- data/docs/ScoreLikesCounts.md +0 -10
- data/docs/ScoreModification.md +0 -13
- data/docs/ScorePrivacy.md +0 -7
- data/docs/ScoreRevision.md +0 -14
- data/docs/ScoreRevisionCreation.md +0 -11
- data/docs/ScoreRevisionStatistics.md +0 -9
- data/docs/ScoreRights.md +0 -10
- data/docs/ScoreSource.md +0 -8
- data/docs/ScoreSummary.md +0 -13
- data/docs/ScoreTrack.md +0 -19
- data/docs/ScoreTrackCreation.md +0 -12
- data/docs/ScoreTrackPoint.md +0 -10
- data/docs/ScoreTrackState.md +0 -7
- data/docs/ScoreTrackType.md +0 -7
- data/docs/ScoreTrackUpdate.md +0 -11
- data/docs/ScoreViewsCounts.md +0 -10
- data/docs/UserAdminUpdate.md +0 -9
- data/docs/UserApi.md +0 -173
- data/docs/UserBasics.md +0 -13
- data/docs/UserCreation.md +0 -11
- data/docs/UserDetails.md +0 -28
- data/docs/UserDetailsAdmin.md +0 -20
- data/docs/UserDetailsAdminLicense.md +0 -12
- data/docs/UserInstruments.md +0 -7
- data/docs/UserPublic.md +0 -25
- data/docs/UserPublicSummary.md +0 -17
- data/flat_api.gemspec +0 -48
- data/git_push.sh +0 -55
- data/lib/flat_api/models/assignment_creation.rb +0 -230
- data/lib/flat_api/models/score_collaborator.rb +0 -263
- data/lib/flat_api/models/score_data.rb +0 -179
- data/lib/flat_api/models/score_data_encoding.rb +0 -30
- data/lib/flat_api/models/score_rights.rb +0 -215
- data/lib/flat_api/models/user_details_admin_license.rb +0 -227
- data/lib/flat_api/models/user_instruments.rb +0 -179
- data/spec/api_client_spec.rb +0 -226
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/assignment_creation_spec.rb +0 -66
- data/spec/models/score_collaborator_creation_spec.rb +0 -72
- data/spec/models/score_collaborator_spec.rb +0 -84
- data/spec/models/score_data_encoding_spec.rb +0 -36
- data/spec/models/score_data_spec.rb +0 -36
- data/spec/models/score_rights_spec.rb +0 -48
- data/spec/models/user_details_admin_license_spec.rb +0 -66
- data/spec/models/user_instruments_spec.rb +0 -36
data/docs/ClassApi.md
DELETED
@@ -1,1051 +0,0 @@
|
|
1
|
-
# FlatApi::ClassApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://api.flat.io/v2*
|
4
|
-
|
5
|
-
Method | HTTP request | Description
|
6
|
-
------------- | ------------- | -------------
|
7
|
-
[**activate_class**](ClassApi.md#activate_class) | **POST** /classes/{class}/activate | Activate the class
|
8
|
-
[**add_class_user**](ClassApi.md#add_class_user) | **PUT** /classes/{class}/users/{user} | Add a user to the class
|
9
|
-
[**archive_class**](ClassApi.md#archive_class) | **POST** /classes/{class}/archive | Archive the class
|
10
|
-
[**copy_assignment**](ClassApi.md#copy_assignment) | **POST** /classes/{class}/assignments/{assignment}/copy | Copy an assignment
|
11
|
-
[**create_assignment**](ClassApi.md#create_assignment) | **POST** /classes/{class}/assignments | Assignment creation
|
12
|
-
[**create_class**](ClassApi.md#create_class) | **POST** /classes | Create a new class
|
13
|
-
[**create_submission**](ClassApi.md#create_submission) | **PUT** /classes/{class}/assignments/{assignment}/submissions | Create or edit a submission
|
14
|
-
[**delete_class_user**](ClassApi.md#delete_class_user) | **DELETE** /classes/{class}/users/{user} | Remove a user from the class
|
15
|
-
[**edit_submission**](ClassApi.md#edit_submission) | **PUT** /classes/{class}/assignments/{assignment}/submissions/{submission} | Edit a submission
|
16
|
-
[**enroll_class**](ClassApi.md#enroll_class) | **POST** /classes/enroll/{enrollmentCode} | Join a class
|
17
|
-
[**get_class**](ClassApi.md#get_class) | **GET** /classes/{class} | Get the details of a single class
|
18
|
-
[**get_score_submissions**](ClassApi.md#get_score_submissions) | **GET** /scores/{score}/submissions | List submissions related to the score
|
19
|
-
[**get_submission**](ClassApi.md#get_submission) | **GET** /classes/{class}/assignments/{assignment}/submissions/{submission} | Get a student submission
|
20
|
-
[**get_submissions**](ClassApi.md#get_submissions) | **GET** /classes/{class}/assignments/{assignment}/submissions | List the students' submissions
|
21
|
-
[**list_assignments**](ClassApi.md#list_assignments) | **GET** /classes/{class}/assignments | Assignments listing
|
22
|
-
[**list_class_student_submissions**](ClassApi.md#list_class_student_submissions) | **GET** /classes/{class}/students/{user}/submissions | List the submissions for a student
|
23
|
-
[**list_classes**](ClassApi.md#list_classes) | **GET** /classes | List the classes available for the current user
|
24
|
-
[**unarchive_class**](ClassApi.md#unarchive_class) | **DELETE** /classes/{class}/archive | Unarchive the class
|
25
|
-
[**update_class**](ClassApi.md#update_class) | **PUT** /classes/{class} | Update the class
|
26
|
-
|
27
|
-
|
28
|
-
# **activate_class**
|
29
|
-
> ClassDetails activate_class(_class)
|
30
|
-
|
31
|
-
Activate the class
|
32
|
-
|
33
|
-
Mark the class as `active`. This is mainly used for classes synchronized from Clever that are initially with an `inactive` state and hidden in the UI.
|
34
|
-
|
35
|
-
### Example
|
36
|
-
```ruby
|
37
|
-
# load the gem
|
38
|
-
require 'flat_api'
|
39
|
-
# setup authorization
|
40
|
-
FlatApi.configure do |config|
|
41
|
-
# Configure OAuth2 access token for authorization: OAuth2
|
42
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
43
|
-
end
|
44
|
-
|
45
|
-
api_instance = FlatApi::ClassApi.new
|
46
|
-
|
47
|
-
_class = "_class_example" # String | Unique identifier of the class
|
48
|
-
|
49
|
-
|
50
|
-
begin
|
51
|
-
#Activate the class
|
52
|
-
result = api_instance.activate_class(_class)
|
53
|
-
p result
|
54
|
-
rescue FlatApi::ApiError => e
|
55
|
-
puts "Exception when calling ClassApi->activate_class: #{e}"
|
56
|
-
end
|
57
|
-
```
|
58
|
-
|
59
|
-
### Parameters
|
60
|
-
|
61
|
-
Name | Type | Description | Notes
|
62
|
-
------------- | ------------- | ------------- | -------------
|
63
|
-
**_class** | **String**| Unique identifier of the class |
|
64
|
-
|
65
|
-
### Return type
|
66
|
-
|
67
|
-
[**ClassDetails**](ClassDetails.md)
|
68
|
-
|
69
|
-
### Authorization
|
70
|
-
|
71
|
-
[OAuth2](../README.md#OAuth2)
|
72
|
-
|
73
|
-
### HTTP request headers
|
74
|
-
|
75
|
-
- **Content-Type**: application/json
|
76
|
-
- **Accept**: application/json
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
# **add_class_user**
|
81
|
-
> add_class_user(_class, user)
|
82
|
-
|
83
|
-
Add a user to the class
|
84
|
-
|
85
|
-
This method can be used by a teacher of the class to enroll another Flat user into the class. Only users that are part of your Organization can be enrolled in a class of this same Organization. When enrolling a user in the class, Flat will automatically add this user to the corresponding Class group, based on this role in the Organization.
|
86
|
-
|
87
|
-
### Example
|
88
|
-
```ruby
|
89
|
-
# load the gem
|
90
|
-
require 'flat_api'
|
91
|
-
# setup authorization
|
92
|
-
FlatApi.configure do |config|
|
93
|
-
# Configure OAuth2 access token for authorization: OAuth2
|
94
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
95
|
-
end
|
96
|
-
|
97
|
-
api_instance = FlatApi::ClassApi.new
|
98
|
-
|
99
|
-
_class = "_class_example" # String | Unique identifier of the class
|
100
|
-
|
101
|
-
user = "user_example" # String | Unique identifier of the user
|
102
|
-
|
103
|
-
|
104
|
-
begin
|
105
|
-
#Add a user to the class
|
106
|
-
api_instance.add_class_user(_class, user)
|
107
|
-
rescue FlatApi::ApiError => e
|
108
|
-
puts "Exception when calling ClassApi->add_class_user: #{e}"
|
109
|
-
end
|
110
|
-
```
|
111
|
-
|
112
|
-
### Parameters
|
113
|
-
|
114
|
-
Name | Type | Description | Notes
|
115
|
-
------------- | ------------- | ------------- | -------------
|
116
|
-
**_class** | **String**| Unique identifier of the class |
|
117
|
-
**user** | **String**| Unique identifier of the user |
|
118
|
-
|
119
|
-
### Return type
|
120
|
-
|
121
|
-
nil (empty response body)
|
122
|
-
|
123
|
-
### Authorization
|
124
|
-
|
125
|
-
[OAuth2](../README.md#OAuth2)
|
126
|
-
|
127
|
-
### HTTP request headers
|
128
|
-
|
129
|
-
- **Content-Type**: application/json
|
130
|
-
- **Accept**: application/json
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
# **archive_class**
|
135
|
-
> ClassDetails archive_class(_class)
|
136
|
-
|
137
|
-
Archive the class
|
138
|
-
|
139
|
-
Mark the class as `archived`. When this course is synchronized with another app, like Google Classroom, this state will be automatically be updated.
|
140
|
-
|
141
|
-
### Example
|
142
|
-
```ruby
|
143
|
-
# load the gem
|
144
|
-
require 'flat_api'
|
145
|
-
# setup authorization
|
146
|
-
FlatApi.configure do |config|
|
147
|
-
# Configure OAuth2 access token for authorization: OAuth2
|
148
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
149
|
-
end
|
150
|
-
|
151
|
-
api_instance = FlatApi::ClassApi.new
|
152
|
-
|
153
|
-
_class = "_class_example" # String | Unique identifier of the class
|
154
|
-
|
155
|
-
|
156
|
-
begin
|
157
|
-
#Archive the class
|
158
|
-
result = api_instance.archive_class(_class)
|
159
|
-
p result
|
160
|
-
rescue FlatApi::ApiError => e
|
161
|
-
puts "Exception when calling ClassApi->archive_class: #{e}"
|
162
|
-
end
|
163
|
-
```
|
164
|
-
|
165
|
-
### Parameters
|
166
|
-
|
167
|
-
Name | Type | Description | Notes
|
168
|
-
------------- | ------------- | ------------- | -------------
|
169
|
-
**_class** | **String**| Unique identifier of the class |
|
170
|
-
|
171
|
-
### Return type
|
172
|
-
|
173
|
-
[**ClassDetails**](ClassDetails.md)
|
174
|
-
|
175
|
-
### Authorization
|
176
|
-
|
177
|
-
[OAuth2](../README.md#OAuth2)
|
178
|
-
|
179
|
-
### HTTP request headers
|
180
|
-
|
181
|
-
- **Content-Type**: application/json
|
182
|
-
- **Accept**: application/json
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
# **copy_assignment**
|
187
|
-
> Assignment copy_assignment(_class, assignment, body)
|
188
|
-
|
189
|
-
Copy an assignment
|
190
|
-
|
191
|
-
Copy an assignment to a specified class. If the original assignment has a due date in the past, this new assingment will be created without a due date. If the new class is synchronized with an external app (e.g. Google Classroom), the copied assignment will also be posted on the external app.
|
192
|
-
|
193
|
-
### Example
|
194
|
-
```ruby
|
195
|
-
# load the gem
|
196
|
-
require 'flat_api'
|
197
|
-
# setup authorization
|
198
|
-
FlatApi.configure do |config|
|
199
|
-
# Configure OAuth2 access token for authorization: OAuth2
|
200
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
201
|
-
end
|
202
|
-
|
203
|
-
api_instance = FlatApi::ClassApi.new
|
204
|
-
|
205
|
-
_class = "_class_example" # String | Unique identifier of the class
|
206
|
-
|
207
|
-
assignment = "assignment_example" # String | Unique identifier of the assignment
|
208
|
-
|
209
|
-
body = FlatApi::AssignmentCopy.new # AssignmentCopy |
|
210
|
-
|
211
|
-
|
212
|
-
begin
|
213
|
-
#Copy an assignment
|
214
|
-
result = api_instance.copy_assignment(_class, assignment, body)
|
215
|
-
p result
|
216
|
-
rescue FlatApi::ApiError => e
|
217
|
-
puts "Exception when calling ClassApi->copy_assignment: #{e}"
|
218
|
-
end
|
219
|
-
```
|
220
|
-
|
221
|
-
### Parameters
|
222
|
-
|
223
|
-
Name | Type | Description | Notes
|
224
|
-
------------- | ------------- | ------------- | -------------
|
225
|
-
**_class** | **String**| Unique identifier of the class |
|
226
|
-
**assignment** | **String**| Unique identifier of the assignment |
|
227
|
-
**body** | [**AssignmentCopy**](AssignmentCopy.md)| |
|
228
|
-
|
229
|
-
### Return type
|
230
|
-
|
231
|
-
[**Assignment**](Assignment.md)
|
232
|
-
|
233
|
-
### Authorization
|
234
|
-
|
235
|
-
[OAuth2](../README.md#OAuth2)
|
236
|
-
|
237
|
-
### HTTP request headers
|
238
|
-
|
239
|
-
- **Content-Type**: application/json
|
240
|
-
- **Accept**: application/json
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
# **create_assignment**
|
245
|
-
> Assignment create_assignment(_class, opts)
|
246
|
-
|
247
|
-
Assignment creation
|
248
|
-
|
249
|
-
Use this method as a teacher to create and post a new assignment to a class. If the class is synchronized with Google Classroom, the assignment will be automatically posted to your Classroom course.
|
250
|
-
|
251
|
-
### Example
|
252
|
-
```ruby
|
253
|
-
# load the gem
|
254
|
-
require 'flat_api'
|
255
|
-
# setup authorization
|
256
|
-
FlatApi.configure do |config|
|
257
|
-
# Configure OAuth2 access token for authorization: OAuth2
|
258
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
259
|
-
end
|
260
|
-
|
261
|
-
api_instance = FlatApi::ClassApi.new
|
262
|
-
|
263
|
-
_class = "_class_example" # String | Unique identifier of the class
|
264
|
-
|
265
|
-
opts = {
|
266
|
-
body: FlatApi::AssignmentCreation.new # AssignmentCreation |
|
267
|
-
}
|
268
|
-
|
269
|
-
begin
|
270
|
-
#Assignment creation
|
271
|
-
result = api_instance.create_assignment(_class, opts)
|
272
|
-
p result
|
273
|
-
rescue FlatApi::ApiError => e
|
274
|
-
puts "Exception when calling ClassApi->create_assignment: #{e}"
|
275
|
-
end
|
276
|
-
```
|
277
|
-
|
278
|
-
### Parameters
|
279
|
-
|
280
|
-
Name | Type | Description | Notes
|
281
|
-
------------- | ------------- | ------------- | -------------
|
282
|
-
**_class** | **String**| Unique identifier of the class |
|
283
|
-
**body** | [**AssignmentCreation**](AssignmentCreation.md)| | [optional]
|
284
|
-
|
285
|
-
### Return type
|
286
|
-
|
287
|
-
[**Assignment**](Assignment.md)
|
288
|
-
|
289
|
-
### Authorization
|
290
|
-
|
291
|
-
[OAuth2](../README.md#OAuth2)
|
292
|
-
|
293
|
-
### HTTP request headers
|
294
|
-
|
295
|
-
- **Content-Type**: application/json
|
296
|
-
- **Accept**: application/json
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
# **create_class**
|
301
|
-
> ClassDetails create_class(body)
|
302
|
-
|
303
|
-
Create a new class
|
304
|
-
|
305
|
-
Classrooms on Flat allow you to create activities with assignments and post content to a specific group. When creating a class, Flat automatically creates two groups: one for the teachers of the course, one for the students. The creator of this class is automatically added to the teachers group. If the classsroom is synchronized with another application like Google Classroom, some of the meta information will automatically be updated. You can add users to this class using `POST /classes/{class}/users/{user}`, they will automatically added to the group based on their role on Flat. Users can also enroll themselves to this class using `POST /classes/enroll/{enrollmentCode}` and the `enrollmentCode` returned in the `ClassDetails` response.
|
306
|
-
|
307
|
-
### Example
|
308
|
-
```ruby
|
309
|
-
# load the gem
|
310
|
-
require 'flat_api'
|
311
|
-
# setup authorization
|
312
|
-
FlatApi.configure do |config|
|
313
|
-
# Configure OAuth2 access token for authorization: OAuth2
|
314
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
315
|
-
end
|
316
|
-
|
317
|
-
api_instance = FlatApi::ClassApi.new
|
318
|
-
|
319
|
-
body = FlatApi::ClassCreation.new # ClassCreation |
|
320
|
-
|
321
|
-
|
322
|
-
begin
|
323
|
-
#Create a new class
|
324
|
-
result = api_instance.create_class(body)
|
325
|
-
p result
|
326
|
-
rescue FlatApi::ApiError => e
|
327
|
-
puts "Exception when calling ClassApi->create_class: #{e}"
|
328
|
-
end
|
329
|
-
```
|
330
|
-
|
331
|
-
### Parameters
|
332
|
-
|
333
|
-
Name | Type | Description | Notes
|
334
|
-
------------- | ------------- | ------------- | -------------
|
335
|
-
**body** | [**ClassCreation**](ClassCreation.md)| |
|
336
|
-
|
337
|
-
### Return type
|
338
|
-
|
339
|
-
[**ClassDetails**](ClassDetails.md)
|
340
|
-
|
341
|
-
### Authorization
|
342
|
-
|
343
|
-
[OAuth2](../README.md#OAuth2)
|
344
|
-
|
345
|
-
### HTTP request headers
|
346
|
-
|
347
|
-
- **Content-Type**: application/json
|
348
|
-
- **Accept**: application/json
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
# **create_submission**
|
353
|
-
> AssignmentSubmission create_submission(_class, assignment, body)
|
354
|
-
|
355
|
-
Create or edit a submission
|
356
|
-
|
357
|
-
Use this method as a student to create, update and submit a submission related to an assignment. Students can only set `attachments`, `studentComment` and `submit`. Teachers can use `PUT /classes/{class}/assignments/{assignment}/submissions/{submission}` to update a submission by id.
|
358
|
-
|
359
|
-
### Example
|
360
|
-
```ruby
|
361
|
-
# load the gem
|
362
|
-
require 'flat_api'
|
363
|
-
# setup authorization
|
364
|
-
FlatApi.configure do |config|
|
365
|
-
# Configure OAuth2 access token for authorization: OAuth2
|
366
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
367
|
-
end
|
368
|
-
|
369
|
-
api_instance = FlatApi::ClassApi.new
|
370
|
-
|
371
|
-
_class = "_class_example" # String | Unique identifier of the class
|
372
|
-
|
373
|
-
assignment = "assignment_example" # String | Unique identifier of the assignment
|
374
|
-
|
375
|
-
body = FlatApi::AssignmentSubmissionUpdate.new # AssignmentSubmissionUpdate |
|
376
|
-
|
377
|
-
|
378
|
-
begin
|
379
|
-
#Create or edit a submission
|
380
|
-
result = api_instance.create_submission(_class, assignment, body)
|
381
|
-
p result
|
382
|
-
rescue FlatApi::ApiError => e
|
383
|
-
puts "Exception when calling ClassApi->create_submission: #{e}"
|
384
|
-
end
|
385
|
-
```
|
386
|
-
|
387
|
-
### Parameters
|
388
|
-
|
389
|
-
Name | Type | Description | Notes
|
390
|
-
------------- | ------------- | ------------- | -------------
|
391
|
-
**_class** | **String**| Unique identifier of the class |
|
392
|
-
**assignment** | **String**| Unique identifier of the assignment |
|
393
|
-
**body** | [**AssignmentSubmissionUpdate**](AssignmentSubmissionUpdate.md)| |
|
394
|
-
|
395
|
-
### Return type
|
396
|
-
|
397
|
-
[**AssignmentSubmission**](AssignmentSubmission.md)
|
398
|
-
|
399
|
-
### Authorization
|
400
|
-
|
401
|
-
[OAuth2](../README.md#OAuth2)
|
402
|
-
|
403
|
-
### HTTP request headers
|
404
|
-
|
405
|
-
- **Content-Type**: application/json
|
406
|
-
- **Accept**: application/json
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
# **delete_class_user**
|
411
|
-
> delete_class_user(_class, user)
|
412
|
-
|
413
|
-
Remove a user from the class
|
414
|
-
|
415
|
-
This method can be used by a teacher to remove a user from the class, or by a student to leave the classroom. Warning: Removing a user from the class will remove the associated resources, including the submissions and feedback related to these submissions.
|
416
|
-
|
417
|
-
### Example
|
418
|
-
```ruby
|
419
|
-
# load the gem
|
420
|
-
require 'flat_api'
|
421
|
-
# setup authorization
|
422
|
-
FlatApi.configure do |config|
|
423
|
-
# Configure OAuth2 access token for authorization: OAuth2
|
424
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
425
|
-
end
|
426
|
-
|
427
|
-
api_instance = FlatApi::ClassApi.new
|
428
|
-
|
429
|
-
_class = "_class_example" # String | Unique identifier of the class
|
430
|
-
|
431
|
-
user = "user_example" # String | Unique identifier of the user
|
432
|
-
|
433
|
-
|
434
|
-
begin
|
435
|
-
#Remove a user from the class
|
436
|
-
api_instance.delete_class_user(_class, user)
|
437
|
-
rescue FlatApi::ApiError => e
|
438
|
-
puts "Exception when calling ClassApi->delete_class_user: #{e}"
|
439
|
-
end
|
440
|
-
```
|
441
|
-
|
442
|
-
### Parameters
|
443
|
-
|
444
|
-
Name | Type | Description | Notes
|
445
|
-
------------- | ------------- | ------------- | -------------
|
446
|
-
**_class** | **String**| Unique identifier of the class |
|
447
|
-
**user** | **String**| Unique identifier of the user |
|
448
|
-
|
449
|
-
### Return type
|
450
|
-
|
451
|
-
nil (empty response body)
|
452
|
-
|
453
|
-
### Authorization
|
454
|
-
|
455
|
-
[OAuth2](../README.md#OAuth2)
|
456
|
-
|
457
|
-
### HTTP request headers
|
458
|
-
|
459
|
-
- **Content-Type**: application/json
|
460
|
-
- **Accept**: application/json
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
# **edit_submission**
|
465
|
-
> AssignmentSubmission edit_submission(_class, assignment, submission, body)
|
466
|
-
|
467
|
-
Edit a submission
|
468
|
-
|
469
|
-
Use this method as a teacher to update the different submission and give feedback. Teachers can only set `returnFeedback`
|
470
|
-
|
471
|
-
### Example
|
472
|
-
```ruby
|
473
|
-
# load the gem
|
474
|
-
require 'flat_api'
|
475
|
-
# setup authorization
|
476
|
-
FlatApi.configure do |config|
|
477
|
-
# Configure OAuth2 access token for authorization: OAuth2
|
478
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
479
|
-
end
|
480
|
-
|
481
|
-
api_instance = FlatApi::ClassApi.new
|
482
|
-
|
483
|
-
_class = "_class_example" # String | Unique identifier of the class
|
484
|
-
|
485
|
-
assignment = "assignment_example" # String | Unique identifier of the assignment
|
486
|
-
|
487
|
-
submission = "submission_example" # String | Unique identifier of the submission
|
488
|
-
|
489
|
-
body = FlatApi::AssignmentSubmissionUpdate.new # AssignmentSubmissionUpdate |
|
490
|
-
|
491
|
-
|
492
|
-
begin
|
493
|
-
#Edit a submission
|
494
|
-
result = api_instance.edit_submission(_class, assignment, submission, body)
|
495
|
-
p result
|
496
|
-
rescue FlatApi::ApiError => e
|
497
|
-
puts "Exception when calling ClassApi->edit_submission: #{e}"
|
498
|
-
end
|
499
|
-
```
|
500
|
-
|
501
|
-
### Parameters
|
502
|
-
|
503
|
-
Name | Type | Description | Notes
|
504
|
-
------------- | ------------- | ------------- | -------------
|
505
|
-
**_class** | **String**| Unique identifier of the class |
|
506
|
-
**assignment** | **String**| Unique identifier of the assignment |
|
507
|
-
**submission** | **String**| Unique identifier of the submission |
|
508
|
-
**body** | [**AssignmentSubmissionUpdate**](AssignmentSubmissionUpdate.md)| |
|
509
|
-
|
510
|
-
### Return type
|
511
|
-
|
512
|
-
[**AssignmentSubmission**](AssignmentSubmission.md)
|
513
|
-
|
514
|
-
### Authorization
|
515
|
-
|
516
|
-
[OAuth2](../README.md#OAuth2)
|
517
|
-
|
518
|
-
### HTTP request headers
|
519
|
-
|
520
|
-
- **Content-Type**: application/json
|
521
|
-
- **Accept**: application/json
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
# **enroll_class**
|
526
|
-
> ClassDetails enroll_class(enrollment_code)
|
527
|
-
|
528
|
-
Join a class
|
529
|
-
|
530
|
-
Use this method to join a class using an enrollment code given one of the teacher of this class. This code is also available in the `ClassDetails` returned to the teachers when creating the class or listing / fetching a specific class. Flat will automatically add the user to the corresponding class group based on this role in the organization.
|
531
|
-
|
532
|
-
### Example
|
533
|
-
```ruby
|
534
|
-
# load the gem
|
535
|
-
require 'flat_api'
|
536
|
-
# setup authorization
|
537
|
-
FlatApi.configure do |config|
|
538
|
-
# Configure OAuth2 access token for authorization: OAuth2
|
539
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
540
|
-
end
|
541
|
-
|
542
|
-
api_instance = FlatApi::ClassApi.new
|
543
|
-
|
544
|
-
enrollment_code = "enrollment_code_example" # String | The enrollment code, available to the teacher in `ClassDetails`
|
545
|
-
|
546
|
-
|
547
|
-
begin
|
548
|
-
#Join a class
|
549
|
-
result = api_instance.enroll_class(enrollment_code)
|
550
|
-
p result
|
551
|
-
rescue FlatApi::ApiError => e
|
552
|
-
puts "Exception when calling ClassApi->enroll_class: #{e}"
|
553
|
-
end
|
554
|
-
```
|
555
|
-
|
556
|
-
### Parameters
|
557
|
-
|
558
|
-
Name | Type | Description | Notes
|
559
|
-
------------- | ------------- | ------------- | -------------
|
560
|
-
**enrollment_code** | **String**| The enrollment code, available to the teacher in `ClassDetails` |
|
561
|
-
|
562
|
-
### Return type
|
563
|
-
|
564
|
-
[**ClassDetails**](ClassDetails.md)
|
565
|
-
|
566
|
-
### Authorization
|
567
|
-
|
568
|
-
[OAuth2](../README.md#OAuth2)
|
569
|
-
|
570
|
-
### HTTP request headers
|
571
|
-
|
572
|
-
- **Content-Type**: application/json
|
573
|
-
- **Accept**: application/json
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
# **get_class**
|
578
|
-
> ClassDetails get_class(_class)
|
579
|
-
|
580
|
-
Get the details of a single class
|
581
|
-
|
582
|
-
### Example
|
583
|
-
```ruby
|
584
|
-
# load the gem
|
585
|
-
require 'flat_api'
|
586
|
-
# setup authorization
|
587
|
-
FlatApi.configure do |config|
|
588
|
-
# Configure OAuth2 access token for authorization: OAuth2
|
589
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
590
|
-
end
|
591
|
-
|
592
|
-
api_instance = FlatApi::ClassApi.new
|
593
|
-
|
594
|
-
_class = "_class_example" # String | Unique identifier of the class
|
595
|
-
|
596
|
-
|
597
|
-
begin
|
598
|
-
#Get the details of a single class
|
599
|
-
result = api_instance.get_class(_class)
|
600
|
-
p result
|
601
|
-
rescue FlatApi::ApiError => e
|
602
|
-
puts "Exception when calling ClassApi->get_class: #{e}"
|
603
|
-
end
|
604
|
-
```
|
605
|
-
|
606
|
-
### Parameters
|
607
|
-
|
608
|
-
Name | Type | Description | Notes
|
609
|
-
------------- | ------------- | ------------- | -------------
|
610
|
-
**_class** | **String**| Unique identifier of the class |
|
611
|
-
|
612
|
-
### Return type
|
613
|
-
|
614
|
-
[**ClassDetails**](ClassDetails.md)
|
615
|
-
|
616
|
-
### Authorization
|
617
|
-
|
618
|
-
[OAuth2](../README.md#OAuth2)
|
619
|
-
|
620
|
-
### HTTP request headers
|
621
|
-
|
622
|
-
- **Content-Type**: application/json
|
623
|
-
- **Accept**: application/json
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
# **get_score_submissions**
|
628
|
-
> Array<AssignmentSubmission> get_score_submissions(score, )
|
629
|
-
|
630
|
-
List submissions related to the score
|
631
|
-
|
632
|
-
This API call will list the different assignments submissions where the score is attached. This method can be used by anyone that are part of the organization and have at least read access to the document.
|
633
|
-
|
634
|
-
### Example
|
635
|
-
```ruby
|
636
|
-
# load the gem
|
637
|
-
require 'flat_api'
|
638
|
-
# setup authorization
|
639
|
-
FlatApi.configure do |config|
|
640
|
-
# Configure OAuth2 access token for authorization: OAuth2
|
641
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
642
|
-
end
|
643
|
-
|
644
|
-
api_instance = FlatApi::ClassApi.new
|
645
|
-
|
646
|
-
score = "score_example" # String | Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`).
|
647
|
-
|
648
|
-
|
649
|
-
begin
|
650
|
-
#List submissions related to the score
|
651
|
-
result = api_instance.get_score_submissions(score, )
|
652
|
-
p result
|
653
|
-
rescue FlatApi::ApiError => e
|
654
|
-
puts "Exception when calling ClassApi->get_score_submissions: #{e}"
|
655
|
-
end
|
656
|
-
```
|
657
|
-
|
658
|
-
### Parameters
|
659
|
-
|
660
|
-
Name | Type | Description | Notes
|
661
|
-
------------- | ------------- | ------------- | -------------
|
662
|
-
**score** | **String**| Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`). |
|
663
|
-
|
664
|
-
### Return type
|
665
|
-
|
666
|
-
[**Array<AssignmentSubmission>**](AssignmentSubmission.md)
|
667
|
-
|
668
|
-
### Authorization
|
669
|
-
|
670
|
-
[OAuth2](../README.md#OAuth2)
|
671
|
-
|
672
|
-
### HTTP request headers
|
673
|
-
|
674
|
-
- **Content-Type**: application/json
|
675
|
-
- **Accept**: application/json
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
# **get_submission**
|
680
|
-
> AssignmentSubmission get_submission(_class, assignment, submission)
|
681
|
-
|
682
|
-
Get a student submission
|
683
|
-
|
684
|
-
### Example
|
685
|
-
```ruby
|
686
|
-
# load the gem
|
687
|
-
require 'flat_api'
|
688
|
-
# setup authorization
|
689
|
-
FlatApi.configure do |config|
|
690
|
-
# Configure OAuth2 access token for authorization: OAuth2
|
691
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
692
|
-
end
|
693
|
-
|
694
|
-
api_instance = FlatApi::ClassApi.new
|
695
|
-
|
696
|
-
_class = "_class_example" # String | Unique identifier of the class
|
697
|
-
|
698
|
-
assignment = "assignment_example" # String | Unique identifier of the assignment
|
699
|
-
|
700
|
-
submission = "submission_example" # String | Unique identifier of the submission
|
701
|
-
|
702
|
-
|
703
|
-
begin
|
704
|
-
#Get a student submission
|
705
|
-
result = api_instance.get_submission(_class, assignment, submission)
|
706
|
-
p result
|
707
|
-
rescue FlatApi::ApiError => e
|
708
|
-
puts "Exception when calling ClassApi->get_submission: #{e}"
|
709
|
-
end
|
710
|
-
```
|
711
|
-
|
712
|
-
### Parameters
|
713
|
-
|
714
|
-
Name | Type | Description | Notes
|
715
|
-
------------- | ------------- | ------------- | -------------
|
716
|
-
**_class** | **String**| Unique identifier of the class |
|
717
|
-
**assignment** | **String**| Unique identifier of the assignment |
|
718
|
-
**submission** | **String**| Unique identifier of the submission |
|
719
|
-
|
720
|
-
### Return type
|
721
|
-
|
722
|
-
[**AssignmentSubmission**](AssignmentSubmission.md)
|
723
|
-
|
724
|
-
### Authorization
|
725
|
-
|
726
|
-
[OAuth2](../README.md#OAuth2)
|
727
|
-
|
728
|
-
### HTTP request headers
|
729
|
-
|
730
|
-
- **Content-Type**: application/json
|
731
|
-
- **Accept**: application/json
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
# **get_submissions**
|
736
|
-
> Array<AssignmentSubmission> get_submissions(_class, assignment)
|
737
|
-
|
738
|
-
List the students' submissions
|
739
|
-
|
740
|
-
### Example
|
741
|
-
```ruby
|
742
|
-
# load the gem
|
743
|
-
require 'flat_api'
|
744
|
-
# setup authorization
|
745
|
-
FlatApi.configure do |config|
|
746
|
-
# Configure OAuth2 access token for authorization: OAuth2
|
747
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
748
|
-
end
|
749
|
-
|
750
|
-
api_instance = FlatApi::ClassApi.new
|
751
|
-
|
752
|
-
_class = "_class_example" # String | Unique identifier of the class
|
753
|
-
|
754
|
-
assignment = "assignment_example" # String | Unique identifier of the assignment
|
755
|
-
|
756
|
-
|
757
|
-
begin
|
758
|
-
#List the students' submissions
|
759
|
-
result = api_instance.get_submissions(_class, assignment)
|
760
|
-
p result
|
761
|
-
rescue FlatApi::ApiError => e
|
762
|
-
puts "Exception when calling ClassApi->get_submissions: #{e}"
|
763
|
-
end
|
764
|
-
```
|
765
|
-
|
766
|
-
### Parameters
|
767
|
-
|
768
|
-
Name | Type | Description | Notes
|
769
|
-
------------- | ------------- | ------------- | -------------
|
770
|
-
**_class** | **String**| Unique identifier of the class |
|
771
|
-
**assignment** | **String**| Unique identifier of the assignment |
|
772
|
-
|
773
|
-
### Return type
|
774
|
-
|
775
|
-
[**Array<AssignmentSubmission>**](AssignmentSubmission.md)
|
776
|
-
|
777
|
-
### Authorization
|
778
|
-
|
779
|
-
[OAuth2](../README.md#OAuth2)
|
780
|
-
|
781
|
-
### HTTP request headers
|
782
|
-
|
783
|
-
- **Content-Type**: application/json
|
784
|
-
- **Accept**: application/json
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
# **list_assignments**
|
789
|
-
> Array<Assignment> list_assignments(_class)
|
790
|
-
|
791
|
-
Assignments listing
|
792
|
-
|
793
|
-
### Example
|
794
|
-
```ruby
|
795
|
-
# load the gem
|
796
|
-
require 'flat_api'
|
797
|
-
# setup authorization
|
798
|
-
FlatApi.configure do |config|
|
799
|
-
# Configure OAuth2 access token for authorization: OAuth2
|
800
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
801
|
-
end
|
802
|
-
|
803
|
-
api_instance = FlatApi::ClassApi.new
|
804
|
-
|
805
|
-
_class = "_class_example" # String | Unique identifier of the class
|
806
|
-
|
807
|
-
|
808
|
-
begin
|
809
|
-
#Assignments listing
|
810
|
-
result = api_instance.list_assignments(_class)
|
811
|
-
p result
|
812
|
-
rescue FlatApi::ApiError => e
|
813
|
-
puts "Exception when calling ClassApi->list_assignments: #{e}"
|
814
|
-
end
|
815
|
-
```
|
816
|
-
|
817
|
-
### Parameters
|
818
|
-
|
819
|
-
Name | Type | Description | Notes
|
820
|
-
------------- | ------------- | ------------- | -------------
|
821
|
-
**_class** | **String**| Unique identifier of the class |
|
822
|
-
|
823
|
-
### Return type
|
824
|
-
|
825
|
-
[**Array<Assignment>**](Assignment.md)
|
826
|
-
|
827
|
-
### Authorization
|
828
|
-
|
829
|
-
[OAuth2](../README.md#OAuth2)
|
830
|
-
|
831
|
-
### HTTP request headers
|
832
|
-
|
833
|
-
- **Content-Type**: application/json
|
834
|
-
- **Accept**: application/json
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
# **list_class_student_submissions**
|
839
|
-
> Array<AssignmentSubmission> list_class_student_submissions(_class, user)
|
840
|
-
|
841
|
-
List the submissions for a student
|
842
|
-
|
843
|
-
Use this method as a teacher to list all the assignment submissions sent by a student of the class
|
844
|
-
|
845
|
-
### Example
|
846
|
-
```ruby
|
847
|
-
# load the gem
|
848
|
-
require 'flat_api'
|
849
|
-
# setup authorization
|
850
|
-
FlatApi.configure do |config|
|
851
|
-
# Configure OAuth2 access token for authorization: OAuth2
|
852
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
853
|
-
end
|
854
|
-
|
855
|
-
api_instance = FlatApi::ClassApi.new
|
856
|
-
|
857
|
-
_class = "_class_example" # String | Unique identifier of the class
|
858
|
-
|
859
|
-
user = "user_example" # String | Unique identifier of the user
|
860
|
-
|
861
|
-
|
862
|
-
begin
|
863
|
-
#List the submissions for a student
|
864
|
-
result = api_instance.list_class_student_submissions(_class, user)
|
865
|
-
p result
|
866
|
-
rescue FlatApi::ApiError => e
|
867
|
-
puts "Exception when calling ClassApi->list_class_student_submissions: #{e}"
|
868
|
-
end
|
869
|
-
```
|
870
|
-
|
871
|
-
### Parameters
|
872
|
-
|
873
|
-
Name | Type | Description | Notes
|
874
|
-
------------- | ------------- | ------------- | -------------
|
875
|
-
**_class** | **String**| Unique identifier of the class |
|
876
|
-
**user** | **String**| Unique identifier of the user |
|
877
|
-
|
878
|
-
### Return type
|
879
|
-
|
880
|
-
[**Array<AssignmentSubmission>**](AssignmentSubmission.md)
|
881
|
-
|
882
|
-
### Authorization
|
883
|
-
|
884
|
-
[OAuth2](../README.md#OAuth2)
|
885
|
-
|
886
|
-
### HTTP request headers
|
887
|
-
|
888
|
-
- **Content-Type**: application/json
|
889
|
-
- **Accept**: application/json
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
# **list_classes**
|
894
|
-
> Array<ClassDetails> list_classes(opts)
|
895
|
-
|
896
|
-
List the classes available for the current user
|
897
|
-
|
898
|
-
### Example
|
899
|
-
```ruby
|
900
|
-
# load the gem
|
901
|
-
require 'flat_api'
|
902
|
-
# setup authorization
|
903
|
-
FlatApi.configure do |config|
|
904
|
-
# Configure OAuth2 access token for authorization: OAuth2
|
905
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
906
|
-
end
|
907
|
-
|
908
|
-
api_instance = FlatApi::ClassApi.new
|
909
|
-
|
910
|
-
opts = {
|
911
|
-
state: "active" # String | Filter the classes by state
|
912
|
-
}
|
913
|
-
|
914
|
-
begin
|
915
|
-
#List the classes available for the current user
|
916
|
-
result = api_instance.list_classes(opts)
|
917
|
-
p result
|
918
|
-
rescue FlatApi::ApiError => e
|
919
|
-
puts "Exception when calling ClassApi->list_classes: #{e}"
|
920
|
-
end
|
921
|
-
```
|
922
|
-
|
923
|
-
### Parameters
|
924
|
-
|
925
|
-
Name | Type | Description | Notes
|
926
|
-
------------- | ------------- | ------------- | -------------
|
927
|
-
**state** | **String**| Filter the classes by state | [optional] [default to active]
|
928
|
-
|
929
|
-
### Return type
|
930
|
-
|
931
|
-
[**Array<ClassDetails>**](ClassDetails.md)
|
932
|
-
|
933
|
-
### Authorization
|
934
|
-
|
935
|
-
[OAuth2](../README.md#OAuth2)
|
936
|
-
|
937
|
-
### HTTP request headers
|
938
|
-
|
939
|
-
- **Content-Type**: application/json
|
940
|
-
- **Accept**: application/json
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
# **unarchive_class**
|
945
|
-
> ClassDetails unarchive_class(_class)
|
946
|
-
|
947
|
-
Unarchive the class
|
948
|
-
|
949
|
-
Mark the class as `active`. When this course is synchronized with another app, like Google Classroom, this state will be automatically be updated.
|
950
|
-
|
951
|
-
### Example
|
952
|
-
```ruby
|
953
|
-
# load the gem
|
954
|
-
require 'flat_api'
|
955
|
-
# setup authorization
|
956
|
-
FlatApi.configure do |config|
|
957
|
-
# Configure OAuth2 access token for authorization: OAuth2
|
958
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
959
|
-
end
|
960
|
-
|
961
|
-
api_instance = FlatApi::ClassApi.new
|
962
|
-
|
963
|
-
_class = "_class_example" # String | Unique identifier of the class
|
964
|
-
|
965
|
-
|
966
|
-
begin
|
967
|
-
#Unarchive the class
|
968
|
-
result = api_instance.unarchive_class(_class)
|
969
|
-
p result
|
970
|
-
rescue FlatApi::ApiError => e
|
971
|
-
puts "Exception when calling ClassApi->unarchive_class: #{e}"
|
972
|
-
end
|
973
|
-
```
|
974
|
-
|
975
|
-
### Parameters
|
976
|
-
|
977
|
-
Name | Type | Description | Notes
|
978
|
-
------------- | ------------- | ------------- | -------------
|
979
|
-
**_class** | **String**| Unique identifier of the class |
|
980
|
-
|
981
|
-
### Return type
|
982
|
-
|
983
|
-
[**ClassDetails**](ClassDetails.md)
|
984
|
-
|
985
|
-
### Authorization
|
986
|
-
|
987
|
-
[OAuth2](../README.md#OAuth2)
|
988
|
-
|
989
|
-
### HTTP request headers
|
990
|
-
|
991
|
-
- **Content-Type**: application/json
|
992
|
-
- **Accept**: application/json
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
# **update_class**
|
997
|
-
> ClassDetails update_class(_class, opts)
|
998
|
-
|
999
|
-
Update the class
|
1000
|
-
|
1001
|
-
Update the meta information of the class
|
1002
|
-
|
1003
|
-
### Example
|
1004
|
-
```ruby
|
1005
|
-
# load the gem
|
1006
|
-
require 'flat_api'
|
1007
|
-
# setup authorization
|
1008
|
-
FlatApi.configure do |config|
|
1009
|
-
# Configure OAuth2 access token for authorization: OAuth2
|
1010
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
1011
|
-
end
|
1012
|
-
|
1013
|
-
api_instance = FlatApi::ClassApi.new
|
1014
|
-
|
1015
|
-
_class = "_class_example" # String | Unique identifier of the class
|
1016
|
-
|
1017
|
-
opts = {
|
1018
|
-
body: FlatApi::ClassUpdate.new # ClassUpdate | Details of the Class
|
1019
|
-
}
|
1020
|
-
|
1021
|
-
begin
|
1022
|
-
#Update the class
|
1023
|
-
result = api_instance.update_class(_class, opts)
|
1024
|
-
p result
|
1025
|
-
rescue FlatApi::ApiError => e
|
1026
|
-
puts "Exception when calling ClassApi->update_class: #{e}"
|
1027
|
-
end
|
1028
|
-
```
|
1029
|
-
|
1030
|
-
### Parameters
|
1031
|
-
|
1032
|
-
Name | Type | Description | Notes
|
1033
|
-
------------- | ------------- | ------------- | -------------
|
1034
|
-
**_class** | **String**| Unique identifier of the class |
|
1035
|
-
**body** | [**ClassUpdate**](ClassUpdate.md)| Details of the Class | [optional]
|
1036
|
-
|
1037
|
-
### Return type
|
1038
|
-
|
1039
|
-
[**ClassDetails**](ClassDetails.md)
|
1040
|
-
|
1041
|
-
### Authorization
|
1042
|
-
|
1043
|
-
[OAuth2](../README.md#OAuth2)
|
1044
|
-
|
1045
|
-
### HTTP request headers
|
1046
|
-
|
1047
|
-
- **Content-Type**: application/json
|
1048
|
-
- **Accept**: application/json
|
1049
|
-
|
1050
|
-
|
1051
|
-
|