moodle_rb 2.1.5 → 2.2.0

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.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -1
  3. data/lib/moodle_rb/courses.rb +7 -5
  4. data/lib/moodle_rb/version.rb +1 -1
  5. data/spec/lib/moodle_rb/courses_spec.rb +17 -4
  6. metadata +10 -126
  7. data/.github/workflows/build.yml +0 -36
  8. data/.github/workflows/publish.yml +0 -27
  9. data/.gitignore +0 -35
  10. data/.travis.yml +0 -9
  11. data/Dockerfile +0 -10
  12. data/Gemfile +0 -2
  13. data/docker-compose.yml +0 -6
  14. data/moodle_rb.gemspec +0 -26
  15. data/spec/cassettes/MoodleRb_Categories/_create/.yml +0 -39
  16. data/spec/cassettes/MoodleRb_Categories/_create/when_validation_fails/.yml +0 -39
  17. data/spec/cassettes/MoodleRb_Categories/_destroy/when_using_invalid_token/.yml +0 -39
  18. data/spec/cassettes/MoodleRb_Categories/_destroy/when_using_valid_token/.yml +0 -76
  19. data/spec/cassettes/MoodleRb_Categories/_index/.yml +0 -39
  20. data/spec/cassettes/MoodleRb_Categories/_index/when_using_invalid_token/.yml +0 -39
  21. data/spec/cassettes/MoodleRb_Categories/_show/.yml +0 -39
  22. data/spec/cassettes/MoodleRb_Categories/_show/when_using_invalid_token/.yml +0 -39
  23. data/spec/cassettes/MoodleRb_Client/_site_info/when_invalid_token/.yml +0 -39
  24. data/spec/cassettes/MoodleRb_Client/_site_info/when_valid_token/.yml +0 -39
  25. data/spec/cassettes/MoodleRb_Courses/_contents/when_using_invalid_token/.yml +0 -52
  26. data/spec/cassettes/MoodleRb_Courses/_contents/when_using_valid_token/.yml +0 -52
  27. data/spec/cassettes/MoodleRb_Courses/_core_course_import_course/when_using_invalid_token/.yml +0 -55
  28. data/spec/cassettes/MoodleRb_Courses/_core_course_import_course/when_using_valid_token/.yml +0 -54
  29. data/spec/cassettes/MoodleRb_Courses/_core_course_import_course/when_using_valid_token/when_using_invalid_course_id/.yml +0 -55
  30. data/spec/cassettes/MoodleRb_Courses/_create/.yml +0 -39
  31. data/spec/cassettes/MoodleRb_Courses/_create/when_validation_fails/.yml +0 -75
  32. data/spec/cassettes/MoodleRb_Courses/_destroy/when_using_invalid_token/.yml +0 -39
  33. data/spec/cassettes/MoodleRb_Courses/_destroy/when_using_valid_token/.yml +0 -75
  34. data/spec/cassettes/MoodleRb_Courses/_destroy/when_using_valid_token/when_using_invalid_course_id/.yml +0 -39
  35. data/spec/cassettes/MoodleRb_Courses/_enrolled_users/when_using_invalid_token/.yml +0 -39
  36. data/spec/cassettes/MoodleRb_Courses/_enrolled_users/when_using_valid_token/.yml +0 -75
  37. data/spec/cassettes/MoodleRb_Courses/_grade_items/when_using_invalid_token/.yml +0 -52
  38. data/spec/cassettes/MoodleRb_Courses/_grade_items/when_using_valid_token/.yml +0 -56
  39. data/spec/cassettes/MoodleRb_Courses/_index/.yml +0 -39
  40. data/spec/cassettes/MoodleRb_Courses/_index/when_using_invalid_token/.yml +0 -39
  41. data/spec/cassettes/MoodleRb_Courses/_module/when_using_invalid_token/.yml +0 -52
  42. data/spec/cassettes/MoodleRb_Courses/_module/when_using_valid_token/.yml +0 -51
  43. data/spec/cassettes/MoodleRb_Courses/_search/.yml +0 -102
  44. data/spec/cassettes/MoodleRb_Courses/_search/when_using_invalid_token/.yml +0 -55
  45. data/spec/cassettes/MoodleRb_Courses/_show/.yml +0 -39
  46. data/spec/cassettes/MoodleRb_Courses/_show/when_using_invalid_token/.yml +0 -39
  47. data/spec/cassettes/MoodleRb_Enrolments/_create/.yml +0 -39
  48. data/spec/cassettes/MoodleRb_Enrolments/_create/when_user_or_course_id_is_invalid/.yml +0 -39
  49. data/spec/cassettes/MoodleRb_Enrolments/_destroy/.yml +0 -51
  50. data/spec/cassettes/MoodleRb_Enrolments/_destroy/when_user_or_course_id_is_invalid/.yml +0 -52
  51. data/spec/cassettes/MoodleRb_Grades/_by_assignment/.yml +0 -39
  52. data/spec/cassettes/MoodleRb_Grades/_by_course/.yml +0 -39
  53. data/spec/cassettes/MoodleRb_Grades/_by_course/when_invalid_parameters/.yml +0 -39
  54. data/spec/cassettes/MoodleRb_Users/_create/.yml +0 -39
  55. data/spec/cassettes/MoodleRb_Users/_create/when_missing_required_parameters/.yml +0 -39
  56. data/spec/cassettes/MoodleRb_Users/_destroy/.yml +0 -39
  57. data/spec/cassettes/MoodleRb_Users/_destroy/when_id_does_not_exist/.yml +0 -39
  58. data/spec/cassettes/MoodleRb_Users/_destroy/when_using_invalid_token/.yml +0 -39
  59. data/spec/cassettes/MoodleRb_Users/_enrolled_courses/.yml +0 -39
  60. data/spec/cassettes/MoodleRb_Users/_enrolled_courses/when_using_invalid_token/.yml +0 -39
  61. data/spec/cassettes/MoodleRb_Users/_search/.yml +0 -39
  62. data/spec/cassettes/MoodleRb_Users/_search/when_using_invalid_token/.yml +0 -39
  63. data/spec/cassettes/MoodleRb_Users/_search_identity/.yml +0 -51
  64. data/spec/cassettes/MoodleRb_Users/_search_identity/when_using_invalid_token/.yml +0 -52
  65. data/spec/cassettes/MoodleRb_Users/_show/.yml +0 -39
  66. data/spec/cassettes/MoodleRb_Users/_show/when_using_invalid_token/.yml +0 -39
  67. data/spec/cassettes/MoodleRb_Users/_update/.yml +0 -39
  68. data/spec/cassettes/MoodleRb_Users/_update/when_using_invalid_token/.yml +0 -39
@@ -1,102 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://localhost:8888/moodle28/webservice/rest/server.php?criterianame=search&criteriavalue=My%20course&moodlewsrestformat=json&wsfunction=core_course_search_courses&wstoken=60fc9c9415259404795094957e4ab32f
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept-Encoding:
11
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Accept-Ranges:
22
- - bytes
23
- Access-Control-Allow-Origin:
24
- - "*"
25
- Age:
26
- - '0'
27
- Cache-Control:
28
- - private, must-revalidate, pre-check=0, post-check=0, max-age=0
29
- Content-Type:
30
- - application/json
31
- Date:
32
- - Wed, 11 May 2022 03:43:20 GMT
33
- Expires:
34
- - Thu, 01 Jan 1970 00:00:00 GMT
35
- Pragma:
36
- - no-cache
37
- Server:
38
- - Moodle
39
- X-Cache:
40
- - MISS
41
- X-Clacks-Overhead:
42
- - GNU Terry Pratchett
43
- X-Powered-By:
44
- - Moodle Ninjas
45
- Content-Length:
46
- - '3946'
47
- Connection:
48
- - keep-alive
49
- body:
50
- encoding: UTF-8
51
- string: '{"total":1,"courses":[{"id":316,"fullname":"My large course","displayname":"My
52
- large course","shortname":"MLC","categoryid":8,"categoryname":"VETtrak testing","sortorder":50002,"summary":"Test
53
- course 1<br \/>\nLorem ipsum dolor sit amet, consectetuer adipiscing elit.
54
- Nulla non arcu lacinia neque faucibus fringilla. Vivamus porttitor turpis
55
- ac leo. Integer in sapien. Nullam eget nisl. Aliquam erat volutpat. Cras elementum.
56
- Mauris suscipit, ligula sit amet pharetra semper, nibh ante cursus purus,
57
- vel sagittis velit mauris vel metus. Integer malesuada. Nullam lectus justo,
58
- vulputate eget mollis sed, tempor sed magna. Mauris elementum mauris vitae
59
- tortor. Aliquam erat volutpat.<br \/>\nTemporibus autem quibusdam et aut officiis
60
- debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae
61
- sint et molestiae non recusandae. Pellentesque ipsum. Cras pede libero, dapibus
62
- nec, pretium sit amet, tempor quis. Aliquam ante. Proin in tellus sit amet
63
- nibh dignissim sagittis. Vivamus porttitor turpis ac leo. Duis bibendum, lectus
64
- ut viverra rhoncus, dolor nunc faucibus libero, eget facilisis enim ipsum
65
- id lacus. In sem justo, commodo ut, suscipit at, pharetra vitae, orci. Aliquam
66
- erat volutpat. Nulla est.<br \/>\nVivamus luctus egestas leo. Aenean fermentum
67
- risus id tortor. Mauris dictum facilisis augue. Aliquam erat volutpat. Aliquam
68
- ornare wisi eu metus. Aliquam id dolor. Duis condimentum augue id magna semper
69
- rutrum. Donec iaculis gravida nulla. Pellentesque ipsum. Etiam dictum tincidunt
70
- diam. Quisque tincidunt scelerisque libero. Etiam egestas wisi a erat.<br
71
- \/>\nInteger lacinia. Cum sociis natoque penatibus et magnis dis parturient
72
- montes, nascetur ridiculus mus. Mauris tincidunt sem sed arcu. Nullam feugiat,
73
- turpis at pulvinar vulputate, erat libero tristique tellus, nec bibendum odio
74
- risus sit amet ante. Aliquam id dolor. Maecenas sollicitudin. Et harum quidem
75
- rerum facilis est et expedita distinctio. Mauris suscipit, ligula sit amet
76
- pharetra semper, nibh ante cursus purus, vel sagittis velit mauris vel metus.
77
- Nullam dapibus fermentum ipsum. Pellentesque habitant morbi tristique senectus
78
- et netus et malesuada fames ac turpis egestas. Nemo enim ipsam voluptatem
79
- quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni
80
- dolores eos qui ratione voluptatem sequi nesciunt. Pellentesque sapien. Duis
81
- risus. Mauris elementum mauris vitae tortor. Suspendisse nisl. Integer rutrum,
82
- orci vestibulum ullamcorper ultricies, lacus quam ultricies odio, vitae placerat
83
- pede sem sit amet enim.<br \/>\nIn laoreet, magna id viverra tincidunt, sem
84
- odio bibendum justo, vel imperdiet sapien wisi sed libero. Proin pede metus,
85
- vulputate nec, fermentum fringilla, vehicula vitae, justo. Nullam justo enim,
86
- consectetuer nec, ullamcorper ac, vestibulum in, elit. Quis autem vel eum
87
- iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur,
88
- vel illum qui dolorem eum fugiat quo voluptas nulla pariatur? Maecenas lorem.
89
- Etiam posuere lacus quis dolor. Class aptent taciti sociosqu ad litora torquent
90
- per conubia nostra, per inceptos hymenaeos. Curabitur ligula sapien, pulvinar
91
- a vestibulum quis, facilisis vel sapien. Nam sed tellus id magna elementum
92
- tincidunt. Suspendisse nisl. Vivamus luctus egestas leo. Nulla non arcu lacinia
93
- neque faucibus fringilla. Etiam dui sem, fermentum vitae, sagittis id, malesuada
94
- in, quam. Etiam dictum tincidunt diam. Etiam commodo dui eget wisi. Nemo enim
95
- ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia
96
- consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Proin
97
- pede metus, vulputate nec, fermentum fringilla, vehicula vitae, justo. Duis
98
- ante orci, molestie vitae vehicula venenatis, tincidunt ac pede. Pellentesque
99
- sapien.","summaryformat":1,"summaryfiles":[],"overviewfiles":[],"showactivitydates":true,"showcompletionconditions":true,"contacts":[],"enrollmentmethods":["manual"]}],"warnings":[]}'
100
- http_version:
101
- recorded_at: Wed, 11 May 2022 03:42:46 GMT
102
- recorded_with: VCR 2.9.3
@@ -1,55 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://localhost:8888/moodle28/webservice/rest/server.php?criterianame=search&criteriavalue=My%20course&moodlewsrestformat=json&wsfunction=core_course_search_courses&wstoken=
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept-Encoding:
11
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Accept-Ranges:
22
- - bytes
23
- Access-Control-Allow-Origin:
24
- - "*"
25
- Age:
26
- - '0'
27
- Cache-Control:
28
- - private, must-revalidate, pre-check=0, post-check=0, max-age=0
29
- Content-Type:
30
- - application/json
31
- Date:
32
- - Wed, 11 May 2022 03:43:20 GMT
33
- Expires:
34
- - Thu, 01 Jan 1970 00:00:00 GMT
35
- Pragma:
36
- - no-cache
37
- Server:
38
- - Moodle
39
- X-Cache:
40
- - MISS
41
- X-Clacks-Overhead:
42
- - GNU Terry Pratchett
43
- X-Powered-By:
44
- - Moodle Ninjas
45
- Content-Length:
46
- - '103'
47
- Connection:
48
- - keep-alive
49
- body:
50
- encoding: UTF-8
51
- string: '{"exception":"moodle_exception","errorcode":"invalidtoken","message":"Invalid
52
- token - token not found"}'
53
- http_version:
54
- recorded_at: Wed, 11 May 2022 03:42:46 GMT
55
- recorded_with: VCR 2.9.3
@@ -1,39 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: http://localhost:8888/moodle28/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_course_get_courses&wstoken=60fc9c9415259404795094957e4ab32f
6
- body:
7
- string: options[ids][0]=1
8
- headers: {}
9
-
10
- response:
11
- status:
12
- code: 200
13
- message: OK
14
- headers:
15
- Access-Control-Allow-Origin:
16
- - "*"
17
- X-Powered-By:
18
- - PHP/5.6.2
19
- Expires:
20
- - Thu, 01 Jan 1970 00:00:00 GMT
21
- Server:
22
- - Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.6.2 mod_ssl/2.2.29 OpenSSL/0.9.8zd DAV/2 mod_perl/2.0.8 Perl/v5.20.0
23
- Pragma:
24
- - no-cache
25
- Accept-Ranges:
26
- - none
27
- Content-Type:
28
- - application/json
29
- Date:
30
- - Sun, 12 Apr 2015 00:51:46 GMT
31
- Content-Length:
32
- - "707"
33
- Cache-Control:
34
- - private, must-revalidate, pre-check=0, post-check=0, max-age=0
35
- body:
36
- string: "[{\"id\":1,\"shortname\":\"Moodle 2.8\",\"categoryid\":0,\"categorysortorder\":1,\"fullname\":\"Moodle 2.8\",\"idnumber\":\"\",\"summary\":\"<h2 style=\\\"font-size: large;\\\">Moodle<span style=\\\"font-size: 1.8em; color: red;\\\">4<\\/span>Mac<\\/h2>\\r\\n<p>This package for OS&nbsp;X comes with Moodle&nbsp;2.8.5+ and MAMP 3.0.7.3.&nbsp;We hope you will like it!<\\/p>\",\"summaryformat\":1,\"format\":\"site\",\"showgrades\":1,\"newsitems\":3,\"startdate\":0,\"numsections\":1,\"maxbytes\":0,\"showreports\":0,\"visible\":1,\"groupmode\":0,\"groupmodeforce\":0,\"defaultgroupingid\":0,\"timecreated\":1405375287,\"timemodified\":1426316351,\"enablecompletion\":0,\"completionnotify\":0,\"lang\":\"\",\"forcetheme\":\"\",\"courseformatoptions\":[{\"name\":\"numsections\",\"value\":1}]}]"
37
- http_version:
38
- recorded_at: Sun, 12 Apr 2015 00:51:46 GMT
39
- recorded_with: VCR 2.9.3
@@ -1,39 +0,0 @@
1
- ---
2
- recorded_with: VCR 2.9.3
3
- http_interactions:
4
- - request:
5
- method: post
6
- uri: http://localhost:8888/moodle28/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_course_get_courses&wstoken=
7
- body:
8
- string: options[ids][0]=1
9
- headers: {}
10
-
11
- response:
12
- status:
13
- code: 200
14
- message: OK
15
- headers:
16
- Pragma:
17
- - no-cache
18
- Accept-Ranges:
19
- - none
20
- Content-Length:
21
- - "103"
22
- Access-Control-Allow-Origin:
23
- - "*"
24
- Date:
25
- - Mon, 20 Jun 2016 22:04:25 GMT
26
- Expires:
27
- - Thu, 01 Jan 1970 00:00:00 GMT
28
- Content-Type:
29
- - application/json
30
- X-Powered-By:
31
- - PHP/5.6.2
32
- Server:
33
- - Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.6.2 mod_ssl/2.2.29 OpenSSL/0.9.8zg DAV/2 mod_perl/2.0.8 Perl/v5.20.0
34
- Cache-Control:
35
- - private, must-revalidate, pre-check=0, post-check=0, max-age=0
36
- body:
37
- string: "{\"exception\":\"moodle_exception\",\"errorcode\":\"invalidtoken\",\"message\":\"Invalid token - token not found\"}"
38
- http_version:
39
- recorded_at: Mon, 20 Jun 2016 22:04:25 GMT
@@ -1,39 +0,0 @@
1
- ---
2
- recorded_with: VCR 2.9.3
3
- http_interactions:
4
- - request:
5
- method: post
6
- uri: http://localhost:8888/moodle28/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=enrol_manual_enrol_users&wstoken=60fc9c9415259404795094957e4ab32f
7
- body:
8
- string: enrolments[0][userid]=3&enrolments[0][courseid]=8&enrolments[0][roleid]=5
9
- headers: {}
10
-
11
- response:
12
- status:
13
- code: 200
14
- message: OK
15
- headers:
16
- Access-Control-Allow-Origin:
17
- - "*"
18
- X-Powered-By:
19
- - PHP/5.6.2
20
- Content-Type:
21
- - application/json
22
- Date:
23
- - Sun, 12 Apr 2015 01:06:20 GMT
24
- Content-Length:
25
- - "4"
26
- Pragma:
27
- - no-cache
28
- Cache-Control:
29
- - private, must-revalidate, pre-check=0, post-check=0, max-age=0
30
- Server:
31
- - Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.6.2 mod_ssl/2.2.29 OpenSSL/0.9.8zd DAV/2 mod_perl/2.0.8 Perl/v5.20.0
32
- Expires:
33
- - Thu, 01 Jan 1970 00:00:00 GMT
34
- Accept-Ranges:
35
- - none
36
- body:
37
- string: "null"
38
- http_version:
39
- recorded_at: Sun, 12 Apr 2015 01:06:20 GMT
@@ -1,39 +0,0 @@
1
- ---
2
- recorded_with: VCR 2.9.3
3
- http_interactions:
4
- - request:
5
- method: post
6
- uri: http://localhost:8888/moodle28/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=enrol_manual_enrol_users&wstoken=60fc9c9415259404795094957e4ab32f
7
- body:
8
- string: enrolments[0][userid]=9999&enrolments[0][courseid]=9999&enrolments[0][roleid]=5
9
- headers: {}
10
-
11
- response:
12
- status:
13
- code: 200
14
- message: OK
15
- headers:
16
- Cache-Control:
17
- - private, must-revalidate, pre-check=0, post-check=0, max-age=0
18
- Content-Type:
19
- - application/json
20
- Accept-Ranges:
21
- - none
22
- Content-Length:
23
- - "119"
24
- Date:
25
- - Sat, 11 Apr 2015 12:50:42 GMT
26
- Expires:
27
- - Thu, 01 Jan 1970 00:00:00 GMT
28
- Access-Control-Allow-Origin:
29
- - "*"
30
- Server:
31
- - Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.6.2 mod_ssl/2.2.29 OpenSSL/0.9.8zd DAV/2 mod_perl/2.0.8 Perl/v5.20.0
32
- Pragma:
33
- - no-cache
34
- X-Powered-By:
35
- - PHP/5.6.2
36
- body:
37
- string: "{\"exception\":\"invalid_parameter_exception\",\"errorcode\":\"invalidparameter\",\"message\":\"Invalid parameter value detected\"}"
38
- http_version:
39
- recorded_at: Sat, 11 Apr 2015 12:50:42 GMT
@@ -1,51 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://localhost:8888/moodle28/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=enrol_manual_unenrol_users&wstoken=60fc9c9415259404795094957e4ab32f
6
- body:
7
- encoding: UTF-8
8
- string: enrolments[0][userid]=7&enrolments[0][courseid]=5&enrolments[0][roleid]=5
9
- headers: {}
10
- response:
11
- status:
12
- code: 200
13
- message: OK
14
- headers:
15
- Accept-Ranges:
16
- - bytes
17
- - none
18
- Access-Control-Allow-Origin:
19
- - "*"
20
- Age:
21
- - '0'
22
- Cache-Control:
23
- - private, must-revalidate, pre-check=0, post-check=0, max-age=0
24
- Content-Type:
25
- - application/json
26
- Date:
27
- - Tue, 11 Jan 2022 05:21:58 GMT
28
- Expires:
29
- - Thu, 01 Jan 1970 00:00:00 GMT
30
- Pragma:
31
- - no-cache
32
- Server:
33
- - Moodle
34
- X-Cache:
35
- - MISS
36
- X-Clacks-Overhead:
37
- - GNU Terry Pratchett
38
- X-Ec2-Instance-Id:
39
- - i-0afd4744d7a60c5d7
40
- X-Powered-By:
41
- - Moodle Ninjas
42
- Content-Length:
43
- - '4'
44
- Connection:
45
- - keep-alive
46
- body:
47
- encoding: UTF-8
48
- string: 'null'
49
- http_version:
50
- recorded_at: Tue, 11 Jan 2022 05:21:25 GMT
51
- recorded_with: VCR 2.9.3
@@ -1,52 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://localhost:8888/moodle28/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=enrol_manual_unenrol_users&wstoken=60fc9c9415259404795094957e4ab32f
6
- body:
7
- encoding: UTF-8
8
- string: enrolments[0][userid]=9999&enrolments[0][courseid]=9999&enrolments[0][roleid]=5
9
- headers: {}
10
- response:
11
- status:
12
- code: 200
13
- message: OK
14
- headers:
15
- Accept-Ranges:
16
- - bytes
17
- - none
18
- Access-Control-Allow-Origin:
19
- - "*"
20
- Age:
21
- - '0'
22
- Cache-Control:
23
- - private, must-revalidate, pre-check=0, post-check=0, max-age=0
24
- Content-Type:
25
- - application/json
26
- Date:
27
- - Tue, 11 Jan 2022 05:21:58 GMT
28
- Expires:
29
- - Thu, 01 Jan 1970 00:00:00 GMT
30
- Pragma:
31
- - no-cache
32
- Server:
33
- - Moodle
34
- X-Cache:
35
- - MISS
36
- X-Clacks-Overhead:
37
- - GNU Terry Pratchett
38
- X-Ec2-Instance-Id:
39
- - i-08adafc8cf93e6451
40
- X-Powered-By:
41
- - Moodle Ninjas
42
- Content-Length:
43
- - '133'
44
- Connection:
45
- - keep-alive
46
- body:
47
- encoding: UTF-8
48
- string: '{"exception":"dml_missing_record_exception","errorcode":"invalidrecord","message":"Can''t
49
- find data record in database table course."}'
50
- http_version:
51
- recorded_at: Tue, 11 Jan 2022 05:21:26 GMT
52
- recorded_with: VCR 2.9.3
@@ -1,39 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: http://localhost:8888/moodle28/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=mod_assign_get_grades&wstoken=60fc9c9415259404795094957e4ab32f
6
- body:
7
- string: assignmentids[0]=1
8
- headers: {}
9
-
10
- response:
11
- status:
12
- code: 200
13
- message: OK
14
- headers:
15
- Content-Length:
16
- - "180"
17
- Server:
18
- - Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.6.2 mod_ssl/2.2.29 OpenSSL/0.9.8zd DAV/2 mod_perl/2.0.8 Perl/v5.20.0
19
- Expires:
20
- - Thu, 01 Jan 1970 00:00:00 GMT
21
- Cache-Control:
22
- - private, must-revalidate, pre-check=0, post-check=0, max-age=0
23
- Pragma:
24
- - no-cache
25
- Content-Type:
26
- - application/json
27
- Accept-Ranges:
28
- - none
29
- Date:
30
- - Wed, 22 Apr 2015 23:29:46 GMT
31
- X-Powered-By:
32
- - PHP/5.6.2
33
- Access-Control-Allow-Origin:
34
- - "*"
35
- body:
36
- string: "{\"assignments\":[{\"assignmentid\":1,\"grades\":[{\"id\":1,\"userid\":5,\"attemptnumber\":0,\"timecreated\":1428801844,\"timemodified\":1428801869,\"grader\":2,\"grade\":\"90.00000\"}]}],\"warnings\":[]}"
37
- http_version:
38
- recorded_at: Wed, 22 Apr 2015 23:29:46 GMT
39
- recorded_with: VCR 2.9.3
@@ -1,39 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: http://localhost:8888/moodle28/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_grades_get_grades&wstoken=60fc9c9415259404795094957e4ab32f
6
- body:
7
- string: courseid=8&userids[0]=5
8
- headers: {}
9
-
10
- response:
11
- status:
12
- code: 200
13
- message: OK
14
- headers:
15
- Content-Length:
16
- - "1192"
17
- Server:
18
- - Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.6.2 mod_ssl/2.2.29 OpenSSL/0.9.8zd DAV/2 mod_perl/2.0.8 Perl/v5.20.0
19
- Expires:
20
- - Thu, 01 Jan 1970 00:00:00 GMT
21
- Cache-Control:
22
- - private, must-revalidate, pre-check=0, post-check=0, max-age=0
23
- Pragma:
24
- - no-cache
25
- Content-Type:
26
- - application/json
27
- Accept-Ranges:
28
- - none
29
- Date:
30
- - Wed, 22 Apr 2015 23:29:46 GMT
31
- X-Powered-By:
32
- - PHP/5.6.2
33
- Access-Control-Allow-Origin:
34
- - "*"
35
- body:
36
- string: "{\"items\":[{\"activityid\":\"course\",\"itemnumber\":0,\"scaleid\":0,\"name\":\"Course total\",\"grademin\":0,\"grademax\":100,\"gradepass\":0,\"locked\":0,\"hidden\":0,\"grades\":[{\"userid\":5,\"grade\":85,\"locked\":0,\"hidden\":0,\"overridden\":0,\"feedback\":null,\"feedbackformat\":0,\"usermodified\":null,\"datesubmitted\":null,\"dategraded\":1428807511,\"str_grade\":\"85.00\",\"str_long_grade\":\"85.00 \\/ 100.00\",\"str_feedback\":\"\"}]},{\"activityid\":\"13\",\"itemnumber\":0,\"scaleid\":0,\"name\":\"TestAssignment\",\"grademin\":0,\"grademax\":100,\"gradepass\":0,\"locked\":0,\"hidden\":0,\"grades\":[{\"userid\":5,\"grade\":90,\"locked\":0,\"hidden\":0,\"overridden\":0,\"feedback\":\"<p>Good<\\/p>\",\"feedbackformat\":1,\"usermodified\":2,\"datesubmitted\":null,\"dategraded\":1428801869,\"str_grade\":\"90.00\",\"str_long_grade\":\"90.00 \\/ 100.00\",\"str_feedback\":\"<p>Good<\\/p>\"}]},{\"activityid\":\"14\",\"itemnumber\":0,\"scaleid\":0,\"name\":\"Topic 1 Assignment Test\",\"grademin\":0,\"grademax\":100,\"gradepass\":0,\"locked\":0,\"hidden\":0,\"grades\":[{\"userid\":5,\"grade\":80,\"locked\":0,\"hidden\":0,\"overridden\":0,\"feedback\":null,\"feedbackformat\":1,\"usermodified\":2,\"datesubmitted\":null,\"dategraded\":1428807511,\"str_grade\":\"80.00\",\"str_long_grade\":\"80.00 \\/ 100.00\",\"str_feedback\":\"\"}]}],\"outcomes\":[]}"
37
- http_version:
38
- recorded_at: Wed, 22 Apr 2015 23:29:46 GMT
39
- recorded_with: VCR 2.9.3
@@ -1,39 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: http://localhost:8888/moodle28/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_grades_get_grades&wstoken=60fc9c9415259404795094957e4ab32f
6
- body:
7
- string: userids[0]=ABC&courseid=8
8
- headers: {}
9
-
10
- response:
11
- status:
12
- code: 200
13
- message: OK
14
- headers:
15
- Content-Length:
16
- - "119"
17
- Expires:
18
- - Thu, 01 Jan 1970 00:00:00 GMT
19
- Pragma:
20
- - no-cache
21
- Accept-Ranges:
22
- - none
23
- Content-Type:
24
- - application/json
25
- X-Powered-By:
26
- - PHP/5.6.2
27
- Cache-Control:
28
- - private, must-revalidate, pre-check=0, post-check=0, max-age=0
29
- Access-Control-Allow-Origin:
30
- - "*"
31
- Date:
32
- - Wed, 10 Jun 2015 03:06:02 GMT
33
- Server:
34
- - Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.6.2 mod_ssl/2.2.29 OpenSSL/0.9.8zd DAV/2 mod_perl/2.0.8 Perl/v5.20.0
35
- body:
36
- string: "{\"exception\":\"invalid_parameter_exception\",\"errorcode\":\"invalidparameter\",\"message\":\"Invalid parameter value detected\"}"
37
- http_version:
38
- recorded_at: Wed, 10 Jun 2015 03:06:02 GMT
39
- recorded_with: VCR 2.9.3
@@ -1,39 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: http://localhost:8888/moodle28/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_user_create_users&wstoken=60fc9c9415259404795094957e4ab32f
6
- body:
7
- string: users[0][firstname]=Austin&users[0][password]=Password123!&users[0][lastname]=Powers&users[0][idnumber]=PAUST002&users[0][email]=austinp1%40jobready.com.au&users[0][username]=testuser1
8
- headers: {}
9
-
10
- response:
11
- status:
12
- code: 200
13
- message: OK
14
- headers:
15
- Cache-Control:
16
- - private, must-revalidate, pre-check=0, post-check=0, max-age=0
17
- X-Powered-By:
18
- - PHP/5.6.2
19
- Pragma:
20
- - no-cache
21
- Content-Length:
22
- - "33"
23
- Server:
24
- - Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.6.2 mod_ssl/2.2.29 OpenSSL/0.9.8zd DAV/2 mod_perl/2.0.8 Perl/v5.20.0
25
- Access-Control-Allow-Origin:
26
- - "*"
27
- Accept-Ranges:
28
- - none
29
- Content-Type:
30
- - application/json
31
- Expires:
32
- - Thu, 01 Jan 1970 00:00:00 GMT
33
- Date:
34
- - Sun, 12 Apr 2015 01:01:16 GMT
35
- body:
36
- string: "[{\"id\":5,\"username\":\"testuser1\"}]"
37
- http_version:
38
- recorded_at: Sun, 12 Apr 2015 01:01:16 GMT
39
- recorded_with: VCR 2.9.3
@@ -1,39 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: http://localhost:8888/moodle28/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_user_create_users&wstoken=60fc9c9415259404795094957e4ab32f
6
- body:
7
- string: users[0][username]=testuser1
8
- headers: {}
9
-
10
- response:
11
- status:
12
- code: 200
13
- message: OK
14
- headers:
15
- Cache-Control:
16
- - private, must-revalidate, pre-check=0, post-check=0, max-age=0
17
- X-Powered-By:
18
- - PHP/5.6.2
19
- Pragma:
20
- - no-cache
21
- Content-Length:
22
- - "119"
23
- Server:
24
- - Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.6.2 mod_ssl/2.2.29 OpenSSL/0.9.8zd DAV/2 mod_perl/2.0.8 Perl/v5.20.0
25
- Access-Control-Allow-Origin:
26
- - "*"
27
- Accept-Ranges:
28
- - none
29
- Content-Type:
30
- - application/json
31
- Expires:
32
- - Thu, 01 Jan 1970 00:00:00 GMT
33
- Date:
34
- - Sun, 12 Apr 2015 01:01:16 GMT
35
- body:
36
- string: "{\"exception\":\"invalid_parameter_exception\",\"errorcode\":\"invalidparameter\",\"message\":\"Invalid parameter value detected\"}"
37
- http_version:
38
- recorded_at: Sun, 12 Apr 2015 01:01:16 GMT
39
- recorded_with: VCR 2.9.3
@@ -1,39 +0,0 @@
1
- ---
2
- recorded_with: VCR 2.9.3
3
- http_interactions:
4
- - request:
5
- method: post
6
- uri: http://localhost:8888/moodle28/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_user_delete_users&wstoken=60fc9c9415259404795094957e4ab32f
7
- body:
8
- string: userids[0]=5
9
- headers: {}
10
-
11
- response:
12
- status:
13
- code: 200
14
- message: OK
15
- headers:
16
- Access-Control-Allow-Origin:
17
- - "*"
18
- Content-Type:
19
- - application/json
20
- Date:
21
- - Sun, 12 Apr 2015 01:04:36 GMT
22
- Content-Length:
23
- - "4"
24
- X-Powered-By:
25
- - PHP/5.6.2
26
- Accept-Ranges:
27
- - none
28
- Expires:
29
- - Thu, 01 Jan 1970 00:00:00 GMT
30
- Server:
31
- - Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.6.2 mod_ssl/2.2.29 OpenSSL/0.9.8zd DAV/2 mod_perl/2.0.8 Perl/v5.20.0
32
- Pragma:
33
- - no-cache
34
- Cache-Control:
35
- - private, must-revalidate, pre-check=0, post-check=0, max-age=0
36
- body:
37
- string: "null"
38
- http_version:
39
- recorded_at: Sun, 12 Apr 2015 01:04:36 GMT