openstax_exchange 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/openstax/exchange/version.rb +1 -1
- data/spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_record_grade/duplicate_identifer_resource_trial_triplet/records_the_new_grade.yml +29 -29
- data/spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_record_grade/invalid_resource_string/raises_an_exception.yml +20 -20
- data/spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_record_grade/success/allows_grades_for_distinct_identifiers_to_be_saved.yml +36 -36
- data/spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_record_grade/success/allows_grades_for_distinct_resources_to_be_saved.yml +29 -29
- data/spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_record_grade/success/allows_grades_for_distinct_trials_to_be_saved.yml +29 -29
- data/spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_record_grade/success/records_the_exercise_grade_for_the_given_identifier.yml +21 -21
- data/spec/lib/openstax/exchange/shared_examples_for_exchange_client_v1.rb +20 -20
- metadata +3 -3
@@ -31,21 +31,21 @@ http_interactions:
|
|
31
31
|
Content-Type:
|
32
32
|
- application/json; charset=utf-8
|
33
33
|
Etag:
|
34
|
-
- W/"
|
34
|
+
- W/"03f293f138bbd2bf1064b52be6c9e7cb"
|
35
35
|
X-Request-Id:
|
36
|
-
-
|
36
|
+
- 24af8899-1708-416f-92b0-f462bea31c7f
|
37
37
|
X-Runtime:
|
38
|
-
- '0.
|
38
|
+
- '0.017257'
|
39
39
|
Connection:
|
40
40
|
- close
|
41
41
|
Server:
|
42
42
|
- thin
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
|
-
string: ! '{"access_token":"
|
46
|
-
write","created_at":
|
45
|
+
string: ! '{"access_token":"7364cf1902bbfa67bbd3036804a09e940e2cbca56a48946d2aa89de1d861886e","token_type":"bearer","scope":"read
|
46
|
+
write","created_at":1431459538}'
|
47
47
|
http_version:
|
48
|
-
recorded_at: Tue, 12 May 2015
|
48
|
+
recorded_at: Tue, 12 May 2015 19:38:58 GMT
|
49
49
|
- request:
|
50
50
|
method: post
|
51
51
|
uri: http://localhost:3003/api/identifiers
|
@@ -60,7 +60,7 @@ http_interactions:
|
|
60
60
|
Content-Type:
|
61
61
|
- application/json
|
62
62
|
Authorization:
|
63
|
-
- Bearer
|
63
|
+
- Bearer 7364cf1902bbfa67bbd3036804a09e940e2cbca56a48946d2aa89de1d861886e
|
64
64
|
Content-Length:
|
65
65
|
- '0'
|
66
66
|
response:
|
@@ -75,41 +75,41 @@ http_interactions:
|
|
75
75
|
X-Content-Type-Options:
|
76
76
|
- nosniff
|
77
77
|
Date:
|
78
|
-
- Tue, 12 May 2015
|
78
|
+
- Tue, 12 May 2015 19:38:58 GMT
|
79
79
|
Content-Type:
|
80
80
|
- application/json; charset=utf-8
|
81
81
|
Etag:
|
82
|
-
- W/"
|
82
|
+
- W/"180f629bb7600b7156b64d0aca0f90b3"
|
83
83
|
Cache-Control:
|
84
84
|
- max-age=0, private, must-revalidate
|
85
85
|
Set-Cookie:
|
86
86
|
- request_method=POST; path=/
|
87
87
|
X-Request-Id:
|
88
|
-
-
|
88
|
+
- 97dac4b3-98ea-4038-bc3a-6147a33b51c5
|
89
89
|
X-Runtime:
|
90
|
-
- '0.
|
90
|
+
- '0.058647'
|
91
91
|
Connection:
|
92
92
|
- close
|
93
93
|
Server:
|
94
94
|
- thin
|
95
95
|
body:
|
96
96
|
encoding: US-ASCII
|
97
|
-
string: ! '{"read":"
|
97
|
+
string: ! '{"read":"f857ccae138bf17c1edeedbb109803e66d3f7110af961b0c81915e86ae629292","write":"65ee0e5050d8d81e81fddc5dad4fbeda000e41cf6a708d376be96925543d8d7f"}'
|
98
98
|
http_version:
|
99
|
-
recorded_at: Tue, 12 May 2015
|
99
|
+
recorded_at: Tue, 12 May 2015 19:38:58 GMT
|
100
100
|
- request:
|
101
101
|
method: post
|
102
102
|
uri: http://localhost:3003/api/events/platforms/gradings
|
103
103
|
body:
|
104
104
|
encoding: UTF-8
|
105
|
-
string: ! '{"identifier":"
|
105
|
+
string: ! '{"identifier":"65ee0e5050d8d81e81fddc5dad4fbeda000e41cf6a708d376be96925543d8d7f","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","grade":0.0,"grader":"openstax"}'
|
106
106
|
headers:
|
107
107
|
User-Agent:
|
108
108
|
- Faraday v0.9.1
|
109
109
|
Accept:
|
110
110
|
- application/vnd.exchange.openstax.v1
|
111
111
|
Authorization:
|
112
|
-
- Bearer
|
112
|
+
- Bearer 7364cf1902bbfa67bbd3036804a09e940e2cbca56a48946d2aa89de1d861886e
|
113
113
|
Content-Type:
|
114
114
|
- application/json
|
115
115
|
response:
|
@@ -124,41 +124,41 @@ http_interactions:
|
|
124
124
|
X-Content-Type-Options:
|
125
125
|
- nosniff
|
126
126
|
Date:
|
127
|
-
- Tue, 12 May 2015
|
127
|
+
- Tue, 12 May 2015 19:38:58 GMT
|
128
128
|
Content-Type:
|
129
129
|
- application/json; charset=utf-8
|
130
130
|
Etag:
|
131
|
-
- W/"
|
131
|
+
- W/"10d2d286170ea47e44280dcc1b1205b1"
|
132
132
|
Cache-Control:
|
133
133
|
- max-age=0, private, must-revalidate
|
134
134
|
Set-Cookie:
|
135
135
|
- request_method=POST; path=/
|
136
136
|
X-Request-Id:
|
137
|
-
-
|
137
|
+
- 3bc19b73-aa48-4c2a-ad99-ee0d05af4a61
|
138
138
|
X-Runtime:
|
139
|
-
- '0.
|
139
|
+
- '0.093433'
|
140
140
|
Connection:
|
141
141
|
- close
|
142
142
|
Server:
|
143
143
|
- thin
|
144
144
|
body:
|
145
145
|
encoding: US-ASCII
|
146
|
-
string: ! '{"identifier":"
|
146
|
+
string: ! '{"identifier":"65ee0e5050d8d81e81fddc5dad4fbeda000e41cf6a708d376be96925543d8d7f","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","created_at":"2015-05-12T19:38:58.633Z","grader":"openstax","grade":0.0}'
|
147
147
|
http_version:
|
148
|
-
recorded_at: Tue, 12 May 2015
|
148
|
+
recorded_at: Tue, 12 May 2015 19:38:58 GMT
|
149
149
|
- request:
|
150
150
|
method: post
|
151
151
|
uri: http://localhost:3003/api/events/platforms/gradings
|
152
152
|
body:
|
153
153
|
encoding: UTF-8
|
154
|
-
string: ! '{"identifier":"
|
154
|
+
string: ! '{"identifier":"65ee0e5050d8d81e81fddc5dad4fbeda000e41cf6a708d376be96925543d8d7f","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","grade":1.0,"grader":"tutor"}'
|
155
155
|
headers:
|
156
156
|
User-Agent:
|
157
157
|
- Faraday v0.9.1
|
158
158
|
Accept:
|
159
159
|
- application/vnd.exchange.openstax.v1
|
160
160
|
Authorization:
|
161
|
-
- Bearer
|
161
|
+
- Bearer 7364cf1902bbfa67bbd3036804a09e940e2cbca56a48946d2aa89de1d861886e
|
162
162
|
Content-Type:
|
163
163
|
- application/json
|
164
164
|
response:
|
@@ -173,26 +173,26 @@ http_interactions:
|
|
173
173
|
X-Content-Type-Options:
|
174
174
|
- nosniff
|
175
175
|
Date:
|
176
|
-
- Tue, 12 May 2015
|
176
|
+
- Tue, 12 May 2015 19:38:58 GMT
|
177
177
|
Content-Type:
|
178
178
|
- application/json; charset=utf-8
|
179
179
|
Etag:
|
180
|
-
- W/"
|
180
|
+
- W/"bff9e7f3681cebefecdcd3dcdfbbfba2"
|
181
181
|
Cache-Control:
|
182
182
|
- max-age=0, private, must-revalidate
|
183
183
|
Set-Cookie:
|
184
184
|
- request_method=POST; path=/
|
185
185
|
X-Request-Id:
|
186
|
-
-
|
186
|
+
- d3bf30b0-2d49-4fb5-ad4d-9bcf1cc84702
|
187
187
|
X-Runtime:
|
188
|
-
- '0.
|
188
|
+
- '0.093759'
|
189
189
|
Connection:
|
190
190
|
- close
|
191
191
|
Server:
|
192
192
|
- thin
|
193
193
|
body:
|
194
194
|
encoding: US-ASCII
|
195
|
-
string: ! '{"identifier":"
|
195
|
+
string: ! '{"identifier":"65ee0e5050d8d81e81fddc5dad4fbeda000e41cf6a708d376be96925543d8d7f","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","created_at":"2015-05-12T19:38:58.725Z","grader":"tutor","grade":1.0}'
|
196
196
|
http_version:
|
197
|
-
recorded_at: Tue, 12 May 2015
|
197
|
+
recorded_at: Tue, 12 May 2015 19:38:58 GMT
|
198
198
|
recorded_with: VCR 2.9.3
|
@@ -31,21 +31,21 @@ http_interactions:
|
|
31
31
|
Content-Type:
|
32
32
|
- application/json; charset=utf-8
|
33
33
|
Etag:
|
34
|
-
- W/"
|
34
|
+
- W/"b667674ab8f17ea292c252ed62acf673"
|
35
35
|
X-Request-Id:
|
36
|
-
-
|
36
|
+
- ce1d8659-c6f6-4e31-b90c-e39e1cf84fff
|
37
37
|
X-Runtime:
|
38
|
-
- '0.
|
38
|
+
- '0.016185'
|
39
39
|
Connection:
|
40
40
|
- close
|
41
41
|
Server:
|
42
42
|
- thin
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
|
-
string: ! '{"access_token":"
|
46
|
-
write","created_at":
|
45
|
+
string: ! '{"access_token":"47fda39d1b5592e9d1c2a58682a26a2dcade0b8a7a9e6d3d800944d08ad1ebec","token_type":"bearer","scope":"read
|
46
|
+
write","created_at":1431459538}'
|
47
47
|
http_version:
|
48
|
-
recorded_at: Tue, 12 May 2015
|
48
|
+
recorded_at: Tue, 12 May 2015 19:38:58 GMT
|
49
49
|
- request:
|
50
50
|
method: post
|
51
51
|
uri: http://localhost:3003/api/identifiers
|
@@ -60,7 +60,7 @@ http_interactions:
|
|
60
60
|
Content-Type:
|
61
61
|
- application/json
|
62
62
|
Authorization:
|
63
|
-
- Bearer
|
63
|
+
- Bearer 47fda39d1b5592e9d1c2a58682a26a2dcade0b8a7a9e6d3d800944d08ad1ebec
|
64
64
|
Content-Length:
|
65
65
|
- '0'
|
66
66
|
response:
|
@@ -75,41 +75,41 @@ http_interactions:
|
|
75
75
|
X-Content-Type-Options:
|
76
76
|
- nosniff
|
77
77
|
Date:
|
78
|
-
- Tue, 12 May 2015
|
78
|
+
- Tue, 12 May 2015 19:38:58 GMT
|
79
79
|
Content-Type:
|
80
80
|
- application/json; charset=utf-8
|
81
81
|
Etag:
|
82
|
-
- W/"
|
82
|
+
- W/"756a833b2f264f2fa7f424c228380628"
|
83
83
|
Cache-Control:
|
84
84
|
- max-age=0, private, must-revalidate
|
85
85
|
Set-Cookie:
|
86
86
|
- request_method=POST; path=/
|
87
87
|
X-Request-Id:
|
88
|
-
-
|
88
|
+
- 464ac99d-1dcd-4e49-ba09-be14001f256e
|
89
89
|
X-Runtime:
|
90
|
-
- '0.
|
90
|
+
- '0.077354'
|
91
91
|
Connection:
|
92
92
|
- close
|
93
93
|
Server:
|
94
94
|
- thin
|
95
95
|
body:
|
96
96
|
encoding: US-ASCII
|
97
|
-
string: ! '{"read":"
|
97
|
+
string: ! '{"read":"0533432f0cf27843a1d76173afca3cf1d948534f2b78f797f36ddf4da8a223ea","write":"ec5a520c954e5ffec7418887c423e385a19782142d574202b200c9392342dea2"}'
|
98
98
|
http_version:
|
99
|
-
recorded_at: Tue, 12 May 2015
|
99
|
+
recorded_at: Tue, 12 May 2015 19:38:58 GMT
|
100
100
|
- request:
|
101
101
|
method: post
|
102
102
|
uri: http://localhost:3003/api/events/platforms/gradings
|
103
103
|
body:
|
104
104
|
encoding: UTF-8
|
105
|
-
string: ! '{"identifier":"
|
105
|
+
string: ! '{"identifier":"ec5a520c954e5ffec7418887c423e385a19782142d574202b200c9392342dea2","resource":"https://example.com/api/exercises/123@1","trial":"1","grade":1.0,"grader":"openstax"}'
|
106
106
|
headers:
|
107
107
|
User-Agent:
|
108
108
|
- Faraday v0.9.1
|
109
109
|
Accept:
|
110
110
|
- application/vnd.exchange.openstax.v1
|
111
111
|
Authorization:
|
112
|
-
- Bearer
|
112
|
+
- Bearer 47fda39d1b5592e9d1c2a58682a26a2dcade0b8a7a9e6d3d800944d08ad1ebec
|
113
113
|
Content-Type:
|
114
114
|
- application/json
|
115
115
|
response:
|
@@ -124,7 +124,7 @@ http_interactions:
|
|
124
124
|
X-Content-Type-Options:
|
125
125
|
- nosniff
|
126
126
|
Date:
|
127
|
-
- Tue, 12 May 2015
|
127
|
+
- Tue, 12 May 2015 19:38:58 GMT
|
128
128
|
Content-Type:
|
129
129
|
- application/json; charset=utf-8
|
130
130
|
Cache-Control:
|
@@ -132,17 +132,17 @@ http_interactions:
|
|
132
132
|
Set-Cookie:
|
133
133
|
- request_method=POST; path=/
|
134
134
|
X-Request-Id:
|
135
|
-
-
|
135
|
+
- e55de558-1fbe-4613-afe6-6f0857be713c
|
136
136
|
X-Runtime:
|
137
|
-
- '0.
|
137
|
+
- '0.035829'
|
138
138
|
Connection:
|
139
139
|
- close
|
140
140
|
Server:
|
141
141
|
- thin
|
142
142
|
body:
|
143
143
|
encoding: US-ASCII
|
144
|
-
string: ! '[{"code":"blank","data":{"model":{"id":null,"identifier_id":
|
144
|
+
string: ! '[{"code":"blank","data":{"model":{"id":null,"identifier_id":7,"resource_id":null,"trial":"1","due_at":null,"created_at":null,"updated_at":null},"attribute":"resource"},"kind":"activerecord","message":"can''t
|
145
145
|
be blank","offending_inputs":"resource"}]'
|
146
146
|
http_version:
|
147
|
-
recorded_at: Tue, 12 May 2015
|
147
|
+
recorded_at: Tue, 12 May 2015 19:38:58 GMT
|
148
148
|
recorded_with: VCR 2.9.3
|
@@ -31,21 +31,21 @@ http_interactions:
|
|
31
31
|
Content-Type:
|
32
32
|
- application/json; charset=utf-8
|
33
33
|
Etag:
|
34
|
-
- W/"
|
34
|
+
- W/"34023d121e0bbfacbcb8299293e8f5b3"
|
35
35
|
X-Request-Id:
|
36
|
-
-
|
36
|
+
- 8eb3cf8a-ba49-47a6-9a26-960e23e972ad
|
37
37
|
X-Runtime:
|
38
|
-
- '0.
|
38
|
+
- '0.016734'
|
39
39
|
Connection:
|
40
40
|
- close
|
41
41
|
Server:
|
42
42
|
- thin
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
|
-
string: ! '{"access_token":"
|
46
|
-
write","created_at":
|
45
|
+
string: ! '{"access_token":"1aecd6a0f124ca39cc4398c39dec58fad94a2b49e6f14f10741f89075479f52e","token_type":"bearer","scope":"read
|
46
|
+
write","created_at":1431459537}'
|
47
47
|
http_version:
|
48
|
-
recorded_at: Tue, 12 May 2015
|
48
|
+
recorded_at: Tue, 12 May 2015 19:38:57 GMT
|
49
49
|
- request:
|
50
50
|
method: post
|
51
51
|
uri: http://localhost:3003/api/identifiers
|
@@ -60,7 +60,7 @@ http_interactions:
|
|
60
60
|
Content-Type:
|
61
61
|
- application/json
|
62
62
|
Authorization:
|
63
|
-
- Bearer
|
63
|
+
- Bearer 1aecd6a0f124ca39cc4398c39dec58fad94a2b49e6f14f10741f89075479f52e
|
64
64
|
Content-Length:
|
65
65
|
- '0'
|
66
66
|
response:
|
@@ -75,28 +75,28 @@ http_interactions:
|
|
75
75
|
X-Content-Type-Options:
|
76
76
|
- nosniff
|
77
77
|
Date:
|
78
|
-
- Tue, 12 May 2015
|
78
|
+
- Tue, 12 May 2015 19:38:57 GMT
|
79
79
|
Content-Type:
|
80
80
|
- application/json; charset=utf-8
|
81
81
|
Etag:
|
82
|
-
- W/"
|
82
|
+
- W/"771571f441efdcb5336cdbd0560b22b6"
|
83
83
|
Cache-Control:
|
84
84
|
- max-age=0, private, must-revalidate
|
85
85
|
Set-Cookie:
|
86
86
|
- request_method=POST; path=/
|
87
87
|
X-Request-Id:
|
88
|
-
-
|
88
|
+
- 93447241-6a84-4757-b072-9840f35ae6f2
|
89
89
|
X-Runtime:
|
90
|
-
- '0.
|
90
|
+
- '0.059090'
|
91
91
|
Connection:
|
92
92
|
- close
|
93
93
|
Server:
|
94
94
|
- thin
|
95
95
|
body:
|
96
96
|
encoding: US-ASCII
|
97
|
-
string: ! '{"read":"
|
97
|
+
string: ! '{"read":"e911c684a7bac0029f6af9fde014ddd4772dea6da417fffd4104d5845d3885a8","write":"d56c357f18e997290edd6dad0e351aca690ced8a81fb2609024d02a184828d9f"}'
|
98
98
|
http_version:
|
99
|
-
recorded_at: Tue, 12 May 2015
|
99
|
+
recorded_at: Tue, 12 May 2015 19:38:57 GMT
|
100
100
|
- request:
|
101
101
|
method: post
|
102
102
|
uri: http://localhost:3003/api/identifiers
|
@@ -111,7 +111,7 @@ http_interactions:
|
|
111
111
|
Content-Type:
|
112
112
|
- application/json
|
113
113
|
Authorization:
|
114
|
-
- Bearer
|
114
|
+
- Bearer 1aecd6a0f124ca39cc4398c39dec58fad94a2b49e6f14f10741f89075479f52e
|
115
115
|
Content-Length:
|
116
116
|
- '0'
|
117
117
|
response:
|
@@ -126,41 +126,41 @@ http_interactions:
|
|
126
126
|
X-Content-Type-Options:
|
127
127
|
- nosniff
|
128
128
|
Date:
|
129
|
-
- Tue, 12 May 2015
|
129
|
+
- Tue, 12 May 2015 19:38:57 GMT
|
130
130
|
Content-Type:
|
131
131
|
- application/json; charset=utf-8
|
132
132
|
Etag:
|
133
|
-
- W/"
|
133
|
+
- W/"f17b8bfa7bbe81e7a43f0794b3b85b45"
|
134
134
|
Cache-Control:
|
135
135
|
- max-age=0, private, must-revalidate
|
136
136
|
Set-Cookie:
|
137
137
|
- request_method=POST; path=/
|
138
138
|
X-Request-Id:
|
139
|
-
-
|
139
|
+
- e1c5817d-2280-44a7-b036-ed1f56118c27
|
140
140
|
X-Runtime:
|
141
|
-
- '0.
|
141
|
+
- '0.056557'
|
142
142
|
Connection:
|
143
143
|
- close
|
144
144
|
Server:
|
145
145
|
- thin
|
146
146
|
body:
|
147
147
|
encoding: US-ASCII
|
148
|
-
string: ! '{"read":"
|
148
|
+
string: ! '{"read":"31411af4d499727273ddc055d4a5f75160267b298e608461ccb4bd7b55b59b9c","write":"f463e513ae48ec0728cc787dcf48eb16c2a966f690786577991624f65992e3e1"}'
|
149
149
|
http_version:
|
150
|
-
recorded_at: Tue, 12 May 2015
|
150
|
+
recorded_at: Tue, 12 May 2015 19:38:57 GMT
|
151
151
|
- request:
|
152
152
|
method: post
|
153
153
|
uri: http://localhost:3003/api/events/platforms/gradings
|
154
154
|
body:
|
155
155
|
encoding: UTF-8
|
156
|
-
string: ! '{"identifier":"
|
156
|
+
string: ! '{"identifier":"d56c357f18e997290edd6dad0e351aca690ced8a81fb2609024d02a184828d9f","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","grade":1.0,"grader":"openstax"}'
|
157
157
|
headers:
|
158
158
|
User-Agent:
|
159
159
|
- Faraday v0.9.1
|
160
160
|
Accept:
|
161
161
|
- application/vnd.exchange.openstax.v1
|
162
162
|
Authorization:
|
163
|
-
- Bearer
|
163
|
+
- Bearer 1aecd6a0f124ca39cc4398c39dec58fad94a2b49e6f14f10741f89075479f52e
|
164
164
|
Content-Type:
|
165
165
|
- application/json
|
166
166
|
response:
|
@@ -175,41 +175,41 @@ http_interactions:
|
|
175
175
|
X-Content-Type-Options:
|
176
176
|
- nosniff
|
177
177
|
Date:
|
178
|
-
- Tue, 12 May 2015
|
178
|
+
- Tue, 12 May 2015 19:38:57 GMT
|
179
179
|
Content-Type:
|
180
180
|
- application/json; charset=utf-8
|
181
181
|
Etag:
|
182
|
-
- W/"
|
182
|
+
- W/"6d0cb9333f44290b552c7a77c7b0152a"
|
183
183
|
Cache-Control:
|
184
184
|
- max-age=0, private, must-revalidate
|
185
185
|
Set-Cookie:
|
186
186
|
- request_method=POST; path=/
|
187
187
|
X-Request-Id:
|
188
|
-
-
|
188
|
+
- adcb07f2-6408-45db-a830-58255aba6cbf
|
189
189
|
X-Runtime:
|
190
|
-
- '0.
|
190
|
+
- '0.090007'
|
191
191
|
Connection:
|
192
192
|
- close
|
193
193
|
Server:
|
194
194
|
- thin
|
195
195
|
body:
|
196
196
|
encoding: US-ASCII
|
197
|
-
string: ! '{"identifier":"
|
197
|
+
string: ! '{"identifier":"d56c357f18e997290edd6dad0e351aca690ced8a81fb2609024d02a184828d9f","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","created_at":"2015-05-12T19:38:57.932Z","grader":"openstax","grade":1.0}'
|
198
198
|
http_version:
|
199
|
-
recorded_at: Tue, 12 May 2015
|
199
|
+
recorded_at: Tue, 12 May 2015 19:38:57 GMT
|
200
200
|
- request:
|
201
201
|
method: post
|
202
202
|
uri: http://localhost:3003/api/events/platforms/gradings
|
203
203
|
body:
|
204
204
|
encoding: UTF-8
|
205
|
-
string: ! '{"identifier":"
|
205
|
+
string: ! '{"identifier":"f463e513ae48ec0728cc787dcf48eb16c2a966f690786577991624f65992e3e1","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","grade":1.0,"grader":"openstax"}'
|
206
206
|
headers:
|
207
207
|
User-Agent:
|
208
208
|
- Faraday v0.9.1
|
209
209
|
Accept:
|
210
210
|
- application/vnd.exchange.openstax.v1
|
211
211
|
Authorization:
|
212
|
-
- Bearer
|
212
|
+
- Bearer 1aecd6a0f124ca39cc4398c39dec58fad94a2b49e6f14f10741f89075479f52e
|
213
213
|
Content-Type:
|
214
214
|
- application/json
|
215
215
|
response:
|
@@ -224,26 +224,26 @@ http_interactions:
|
|
224
224
|
X-Content-Type-Options:
|
225
225
|
- nosniff
|
226
226
|
Date:
|
227
|
-
- Tue, 12 May 2015
|
227
|
+
- Tue, 12 May 2015 19:38:58 GMT
|
228
228
|
Content-Type:
|
229
229
|
- application/json; charset=utf-8
|
230
230
|
Etag:
|
231
|
-
- W/"
|
231
|
+
- W/"0af130279ca9b7e11d21333fadaf987a"
|
232
232
|
Cache-Control:
|
233
233
|
- max-age=0, private, must-revalidate
|
234
234
|
Set-Cookie:
|
235
235
|
- request_method=POST; path=/
|
236
236
|
X-Request-Id:
|
237
|
-
-
|
237
|
+
- b36bb81b-ac91-465a-b943-29057632cf4b
|
238
238
|
X-Runtime:
|
239
|
-
- '0.
|
239
|
+
- '0.090778'
|
240
240
|
Connection:
|
241
241
|
- close
|
242
242
|
Server:
|
243
243
|
- thin
|
244
244
|
body:
|
245
245
|
encoding: US-ASCII
|
246
|
-
string: ! '{"identifier":"
|
246
|
+
string: ! '{"identifier":"f463e513ae48ec0728cc787dcf48eb16c2a966f690786577991624f65992e3e1","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","created_at":"2015-05-12T19:38:58.027Z","grader":"openstax","grade":1.0}'
|
247
247
|
http_version:
|
248
|
-
recorded_at: Tue, 12 May 2015
|
248
|
+
recorded_at: Tue, 12 May 2015 19:38:58 GMT
|
249
249
|
recorded_with: VCR 2.9.3
|
@@ -31,21 +31,21 @@ http_interactions:
|
|
31
31
|
Content-Type:
|
32
32
|
- application/json; charset=utf-8
|
33
33
|
Etag:
|
34
|
-
- W/"
|
34
|
+
- W/"61ce4a44d1d6fde30854e69414319a4b"
|
35
35
|
X-Request-Id:
|
36
|
-
-
|
36
|
+
- 6cbb6987-a019-4712-aefd-8db8f6ac3b4c
|
37
37
|
X-Runtime:
|
38
|
-
- '0.
|
38
|
+
- '0.017409'
|
39
39
|
Connection:
|
40
40
|
- close
|
41
41
|
Server:
|
42
42
|
- thin
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
|
-
string: ! '{"access_token":"
|
46
|
-
write","created_at":
|
45
|
+
string: ! '{"access_token":"bdc96307a18ee57bdcbc4b756abfab9c480f53ab006074be78f78b398283d753","token_type":"bearer","scope":"read
|
46
|
+
write","created_at":1431459538}'
|
47
47
|
http_version:
|
48
|
-
recorded_at: Tue, 12 May 2015
|
48
|
+
recorded_at: Tue, 12 May 2015 19:38:58 GMT
|
49
49
|
- request:
|
50
50
|
method: post
|
51
51
|
uri: http://localhost:3003/api/identifiers
|
@@ -60,7 +60,7 @@ http_interactions:
|
|
60
60
|
Content-Type:
|
61
61
|
- application/json
|
62
62
|
Authorization:
|
63
|
-
- Bearer
|
63
|
+
- Bearer bdc96307a18ee57bdcbc4b756abfab9c480f53ab006074be78f78b398283d753
|
64
64
|
Content-Length:
|
65
65
|
- '0'
|
66
66
|
response:
|
@@ -75,41 +75,41 @@ http_interactions:
|
|
75
75
|
X-Content-Type-Options:
|
76
76
|
- nosniff
|
77
77
|
Date:
|
78
|
-
- Tue, 12 May 2015
|
78
|
+
- Tue, 12 May 2015 19:38:58 GMT
|
79
79
|
Content-Type:
|
80
80
|
- application/json; charset=utf-8
|
81
81
|
Etag:
|
82
|
-
- W/"
|
82
|
+
- W/"828c453daed1f094d2f87236b2ceb87d"
|
83
83
|
Cache-Control:
|
84
84
|
- max-age=0, private, must-revalidate
|
85
85
|
Set-Cookie:
|
86
86
|
- request_method=POST; path=/
|
87
87
|
X-Request-Id:
|
88
|
-
-
|
88
|
+
- 105925f5-b2c0-40b2-a417-9a1bf5438abf
|
89
89
|
X-Runtime:
|
90
|
-
- '0.
|
90
|
+
- '0.059750'
|
91
91
|
Connection:
|
92
92
|
- close
|
93
93
|
Server:
|
94
94
|
- thin
|
95
95
|
body:
|
96
96
|
encoding: US-ASCII
|
97
|
-
string: ! '{"read":"
|
97
|
+
string: ! '{"read":"51a6116c77f6b739afd3974b60b8d370d5944ae5d9e646aef127674a70b652f8","write":"1c4d86055d7c7a24a26600b7c6d061cf148cac3b9733338263472de9632908e4"}'
|
98
98
|
http_version:
|
99
|
-
recorded_at: Tue, 12 May 2015
|
99
|
+
recorded_at: Tue, 12 May 2015 19:38:58 GMT
|
100
100
|
- request:
|
101
101
|
method: post
|
102
102
|
uri: http://localhost:3003/api/events/platforms/gradings
|
103
103
|
body:
|
104
104
|
encoding: UTF-8
|
105
|
-
string: ! '{"identifier":"
|
105
|
+
string: ! '{"identifier":"1c4d86055d7c7a24a26600b7c6d061cf148cac3b9733338263472de9632908e4","resource":"https://exercises-dev1.openstax.org/api/exercises/12@1","trial":"1","grade":1.0,"grader":"openstax"}'
|
106
106
|
headers:
|
107
107
|
User-Agent:
|
108
108
|
- Faraday v0.9.1
|
109
109
|
Accept:
|
110
110
|
- application/vnd.exchange.openstax.v1
|
111
111
|
Authorization:
|
112
|
-
- Bearer
|
112
|
+
- Bearer bdc96307a18ee57bdcbc4b756abfab9c480f53ab006074be78f78b398283d753
|
113
113
|
Content-Type:
|
114
114
|
- application/json
|
115
115
|
response:
|
@@ -124,41 +124,41 @@ http_interactions:
|
|
124
124
|
X-Content-Type-Options:
|
125
125
|
- nosniff
|
126
126
|
Date:
|
127
|
-
- Tue, 12 May 2015
|
127
|
+
- Tue, 12 May 2015 19:39:26 GMT
|
128
128
|
Content-Type:
|
129
129
|
- application/json; charset=utf-8
|
130
130
|
Etag:
|
131
|
-
- W/"
|
131
|
+
- W/"cf1c1f95250b0de2df9f514fe765dee5"
|
132
132
|
Cache-Control:
|
133
133
|
- max-age=0, private, must-revalidate
|
134
134
|
Set-Cookie:
|
135
135
|
- request_method=POST; path=/
|
136
136
|
X-Request-Id:
|
137
|
-
-
|
137
|
+
- 1e7369e9-ff6d-401e-b263-ddc037afb667
|
138
138
|
X-Runtime:
|
139
|
-
- '0.
|
139
|
+
- '0.485617'
|
140
140
|
Connection:
|
141
141
|
- close
|
142
142
|
Server:
|
143
143
|
- thin
|
144
144
|
body:
|
145
145
|
encoding: US-ASCII
|
146
|
-
string: ! '{"identifier":"
|
146
|
+
string: ! '{"identifier":"1c4d86055d7c7a24a26600b7c6d061cf148cac3b9733338263472de9632908e4","resource":"https://exercises-dev1.openstax.org/api/exercises/12@1","trial":"1","created_at":"2015-05-12T19:39:26.016Z","grader":"openstax","grade":1.0}'
|
147
147
|
http_version:
|
148
|
-
recorded_at: Tue, 12 May 2015
|
148
|
+
recorded_at: Tue, 12 May 2015 19:39:26 GMT
|
149
149
|
- request:
|
150
150
|
method: post
|
151
151
|
uri: http://localhost:3003/api/events/platforms/gradings
|
152
152
|
body:
|
153
153
|
encoding: UTF-8
|
154
|
-
string: ! '{"identifier":"
|
154
|
+
string: ! '{"identifier":"1c4d86055d7c7a24a26600b7c6d061cf148cac3b9733338263472de9632908e4","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","grade":1.0,"grader":"openstax"}'
|
155
155
|
headers:
|
156
156
|
User-Agent:
|
157
157
|
- Faraday v0.9.1
|
158
158
|
Accept:
|
159
159
|
- application/vnd.exchange.openstax.v1
|
160
160
|
Authorization:
|
161
|
-
- Bearer
|
161
|
+
- Bearer bdc96307a18ee57bdcbc4b756abfab9c480f53ab006074be78f78b398283d753
|
162
162
|
Content-Type:
|
163
163
|
- application/json
|
164
164
|
response:
|
@@ -173,26 +173,26 @@ http_interactions:
|
|
173
173
|
X-Content-Type-Options:
|
174
174
|
- nosniff
|
175
175
|
Date:
|
176
|
-
- Tue, 12 May 2015
|
176
|
+
- Tue, 12 May 2015 19:39:26 GMT
|
177
177
|
Content-Type:
|
178
178
|
- application/json; charset=utf-8
|
179
179
|
Etag:
|
180
|
-
- W/"
|
180
|
+
- W/"fa58c02548bba7e8414b7e04179c31e3"
|
181
181
|
Cache-Control:
|
182
182
|
- max-age=0, private, must-revalidate
|
183
183
|
Set-Cookie:
|
184
184
|
- request_method=POST; path=/
|
185
185
|
X-Request-Id:
|
186
|
-
-
|
186
|
+
- 8a62b3c1-7711-4ecd-99b8-7a1d06d1a8f9
|
187
187
|
X-Runtime:
|
188
|
-
- '0.
|
188
|
+
- '0.096533'
|
189
189
|
Connection:
|
190
190
|
- close
|
191
191
|
Server:
|
192
192
|
- thin
|
193
193
|
body:
|
194
194
|
encoding: US-ASCII
|
195
|
-
string: ! '{"identifier":"
|
195
|
+
string: ! '{"identifier":"1c4d86055d7c7a24a26600b7c6d061cf148cac3b9733338263472de9632908e4","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","created_at":"2015-05-12T19:39:26.120Z","grader":"openstax","grade":1.0}'
|
196
196
|
http_version:
|
197
|
-
recorded_at: Tue, 12 May 2015
|
197
|
+
recorded_at: Tue, 12 May 2015 19:39:26 GMT
|
198
198
|
recorded_with: VCR 2.9.3
|
@@ -31,21 +31,21 @@ http_interactions:
|
|
31
31
|
Content-Type:
|
32
32
|
- application/json; charset=utf-8
|
33
33
|
Etag:
|
34
|
-
- W/"
|
34
|
+
- W/"4b900c4a0c259e67c74efca0b5ebce6e"
|
35
35
|
X-Request-Id:
|
36
|
-
-
|
36
|
+
- 892a00cb-2d33-46d5-a264-1bc157a3586a
|
37
37
|
X-Runtime:
|
38
|
-
- '0.
|
38
|
+
- '0.033564'
|
39
39
|
Connection:
|
40
40
|
- close
|
41
41
|
Server:
|
42
42
|
- thin
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
|
-
string: ! '{"access_token":"
|
46
|
-
write","created_at":
|
45
|
+
string: ! '{"access_token":"a831336e5b0aa288b46bc414513fe8a4c42f15860fe8f70bbd0680ec93d76ac5","token_type":"bearer","scope":"read
|
46
|
+
write","created_at":1431459538}'
|
47
47
|
http_version:
|
48
|
-
recorded_at: Tue, 12 May 2015
|
48
|
+
recorded_at: Tue, 12 May 2015 19:38:58 GMT
|
49
49
|
- request:
|
50
50
|
method: post
|
51
51
|
uri: http://localhost:3003/api/identifiers
|
@@ -60,7 +60,7 @@ http_interactions:
|
|
60
60
|
Content-Type:
|
61
61
|
- application/json
|
62
62
|
Authorization:
|
63
|
-
- Bearer
|
63
|
+
- Bearer a831336e5b0aa288b46bc414513fe8a4c42f15860fe8f70bbd0680ec93d76ac5
|
64
64
|
Content-Length:
|
65
65
|
- '0'
|
66
66
|
response:
|
@@ -75,41 +75,41 @@ http_interactions:
|
|
75
75
|
X-Content-Type-Options:
|
76
76
|
- nosniff
|
77
77
|
Date:
|
78
|
-
- Tue, 12 May 2015
|
78
|
+
- Tue, 12 May 2015 19:38:58 GMT
|
79
79
|
Content-Type:
|
80
80
|
- application/json; charset=utf-8
|
81
81
|
Etag:
|
82
|
-
- W/"
|
82
|
+
- W/"0e27f14228b4648cb1c2391923d1d580"
|
83
83
|
Cache-Control:
|
84
84
|
- max-age=0, private, must-revalidate
|
85
85
|
Set-Cookie:
|
86
86
|
- request_method=POST; path=/
|
87
87
|
X-Request-Id:
|
88
|
-
-
|
88
|
+
- a927344c-2d9e-4946-93d7-5aa143beb711
|
89
89
|
X-Runtime:
|
90
|
-
- '0.
|
90
|
+
- '0.063835'
|
91
91
|
Connection:
|
92
92
|
- close
|
93
93
|
Server:
|
94
94
|
- thin
|
95
95
|
body:
|
96
96
|
encoding: US-ASCII
|
97
|
-
string: ! '{"read":"
|
97
|
+
string: ! '{"read":"66538ad57ffbb7980488d7147c9481617ac35045551bc802d6175e6613895807","write":"e317db1a3a486642177a5bf6c0c1bc19e1280edaaa0dd33495b0458e3f460f23"}'
|
98
98
|
http_version:
|
99
|
-
recorded_at: Tue, 12 May 2015
|
99
|
+
recorded_at: Tue, 12 May 2015 19:38:58 GMT
|
100
100
|
- request:
|
101
101
|
method: post
|
102
102
|
uri: http://localhost:3003/api/events/platforms/gradings
|
103
103
|
body:
|
104
104
|
encoding: UTF-8
|
105
|
-
string: ! '{"identifier":"
|
105
|
+
string: ! '{"identifier":"e317db1a3a486642177a5bf6c0c1bc19e1280edaaa0dd33495b0458e3f460f23","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","grade":1.0,"grader":"openstax"}'
|
106
106
|
headers:
|
107
107
|
User-Agent:
|
108
108
|
- Faraday v0.9.1
|
109
109
|
Accept:
|
110
110
|
- application/vnd.exchange.openstax.v1
|
111
111
|
Authorization:
|
112
|
-
- Bearer
|
112
|
+
- Bearer a831336e5b0aa288b46bc414513fe8a4c42f15860fe8f70bbd0680ec93d76ac5
|
113
113
|
Content-Type:
|
114
114
|
- application/json
|
115
115
|
response:
|
@@ -124,41 +124,41 @@ http_interactions:
|
|
124
124
|
X-Content-Type-Options:
|
125
125
|
- nosniff
|
126
126
|
Date:
|
127
|
-
- Tue, 12 May 2015
|
127
|
+
- Tue, 12 May 2015 19:38:58 GMT
|
128
128
|
Content-Type:
|
129
129
|
- application/json; charset=utf-8
|
130
130
|
Etag:
|
131
|
-
- W/"
|
131
|
+
- W/"27a9735444d620f79a03d93fa69dbb35"
|
132
132
|
Cache-Control:
|
133
133
|
- max-age=0, private, must-revalidate
|
134
134
|
Set-Cookie:
|
135
135
|
- request_method=POST; path=/
|
136
136
|
X-Request-Id:
|
137
|
-
-
|
137
|
+
- 8d83242c-ad64-408e-bdc3-8d54b6e7c73d
|
138
138
|
X-Runtime:
|
139
|
-
- '0.
|
139
|
+
- '0.087885'
|
140
140
|
Connection:
|
141
141
|
- close
|
142
142
|
Server:
|
143
143
|
- thin
|
144
144
|
body:
|
145
145
|
encoding: US-ASCII
|
146
|
-
string: ! '{"identifier":"
|
146
|
+
string: ! '{"identifier":"e317db1a3a486642177a5bf6c0c1bc19e1280edaaa0dd33495b0458e3f460f23","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","created_at":"2015-05-12T19:38:58.339Z","grader":"openstax","grade":1.0}'
|
147
147
|
http_version:
|
148
|
-
recorded_at: Tue, 12 May 2015
|
148
|
+
recorded_at: Tue, 12 May 2015 19:38:58 GMT
|
149
149
|
- request:
|
150
150
|
method: post
|
151
151
|
uri: http://localhost:3003/api/events/platforms/gradings
|
152
152
|
body:
|
153
153
|
encoding: UTF-8
|
154
|
-
string: ! '{"identifier":"
|
154
|
+
string: ! '{"identifier":"e317db1a3a486642177a5bf6c0c1bc19e1280edaaa0dd33495b0458e3f460f23","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"2","grade":1.0,"grader":"openstax"}'
|
155
155
|
headers:
|
156
156
|
User-Agent:
|
157
157
|
- Faraday v0.9.1
|
158
158
|
Accept:
|
159
159
|
- application/vnd.exchange.openstax.v1
|
160
160
|
Authorization:
|
161
|
-
- Bearer
|
161
|
+
- Bearer a831336e5b0aa288b46bc414513fe8a4c42f15860fe8f70bbd0680ec93d76ac5
|
162
162
|
Content-Type:
|
163
163
|
- application/json
|
164
164
|
response:
|
@@ -173,26 +173,26 @@ http_interactions:
|
|
173
173
|
X-Content-Type-Options:
|
174
174
|
- nosniff
|
175
175
|
Date:
|
176
|
-
- Tue, 12 May 2015
|
176
|
+
- Tue, 12 May 2015 19:38:58 GMT
|
177
177
|
Content-Type:
|
178
178
|
- application/json; charset=utf-8
|
179
179
|
Etag:
|
180
|
-
- W/"
|
180
|
+
- W/"a92d6cdb6b4254be9e7be0aeaad53b4a"
|
181
181
|
Cache-Control:
|
182
182
|
- max-age=0, private, must-revalidate
|
183
183
|
Set-Cookie:
|
184
184
|
- request_method=POST; path=/
|
185
185
|
X-Request-Id:
|
186
|
-
-
|
186
|
+
- 43b2717d-4165-433e-954f-6dac94d847b5
|
187
187
|
X-Runtime:
|
188
|
-
- '0.
|
188
|
+
- '0.097029'
|
189
189
|
Connection:
|
190
190
|
- close
|
191
191
|
Server:
|
192
192
|
- thin
|
193
193
|
body:
|
194
194
|
encoding: US-ASCII
|
195
|
-
string: ! '{"identifier":"
|
195
|
+
string: ! '{"identifier":"e317db1a3a486642177a5bf6c0c1bc19e1280edaaa0dd33495b0458e3f460f23","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"2","created_at":"2015-05-12T19:38:58.435Z","grader":"openstax","grade":1.0}'
|
196
196
|
http_version:
|
197
|
-
recorded_at: Tue, 12 May 2015
|
197
|
+
recorded_at: Tue, 12 May 2015 19:38:58 GMT
|
198
198
|
recorded_with: VCR 2.9.3
|
@@ -31,21 +31,21 @@ http_interactions:
|
|
31
31
|
Content-Type:
|
32
32
|
- application/json; charset=utf-8
|
33
33
|
Etag:
|
34
|
-
- W/"
|
34
|
+
- W/"5eadf4e60913f09e27ef83bef0a35640"
|
35
35
|
X-Request-Id:
|
36
|
-
-
|
36
|
+
- a5892a07-d682-46c0-aed7-e09a0e1b3260
|
37
37
|
X-Runtime:
|
38
|
-
- '0.
|
38
|
+
- '0.029457'
|
39
39
|
Connection:
|
40
40
|
- close
|
41
41
|
Server:
|
42
42
|
- thin
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
|
-
string: ! '{"access_token":"
|
46
|
-
write","created_at":
|
45
|
+
string: ! '{"access_token":"a0c9547dc92578caa50ae7d2df89f9843969a492e74e1e76098e90dfaf9642aa","token_type":"bearer","scope":"read
|
46
|
+
write","created_at":1431459536}'
|
47
47
|
http_version:
|
48
|
-
recorded_at: Tue, 12 May 2015
|
48
|
+
recorded_at: Tue, 12 May 2015 19:38:56 GMT
|
49
49
|
- request:
|
50
50
|
method: post
|
51
51
|
uri: http://localhost:3003/api/identifiers
|
@@ -60,7 +60,7 @@ http_interactions:
|
|
60
60
|
Content-Type:
|
61
61
|
- application/json
|
62
62
|
Authorization:
|
63
|
-
- Bearer
|
63
|
+
- Bearer a0c9547dc92578caa50ae7d2df89f9843969a492e74e1e76098e90dfaf9642aa
|
64
64
|
Content-Length:
|
65
65
|
- '0'
|
66
66
|
response:
|
@@ -75,41 +75,41 @@ http_interactions:
|
|
75
75
|
X-Content-Type-Options:
|
76
76
|
- nosniff
|
77
77
|
Date:
|
78
|
-
- Tue, 12 May 2015
|
78
|
+
- Tue, 12 May 2015 19:38:57 GMT
|
79
79
|
Content-Type:
|
80
80
|
- application/json; charset=utf-8
|
81
81
|
Etag:
|
82
|
-
- W/"
|
82
|
+
- W/"0c778f494fcf5eef0b6c7de386c58655"
|
83
83
|
Cache-Control:
|
84
84
|
- max-age=0, private, must-revalidate
|
85
85
|
Set-Cookie:
|
86
86
|
- request_method=POST; path=/
|
87
87
|
X-Request-Id:
|
88
|
-
-
|
88
|
+
- 20990405-65eb-4aeb-98b0-f2cb08f75f26
|
89
89
|
X-Runtime:
|
90
|
-
- '0.
|
90
|
+
- '0.118303'
|
91
91
|
Connection:
|
92
92
|
- close
|
93
93
|
Server:
|
94
94
|
- thin
|
95
95
|
body:
|
96
96
|
encoding: US-ASCII
|
97
|
-
string: ! '{"read":"
|
97
|
+
string: ! '{"read":"7381441470e915839601c17944c966a41548132d372c8456cfcdec1235bad61f","write":"15537880b8c79f8e79a89b6d646618d5853a692cf3dd154146fb85a6a0319c4d"}'
|
98
98
|
http_version:
|
99
|
-
recorded_at: Tue, 12 May 2015
|
99
|
+
recorded_at: Tue, 12 May 2015 19:38:57 GMT
|
100
100
|
- request:
|
101
101
|
method: post
|
102
102
|
uri: http://localhost:3003/api/events/platforms/gradings
|
103
103
|
body:
|
104
104
|
encoding: UTF-8
|
105
|
-
string: ! '{"identifier":"
|
105
|
+
string: ! '{"identifier":"15537880b8c79f8e79a89b6d646618d5853a692cf3dd154146fb85a6a0319c4d","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","grade":1.0,"grader":"openstax"}'
|
106
106
|
headers:
|
107
107
|
User-Agent:
|
108
108
|
- Faraday v0.9.1
|
109
109
|
Accept:
|
110
110
|
- application/vnd.exchange.openstax.v1
|
111
111
|
Authorization:
|
112
|
-
- Bearer
|
112
|
+
- Bearer a0c9547dc92578caa50ae7d2df89f9843969a492e74e1e76098e90dfaf9642aa
|
113
113
|
Content-Type:
|
114
114
|
- application/json
|
115
115
|
response:
|
@@ -124,26 +124,26 @@ http_interactions:
|
|
124
124
|
X-Content-Type-Options:
|
125
125
|
- nosniff
|
126
126
|
Date:
|
127
|
-
- Tue, 12 May 2015
|
127
|
+
- Tue, 12 May 2015 19:38:57 GMT
|
128
128
|
Content-Type:
|
129
129
|
- application/json; charset=utf-8
|
130
130
|
Etag:
|
131
|
-
- W/"
|
131
|
+
- W/"84116441735b4d6885e48deb6ad3f41a"
|
132
132
|
Cache-Control:
|
133
133
|
- max-age=0, private, must-revalidate
|
134
134
|
Set-Cookie:
|
135
135
|
- request_method=POST; path=/
|
136
136
|
X-Request-Id:
|
137
|
-
-
|
137
|
+
- fe1b4077-6a06-4ea1-be9c-53c425ad3532
|
138
138
|
X-Runtime:
|
139
|
-
- '0.
|
139
|
+
- '0.690264'
|
140
140
|
Connection:
|
141
141
|
- close
|
142
142
|
Server:
|
143
143
|
- thin
|
144
144
|
body:
|
145
145
|
encoding: US-ASCII
|
146
|
-
string: ! '{"identifier":"
|
146
|
+
string: ! '{"identifier":"15537880b8c79f8e79a89b6d646618d5853a692cf3dd154146fb85a6a0319c4d","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","created_at":"2015-05-12T19:38:57.656Z","grader":"openstax","grade":1.0}'
|
147
147
|
http_version:
|
148
|
-
recorded_at: Tue, 12 May 2015
|
148
|
+
recorded_at: Tue, 12 May 2015 19:38:57 GMT
|
149
149
|
recorded_with: VCR 2.9.3
|
@@ -244,17 +244,17 @@ RSpec.shared_examples "exchange client api v1" do
|
|
244
244
|
# (Exchange app/routines/find_or_create_resource_from_url.rb:35)
|
245
245
|
resource_string = 'https://exercises-dev1.openstax.org/api/exercises/123@1'
|
246
246
|
trial = '1'
|
247
|
-
|
247
|
+
grade = 1.0
|
248
248
|
grader_string = 'openstax'
|
249
249
|
|
250
250
|
response = OpenStax::Exchange.record_grade(
|
251
|
-
identifier, resource_string, trial,
|
251
|
+
identifier, resource_string, trial, grade, grader_string
|
252
252
|
)
|
253
253
|
|
254
254
|
expect(response['identifier']).to eq(identifier)
|
255
255
|
expect(response['resource']).to eq(resource_string)
|
256
256
|
expect(response['trial']).to eq(trial)
|
257
|
-
expect(response['grade']).to eq(
|
257
|
+
expect(response['grade']).to eq(grade)
|
258
258
|
expect(response['grader']).to eq(grader_string)
|
259
259
|
end
|
260
260
|
it "allows grades for distinct identifiers to be saved" do
|
@@ -265,21 +265,21 @@ RSpec.shared_examples "exchange client api v1" do
|
|
265
265
|
# (Exchange app/routines/find_or_create_resource_from_url.rb:35)
|
266
266
|
resource_string = 'https://exercises-dev1.openstax.org/api/exercises/123@1'
|
267
267
|
trial = '1'
|
268
|
-
|
268
|
+
grade = 1.0
|
269
269
|
grader_string = 'openstax'
|
270
270
|
|
271
271
|
response = nil
|
272
272
|
|
273
273
|
expect {
|
274
274
|
response = OpenStax::Exchange.record_grade(
|
275
|
-
identifier1, resource_string, trial,
|
275
|
+
identifier1, resource_string, trial, grade, grader_string
|
276
276
|
)
|
277
277
|
}.to_not raise_error
|
278
278
|
expect(response['identifier']).to eq(identifier1)
|
279
279
|
|
280
280
|
expect {
|
281
281
|
response = OpenStax::Exchange.record_grade(
|
282
|
-
identifier2, resource_string, trial,
|
282
|
+
identifier2, resource_string, trial, grade, grader_string
|
283
283
|
)
|
284
284
|
}.to_not raise_error
|
285
285
|
expect(response['identifier']).to eq(identifier2)
|
@@ -292,21 +292,21 @@ RSpec.shared_examples "exchange client api v1" do
|
|
292
292
|
resource_string1 = 'https://exercises-dev1.openstax.org/api/exercises/12@1'
|
293
293
|
resource_string2 = 'https://exercises-dev1.openstax.org/api/exercises/123@1'
|
294
294
|
trial = '1'
|
295
|
-
|
295
|
+
grade = 1.0
|
296
296
|
grader_string = 'openstax'
|
297
297
|
|
298
298
|
response = nil
|
299
299
|
|
300
300
|
expect {
|
301
301
|
response = OpenStax::Exchange.record_grade(
|
302
|
-
identifier, resource_string1, trial,
|
302
|
+
identifier, resource_string1, trial, grade, grader_string
|
303
303
|
)
|
304
304
|
}.to_not raise_error
|
305
305
|
expect(response['resource']).to eq(resource_string1)
|
306
306
|
|
307
307
|
expect {
|
308
308
|
response = OpenStax::Exchange.record_grade(
|
309
|
-
identifier, resource_string2, trial,
|
309
|
+
identifier, resource_string2, trial, grade, grader_string
|
310
310
|
)
|
311
311
|
}.to_not raise_error
|
312
312
|
expect(response['resource']).to eq(resource_string2)
|
@@ -319,21 +319,21 @@ RSpec.shared_examples "exchange client api v1" do
|
|
319
319
|
resource_string = 'https://exercises-dev1.openstax.org/api/exercises/123@1'
|
320
320
|
trial1 = '1'
|
321
321
|
trial2 = '2'
|
322
|
-
|
322
|
+
grade = 1.0
|
323
323
|
grader_string = 'openstax'
|
324
324
|
|
325
325
|
response = nil
|
326
326
|
|
327
327
|
expect {
|
328
328
|
response = OpenStax::Exchange.record_grade(
|
329
|
-
identifier, resource_string, trial1,
|
329
|
+
identifier, resource_string, trial1, grade, grader_string
|
330
330
|
)
|
331
331
|
}.to_not raise_error
|
332
332
|
expect(response['trial']).to eq(trial1)
|
333
333
|
|
334
334
|
expect {
|
335
335
|
response = OpenStax::Exchange.record_grade(
|
336
|
-
identifier, resource_string, trial2,
|
336
|
+
identifier, resource_string, trial2, grade, grader_string
|
337
337
|
)
|
338
338
|
}.to_not raise_error
|
339
339
|
expect(response['trial']).to eq(trial2)
|
@@ -347,28 +347,28 @@ RSpec.shared_examples "exchange client api v1" do
|
|
347
347
|
# (Exchange app/routines/find_or_create_resource_from_url.rb:35)
|
348
348
|
resource_string = 'https://exercises-dev1.openstax.org/api/exercises/123@1'
|
349
349
|
trial = '1'
|
350
|
-
|
351
|
-
|
350
|
+
grade = 0.0
|
351
|
+
grade_2 = 1.0
|
352
352
|
grader_string = 'openstax'
|
353
353
|
grader_string_2 = 'tutor'
|
354
354
|
|
355
355
|
response = nil
|
356
356
|
expect {
|
357
357
|
response = OpenStax::Exchange.record_grade(
|
358
|
-
identifier, resource_string, trial,
|
358
|
+
identifier, resource_string, trial, grade, grader_string
|
359
359
|
)
|
360
360
|
}.to_not raise_error
|
361
361
|
|
362
|
-
expect(response['grade']).to eq
|
362
|
+
expect(response['grade']).to eq grade
|
363
363
|
expect(response['grader']).to eq grader_string
|
364
364
|
|
365
365
|
expect {
|
366
366
|
response = OpenStax::Exchange.record_grade(
|
367
|
-
identifier, resource_string, trial,
|
367
|
+
identifier, resource_string, trial, grade_2, grader_string_2
|
368
368
|
)
|
369
369
|
}.to_not raise_error
|
370
370
|
|
371
|
-
expect(response['grade']).to eq
|
371
|
+
expect(response['grade']).to eq grade_2
|
372
372
|
expect(response['grader']).to eq grader_string_2
|
373
373
|
end
|
374
374
|
end
|
@@ -380,12 +380,12 @@ RSpec.shared_examples "exchange client api v1" do
|
|
380
380
|
# (Exchange app/routines/find_or_create_resource_from_url.rb:35)
|
381
381
|
resource_string = 'https://example.com/api/exercises/123@1'
|
382
382
|
trial = '1'
|
383
|
-
|
383
|
+
grade = 1.0
|
384
384
|
grader_string = 'openstax'
|
385
385
|
|
386
386
|
expect {
|
387
387
|
response = OpenStax::Exchange.record_grade(
|
388
|
-
identifier, resource_string, trial,
|
388
|
+
identifier, resource_string, trial, grade, grader_string
|
389
389
|
)
|
390
390
|
}.to raise_error(OpenStax::Exchange::ClientError)
|
391
391
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openstax_exchange
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -205,7 +205,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
205
205
|
version: '0'
|
206
206
|
segments:
|
207
207
|
- 0
|
208
|
-
hash:
|
208
|
+
hash: -1140779240583800018
|
209
209
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
210
210
|
none: false
|
211
211
|
requirements:
|
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
214
|
version: '0'
|
215
215
|
segments:
|
216
216
|
- 0
|
217
|
-
hash:
|
217
|
+
hash: -1140779240583800018
|
218
218
|
requirements: []
|
219
219
|
rubyforge_project:
|
220
220
|
rubygems_version: 1.8.23.2
|