openstax_exchange 0.1.0 → 0.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.
@@ -0,0 +1,198 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://123:abc@localhost:3003/oauth/token
6
+ body:
7
+ encoding: US-ASCII
8
+ string: grant_type=client_credentials
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.1
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ Accept:
15
+ - ! '*/*'
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ X-Frame-Options:
22
+ - SAMEORIGIN
23
+ X-Xss-Protection:
24
+ - 1; mode=block
25
+ X-Content-Type-Options:
26
+ - nosniff
27
+ Cache-Control:
28
+ - no-store
29
+ Pragma:
30
+ - no-cache
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ Etag:
34
+ - W/"0e60c9d287ffb10c20ba2ad338cb9f0e"
35
+ X-Request-Id:
36
+ - 9b73bf80-b61e-4dc8-be64-58594d2736df
37
+ X-Runtime:
38
+ - '0.018208'
39
+ Connection:
40
+ - close
41
+ Server:
42
+ - thin
43
+ body:
44
+ encoding: US-ASCII
45
+ string: ! '{"access_token":"39efd7d752431a76d1f8509592c344f4fa81728d0ec25631b9bc7565427a8701","token_type":"bearer","scope":"read
46
+ write","created_at":1431390181}'
47
+ http_version:
48
+ recorded_at: Tue, 12 May 2015 00:23:01 GMT
49
+ - request:
50
+ method: post
51
+ uri: http://localhost:3003/api/identifiers
52
+ body:
53
+ encoding: US-ASCII
54
+ string: ''
55
+ headers:
56
+ User-Agent:
57
+ - Faraday v0.9.1
58
+ Accept:
59
+ - application/vnd.exchange.openstax.v1
60
+ Content-Type:
61
+ - application/json
62
+ Authorization:
63
+ - Bearer 39efd7d752431a76d1f8509592c344f4fa81728d0ec25631b9bc7565427a8701
64
+ Content-Length:
65
+ - '0'
66
+ response:
67
+ status:
68
+ code: 201
69
+ message: Created
70
+ headers:
71
+ X-Frame-Options:
72
+ - SAMEORIGIN
73
+ X-Xss-Protection:
74
+ - 1; mode=block
75
+ X-Content-Type-Options:
76
+ - nosniff
77
+ Date:
78
+ - Tue, 12 May 2015 00:23:01 GMT
79
+ Content-Type:
80
+ - application/json; charset=utf-8
81
+ Etag:
82
+ - W/"b35703fd355e2dce13c9cec98a373fe9"
83
+ Cache-Control:
84
+ - max-age=0, private, must-revalidate
85
+ Set-Cookie:
86
+ - request_method=POST; path=/
87
+ X-Request-Id:
88
+ - e664320d-91d6-461f-bfd2-3f5d5fdf89ee
89
+ X-Runtime:
90
+ - '0.077787'
91
+ Connection:
92
+ - close
93
+ Server:
94
+ - thin
95
+ body:
96
+ encoding: US-ASCII
97
+ string: ! '{"read":"0197c01c7419e4021d32caf59e1718ea2395f2c7a56034b686d3d311db55b818","write":"280f998aeecd27de526b71670846d0bdba64ccc9dd6096bd3edb081c48965725"}'
98
+ http_version:
99
+ recorded_at: Tue, 12 May 2015 00:23:01 GMT
100
+ - request:
101
+ method: post
102
+ uri: http://localhost:3003/api/events/platforms/gradings
103
+ body:
104
+ encoding: UTF-8
105
+ string: ! '{"identifier":"280f998aeecd27de526b71670846d0bdba64ccc9dd6096bd3edb081c48965725","resource":"https://exercises-dev1.openstax.org/api/exercises/12@1","trial":"1","grade":"1.0","grader":"openstax"}'
106
+ headers:
107
+ User-Agent:
108
+ - Faraday v0.9.1
109
+ Accept:
110
+ - application/vnd.exchange.openstax.v1
111
+ Authorization:
112
+ - Bearer 39efd7d752431a76d1f8509592c344f4fa81728d0ec25631b9bc7565427a8701
113
+ Content-Type:
114
+ - application/json
115
+ response:
116
+ status:
117
+ code: 201
118
+ message: Created
119
+ headers:
120
+ X-Frame-Options:
121
+ - SAMEORIGIN
122
+ X-Xss-Protection:
123
+ - 1; mode=block
124
+ X-Content-Type-Options:
125
+ - nosniff
126
+ Date:
127
+ - Tue, 12 May 2015 00:23:01 GMT
128
+ Content-Type:
129
+ - application/json; charset=utf-8
130
+ Etag:
131
+ - W/"c8d33ed7e979bdddb9ee255b9fc71ef4"
132
+ Cache-Control:
133
+ - max-age=0, private, must-revalidate
134
+ Set-Cookie:
135
+ - request_method=POST; path=/
136
+ X-Request-Id:
137
+ - 8abb7d71-1c18-46e8-8535-566ce118f4c0
138
+ X-Runtime:
139
+ - '0.099400'
140
+ Connection:
141
+ - close
142
+ Server:
143
+ - thin
144
+ body:
145
+ encoding: US-ASCII
146
+ string: ! '{"identifier":"280f998aeecd27de526b71670846d0bdba64ccc9dd6096bd3edb081c48965725","resource":"https://exercises-dev1.openstax.org/api/exercises/12@1","trial":"1","created_at":"2015-05-12T00:23:01.748Z","grader":"openstax","grade":"1.0"}'
147
+ http_version:
148
+ recorded_at: Tue, 12 May 2015 00:23:01 GMT
149
+ - request:
150
+ method: post
151
+ uri: http://localhost:3003/api/events/platforms/gradings
152
+ body:
153
+ encoding: UTF-8
154
+ string: ! '{"identifier":"280f998aeecd27de526b71670846d0bdba64ccc9dd6096bd3edb081c48965725","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","grade":"1.0","grader":"openstax"}'
155
+ headers:
156
+ User-Agent:
157
+ - Faraday v0.9.1
158
+ Accept:
159
+ - application/vnd.exchange.openstax.v1
160
+ Authorization:
161
+ - Bearer 39efd7d752431a76d1f8509592c344f4fa81728d0ec25631b9bc7565427a8701
162
+ Content-Type:
163
+ - application/json
164
+ response:
165
+ status:
166
+ code: 201
167
+ message: Created
168
+ headers:
169
+ X-Frame-Options:
170
+ - SAMEORIGIN
171
+ X-Xss-Protection:
172
+ - 1; mode=block
173
+ X-Content-Type-Options:
174
+ - nosniff
175
+ Date:
176
+ - Tue, 12 May 2015 00:23:01 GMT
177
+ Content-Type:
178
+ - application/json; charset=utf-8
179
+ Etag:
180
+ - W/"6e9216502f37b6a3e103e05fd17351e8"
181
+ Cache-Control:
182
+ - max-age=0, private, must-revalidate
183
+ Set-Cookie:
184
+ - request_method=POST; path=/
185
+ X-Request-Id:
186
+ - b24655ee-481d-43b2-ba32-525db75f4dd2
187
+ X-Runtime:
188
+ - '0.095929'
189
+ Connection:
190
+ - close
191
+ Server:
192
+ - thin
193
+ body:
194
+ encoding: US-ASCII
195
+ string: ! '{"identifier":"280f998aeecd27de526b71670846d0bdba64ccc9dd6096bd3edb081c48965725","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","created_at":"2015-05-12T00:23:01.852Z","grader":"openstax","grade":"1.0"}'
196
+ http_version:
197
+ recorded_at: Tue, 12 May 2015 00:23:01 GMT
198
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,198 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://123:abc@localhost:3003/oauth/token
6
+ body:
7
+ encoding: US-ASCII
8
+ string: grant_type=client_credentials
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.1
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ Accept:
15
+ - ! '*/*'
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ X-Frame-Options:
22
+ - SAMEORIGIN
23
+ X-Xss-Protection:
24
+ - 1; mode=block
25
+ X-Content-Type-Options:
26
+ - nosniff
27
+ Cache-Control:
28
+ - no-store
29
+ Pragma:
30
+ - no-cache
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ Etag:
34
+ - W/"c8094843b234419f28a3e47ec191f382"
35
+ X-Request-Id:
36
+ - be7935e9-c73b-42f2-853d-d8dd2552843e
37
+ X-Runtime:
38
+ - '0.017937'
39
+ Connection:
40
+ - close
41
+ Server:
42
+ - thin
43
+ body:
44
+ encoding: US-ASCII
45
+ string: ! '{"access_token":"6c2c0af97c3e4e238e3367d76c31a5811987723199f7fac157111965e62b9d92","token_type":"bearer","scope":"read
46
+ write","created_at":1431390181}'
47
+ http_version:
48
+ recorded_at: Tue, 12 May 2015 00:23:01 GMT
49
+ - request:
50
+ method: post
51
+ uri: http://localhost:3003/api/identifiers
52
+ body:
53
+ encoding: US-ASCII
54
+ string: ''
55
+ headers:
56
+ User-Agent:
57
+ - Faraday v0.9.1
58
+ Accept:
59
+ - application/vnd.exchange.openstax.v1
60
+ Content-Type:
61
+ - application/json
62
+ Authorization:
63
+ - Bearer 6c2c0af97c3e4e238e3367d76c31a5811987723199f7fac157111965e62b9d92
64
+ Content-Length:
65
+ - '0'
66
+ response:
67
+ status:
68
+ code: 201
69
+ message: Created
70
+ headers:
71
+ X-Frame-Options:
72
+ - SAMEORIGIN
73
+ X-Xss-Protection:
74
+ - 1; mode=block
75
+ X-Content-Type-Options:
76
+ - nosniff
77
+ Date:
78
+ - Tue, 12 May 2015 00:23:02 GMT
79
+ Content-Type:
80
+ - application/json; charset=utf-8
81
+ Etag:
82
+ - W/"5555eb9de0bb252a57cb0ec7407fa2d4"
83
+ Cache-Control:
84
+ - max-age=0, private, must-revalidate
85
+ Set-Cookie:
86
+ - request_method=POST; path=/
87
+ X-Request-Id:
88
+ - 53e15ab5-e868-4395-adde-a0b0fc722272
89
+ X-Runtime:
90
+ - '0.061855'
91
+ Connection:
92
+ - close
93
+ Server:
94
+ - thin
95
+ body:
96
+ encoding: US-ASCII
97
+ string: ! '{"read":"4bf37e33b2b655c2663822d6f735ec5c4fd2eb2cd509dc305165f6fe5aa62aad","write":"51b451df43d0560abc97780f3f30686bff9270105ff705911551d51716a45bf2"}'
98
+ http_version:
99
+ recorded_at: Tue, 12 May 2015 00:23:02 GMT
100
+ - request:
101
+ method: post
102
+ uri: http://localhost:3003/api/events/platforms/gradings
103
+ body:
104
+ encoding: UTF-8
105
+ string: ! '{"identifier":"51b451df43d0560abc97780f3f30686bff9270105ff705911551d51716a45bf2","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","grade":"1.0","grader":"openstax"}'
106
+ headers:
107
+ User-Agent:
108
+ - Faraday v0.9.1
109
+ Accept:
110
+ - application/vnd.exchange.openstax.v1
111
+ Authorization:
112
+ - Bearer 6c2c0af97c3e4e238e3367d76c31a5811987723199f7fac157111965e62b9d92
113
+ Content-Type:
114
+ - application/json
115
+ response:
116
+ status:
117
+ code: 201
118
+ message: Created
119
+ headers:
120
+ X-Frame-Options:
121
+ - SAMEORIGIN
122
+ X-Xss-Protection:
123
+ - 1; mode=block
124
+ X-Content-Type-Options:
125
+ - nosniff
126
+ Date:
127
+ - Tue, 12 May 2015 00:23:02 GMT
128
+ Content-Type:
129
+ - application/json; charset=utf-8
130
+ Etag:
131
+ - W/"e67967db3f3ea35bb368ca2a811e1944"
132
+ Cache-Control:
133
+ - max-age=0, private, must-revalidate
134
+ Set-Cookie:
135
+ - request_method=POST; path=/
136
+ X-Request-Id:
137
+ - adc86379-ca5e-4f84-9e05-506ffc65cccb
138
+ X-Runtime:
139
+ - '0.096917'
140
+ Connection:
141
+ - close
142
+ Server:
143
+ - thin
144
+ body:
145
+ encoding: US-ASCII
146
+ string: ! '{"identifier":"51b451df43d0560abc97780f3f30686bff9270105ff705911551d51716a45bf2","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","created_at":"2015-05-12T00:23:02.054Z","grader":"openstax","grade":"1.0"}'
147
+ http_version:
148
+ recorded_at: Tue, 12 May 2015 00:23:02 GMT
149
+ - request:
150
+ method: post
151
+ uri: http://localhost:3003/api/events/platforms/gradings
152
+ body:
153
+ encoding: UTF-8
154
+ string: ! '{"identifier":"51b451df43d0560abc97780f3f30686bff9270105ff705911551d51716a45bf2","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"2","grade":"1.0","grader":"openstax"}'
155
+ headers:
156
+ User-Agent:
157
+ - Faraday v0.9.1
158
+ Accept:
159
+ - application/vnd.exchange.openstax.v1
160
+ Authorization:
161
+ - Bearer 6c2c0af97c3e4e238e3367d76c31a5811987723199f7fac157111965e62b9d92
162
+ Content-Type:
163
+ - application/json
164
+ response:
165
+ status:
166
+ code: 201
167
+ message: Created
168
+ headers:
169
+ X-Frame-Options:
170
+ - SAMEORIGIN
171
+ X-Xss-Protection:
172
+ - 1; mode=block
173
+ X-Content-Type-Options:
174
+ - nosniff
175
+ Date:
176
+ - Tue, 12 May 2015 00:23:02 GMT
177
+ Content-Type:
178
+ - application/json; charset=utf-8
179
+ Etag:
180
+ - W/"833ba5c8efecf3850e5045d58fbc702d"
181
+ Cache-Control:
182
+ - max-age=0, private, must-revalidate
183
+ Set-Cookie:
184
+ - request_method=POST; path=/
185
+ X-Request-Id:
186
+ - a78bebbd-5ee2-401b-bb45-e9393e22dbcf
187
+ X-Runtime:
188
+ - '0.102921'
189
+ Connection:
190
+ - close
191
+ Server:
192
+ - thin
193
+ body:
194
+ encoding: US-ASCII
195
+ string: ! '{"identifier":"51b451df43d0560abc97780f3f30686bff9270105ff705911551d51716a45bf2","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"2","created_at":"2015-05-12T00:23:02.159Z","grader":"openstax","grade":"1.0"}'
196
+ http_version:
197
+ recorded_at: Tue, 12 May 2015 00:23:02 GMT
198
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,149 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://123:abc@localhost:3003/oauth/token
6
+ body:
7
+ encoding: US-ASCII
8
+ string: grant_type=client_credentials
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.1
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ Accept:
15
+ - ! '*/*'
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ X-Frame-Options:
22
+ - SAMEORIGIN
23
+ X-Xss-Protection:
24
+ - 1; mode=block
25
+ X-Content-Type-Options:
26
+ - nosniff
27
+ Cache-Control:
28
+ - no-store
29
+ Pragma:
30
+ - no-cache
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ Etag:
34
+ - W/"a9b87e5f1e32f2a38c9a0462d18947ea"
35
+ X-Request-Id:
36
+ - 9d816e5f-00cf-4178-a63f-7b7aee1df705
37
+ X-Runtime:
38
+ - '0.017724'
39
+ Connection:
40
+ - close
41
+ Server:
42
+ - thin
43
+ body:
44
+ encoding: US-ASCII
45
+ string: ! '{"access_token":"29e016f1157cbe6b55950212a53c83b1d1f2505ac5261bc66e9b4065168b1111","token_type":"bearer","scope":"read
46
+ write","created_at":1431390181}'
47
+ http_version:
48
+ recorded_at: Tue, 12 May 2015 00:23:01 GMT
49
+ - request:
50
+ method: post
51
+ uri: http://localhost:3003/api/identifiers
52
+ body:
53
+ encoding: US-ASCII
54
+ string: ''
55
+ headers:
56
+ User-Agent:
57
+ - Faraday v0.9.1
58
+ Accept:
59
+ - application/vnd.exchange.openstax.v1
60
+ Content-Type:
61
+ - application/json
62
+ Authorization:
63
+ - Bearer 29e016f1157cbe6b55950212a53c83b1d1f2505ac5261bc66e9b4065168b1111
64
+ Content-Length:
65
+ - '0'
66
+ response:
67
+ status:
68
+ code: 201
69
+ message: Created
70
+ headers:
71
+ X-Frame-Options:
72
+ - SAMEORIGIN
73
+ X-Xss-Protection:
74
+ - 1; mode=block
75
+ X-Content-Type-Options:
76
+ - nosniff
77
+ Date:
78
+ - Tue, 12 May 2015 00:23:01 GMT
79
+ Content-Type:
80
+ - application/json; charset=utf-8
81
+ Etag:
82
+ - W/"974110bdcecd25409b45a67f3b985762"
83
+ Cache-Control:
84
+ - max-age=0, private, must-revalidate
85
+ Set-Cookie:
86
+ - request_method=POST; path=/
87
+ X-Request-Id:
88
+ - 5abacc83-fb13-420f-af29-c13d36f4efc2
89
+ X-Runtime:
90
+ - '0.060132'
91
+ Connection:
92
+ - close
93
+ Server:
94
+ - thin
95
+ body:
96
+ encoding: US-ASCII
97
+ string: ! '{"read":"3604f61daf0fca2cc50b0dd4417b919ca8c5f2956563eb3d05599b610281ae3f","write":"9b390d51a9d1d63e5e1621bc9c7841acd846a174a06d76252f7d549122c6873b"}'
98
+ http_version:
99
+ recorded_at: Tue, 12 May 2015 00:23:01 GMT
100
+ - request:
101
+ method: post
102
+ uri: http://localhost:3003/api/events/platforms/gradings
103
+ body:
104
+ encoding: UTF-8
105
+ string: ! '{"identifier":"9b390d51a9d1d63e5e1621bc9c7841acd846a174a06d76252f7d549122c6873b","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","grade":"1.0","grader":"openstax"}'
106
+ headers:
107
+ User-Agent:
108
+ - Faraday v0.9.1
109
+ Accept:
110
+ - application/vnd.exchange.openstax.v1
111
+ Authorization:
112
+ - Bearer 29e016f1157cbe6b55950212a53c83b1d1f2505ac5261bc66e9b4065168b1111
113
+ Content-Type:
114
+ - application/json
115
+ response:
116
+ status:
117
+ code: 201
118
+ message: Created
119
+ headers:
120
+ X-Frame-Options:
121
+ - SAMEORIGIN
122
+ X-Xss-Protection:
123
+ - 1; mode=block
124
+ X-Content-Type-Options:
125
+ - nosniff
126
+ Date:
127
+ - Tue, 12 May 2015 00:23:01 GMT
128
+ Content-Type:
129
+ - application/json; charset=utf-8
130
+ Etag:
131
+ - W/"bdd550afd50a623ed2b8b11c92eea286"
132
+ Cache-Control:
133
+ - max-age=0, private, must-revalidate
134
+ Set-Cookie:
135
+ - request_method=POST; path=/
136
+ X-Request-Id:
137
+ - edd5f625-c6ba-4382-bc3b-d1b34bcc6dd6
138
+ X-Runtime:
139
+ - '0.094895'
140
+ Connection:
141
+ - close
142
+ Server:
143
+ - thin
144
+ body:
145
+ encoding: US-ASCII
146
+ string: ! '{"identifier":"9b390d51a9d1d63e5e1621bc9c7841acd846a174a06d76252f7d549122c6873b","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","created_at":"2015-05-12T00:23:01.156Z","grader":"openstax","grade":"1.0"}'
147
+ http_version:
148
+ recorded_at: Tue, 12 May 2015 00:23:01 GMT
149
+ recorded_with: VCR 2.9.3