badgeapi 0.3.10 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/.rubocop.yml +147 -0
- data/README.md +44 -12
- data/Rakefile +24 -11
- data/badgeapi.gemspec +23 -22
- data/lib/badgeapi/badge.rb +24 -27
- data/lib/badgeapi/badgeapi_object.rb +160 -147
- data/lib/badgeapi/collection.rb +6 -9
- data/lib/badgeapi/errors/api_error.rb +3 -4
- data/lib/badgeapi/errors/badgeapi_error.rb +15 -15
- data/lib/badgeapi/errors/invalid_request_error.rb +3 -4
- data/lib/badgeapi/recipient.rb +13 -16
- data/lib/badgeapi/version.rb +1 -1
- data/lib/badgeapi.rb +13 -15
- data/test/badge/badge_test.rb +71 -150
- data/test/badgeapi_test.rb +4 -0
- data/test/collection/collection_test.rb +43 -77
- data/test/fixtures/badge_all.yml +113 -0
- data/test/fixtures/{bad_api_key.yml → badge_all_bad_user.yml} +14 -13
- data/test/fixtures/{all_badges_bad_user.yml → badge_all_badges_bad_user.yml} +16 -57
- data/test/fixtures/badge_all_expanded.yml +184 -0
- data/test/fixtures/badge_all_from_collection.yml +52 -0
- data/test/fixtures/badge_all_issued.yml +99 -0
- data/test/fixtures/{all_badges_limited.yml → badge_all_limited.yml} +10 -8
- data/test/fixtures/{create_badge.yml → badge_create.yml} +20 -16
- data/test/fixtures/{create_new_badge_failure.yml → badge_create_new.yml} +28 -22
- data/test/fixtures/badge_destroy.yml +147 -0
- data/test/fixtures/badge_destroy_error.yml +147 -0
- data/test/fixtures/badge_error.yml +54 -6
- data/test/fixtures/{issue_badge_to_bad_user.yml → badge_issue_to_bad_user.yml} +8 -6
- data/test/fixtures/badge_issue_to_user.yml +107 -0
- data/test/fixtures/{issue_badge_to_user_with_library_card.yml → badge_issue_to_user_with_library_card.yml} +21 -17
- data/test/fixtures/{one_badge.yml → badge_one.yml} +10 -8
- data/test/fixtures/{one_badge_expanded.yml → badge_one_expanded.yml} +11 -9
- data/test/fixtures/badge_requirements.yml +150 -105
- data/test/fixtures/badge_revoke_from_user.yml +107 -0
- data/test/fixtures/{update_badge_via_update.yml → badge_update_via_update.yml} +31 -25
- data/test/fixtures/{update_badge_via_update_slug_history.yml → badge_update_via_update_slug_history.yml} +41 -33
- data/test/fixtures/{all_collection.yml → collection_all.yml} +11 -9
- data/test/fixtures/collection_all_expanded.yml +123 -0
- data/test/fixtures/{all_collection_limit.yml → collection_all_limit.yml} +10 -8
- data/test/fixtures/{create_collection.yml → collection_create.yml} +20 -16
- data/test/fixtures/{create_new_collection_failure.yml → collection_create_new_failure.yml} +36 -28
- data/test/fixtures/{destroy_collection.yml → collection_destroy.yml} +36 -28
- data/test/fixtures/{destroy_collection_error.yml → collection_destroy_error.yml} +36 -28
- data/test/fixtures/collection_error.yml +108 -12
- data/test/fixtures/{one_collection.yml → collection_one.yml} +10 -8
- data/test/fixtures/collection_one_expanded.yml +106 -0
- data/test/fixtures/{update_collection.yml → collection_update.yml} +40 -32
- data/test/fixtures/{update_collection_via_update.yml → collection_update_via_update.yml} +30 -24
- data/test/fixtures/{bad_Recipietn_request.yml → recipient_bad_user_data.yml} +26 -22
- data/test/fixtures/recipient_with_badges.yml +20 -108
- data/test/fixtures/recipient_with_badges_unicard.yml +151 -8
- data/test/recipient/recipient_test.rb +11 -29
- metadata +69 -73
- data/test/fixtures/all_badges.yml +0 -121
- data/test/fixtures/all_badges_expanded.yml +0 -196
- data/test/fixtures/all_badges_from_collection.yml +0 -52
- data/test/fixtures/all_badges_issued.yml +0 -430
- data/test/fixtures/all_collection_expanded.yml +0 -131
- data/test/fixtures/bad_Recipient.yml +0 -183
- data/test/fixtures/destroy_badge.yml +0 -277
- data/test/fixtures/destroy_badge_error.yml +0 -231
- data/test/fixtures/issue_already_owned_badge.yml +0 -49
- data/test/fixtures/issue_badge_to_user.yml +0 -199
- data/test/fixtures/one_collection_expanded.yml +0 -104
- data/test/fixtures/revoke_badge_from_user.yml +0 -199
- data/test/fixtures/revoke_badge_not_issued.yml +0 -49
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://gamification-api.dev/v1/collections
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: collection%5Bdescription%5D=This+is+a+new+badge&collection%5Bname%5D=Create+Collection+for+Destroy
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.9.
|
11
|
+
- Faraday v0.9.2
|
12
12
|
Authorization:
|
13
13
|
- Token token="c9cde524238644fa93393159e5e9ad87"
|
14
14
|
Content-Type:
|
@@ -22,6 +22,8 @@ http_interactions:
|
|
22
22
|
code: 201
|
23
23
|
message: Created
|
24
24
|
headers:
|
25
|
+
Strict-Transport-Security:
|
26
|
+
- max-age=31536000
|
25
27
|
X-Frame-Options:
|
26
28
|
- SAMEORIGIN
|
27
29
|
X-Xss-Protection:
|
@@ -31,32 +33,32 @@ http_interactions:
|
|
31
33
|
Content-Type:
|
32
34
|
- application/json; charset=utf-8
|
33
35
|
Etag:
|
34
|
-
- '"
|
36
|
+
- '"cf92ff0dc7c9e1987f493d35e5c89f8a"'
|
35
37
|
Cache-Control:
|
36
38
|
- max-age=0, private, must-revalidate
|
37
39
|
X-Request-Id:
|
38
|
-
-
|
40
|
+
- fd0c3434-e977-4050-873b-ffd38b38c104
|
39
41
|
X-Runtime:
|
40
|
-
- '0.
|
42
|
+
- '0.038939'
|
41
43
|
Date:
|
42
|
-
- Thu,
|
44
|
+
- Thu, 19 Nov 2015 14:34:14 GMT
|
43
45
|
Connection:
|
44
46
|
- close
|
45
47
|
body:
|
46
48
|
encoding: UTF-8
|
47
49
|
string: '{"id":"create-collection-for-destroy","name":"Create Collection for
|
48
|
-
Destroy","description":"This is a new badge","created_at":"2015-
|
50
|
+
Destroy","description":"This is a new badge","created_at":"2015-11-19T14:34:14.556Z","updated_at":"2015-11-19T14:34:14.556Z","total_points_available":0,"badge_count":0,"object":"collection"}'
|
49
51
|
http_version:
|
50
|
-
recorded_at: Thu,
|
52
|
+
recorded_at: Thu, 19 Nov 2015 14:34:14 GMT
|
51
53
|
- request:
|
52
54
|
method: delete
|
53
|
-
uri:
|
55
|
+
uri: https://gamification-api.dev/v1/collections/create-collection-for-destroy
|
54
56
|
body:
|
55
57
|
encoding: US-ASCII
|
56
58
|
string: ''
|
57
59
|
headers:
|
58
60
|
User-Agent:
|
59
|
-
- Faraday v0.9.
|
61
|
+
- Faraday v0.9.2
|
60
62
|
Authorization:
|
61
63
|
- Token token="c9cde524238644fa93393159e5e9ad87"
|
62
64
|
Accept-Encoding:
|
@@ -68,6 +70,8 @@ http_interactions:
|
|
68
70
|
code: 200
|
69
71
|
message: OK
|
70
72
|
headers:
|
73
|
+
Strict-Transport-Security:
|
74
|
+
- max-age=31536000
|
71
75
|
X-Frame-Options:
|
72
76
|
- SAMEORIGIN
|
73
77
|
X-Xss-Protection:
|
@@ -77,32 +81,32 @@ http_interactions:
|
|
77
81
|
Content-Type:
|
78
82
|
- application/json; charset=utf-8
|
79
83
|
Etag:
|
80
|
-
- '"
|
84
|
+
- '"cf92ff0dc7c9e1987f493d35e5c89f8a"'
|
81
85
|
Cache-Control:
|
82
86
|
- max-age=0, private, must-revalidate
|
83
87
|
X-Request-Id:
|
84
|
-
-
|
88
|
+
- 252c9fe4-d9b9-4816-9be8-2ec0b617d1d3
|
85
89
|
X-Runtime:
|
86
|
-
- '0.
|
90
|
+
- '0.014035'
|
87
91
|
Date:
|
88
|
-
- Thu,
|
92
|
+
- Thu, 19 Nov 2015 14:34:14 GMT
|
89
93
|
Connection:
|
90
94
|
- close
|
91
95
|
body:
|
92
96
|
encoding: UTF-8
|
93
97
|
string: '{"id":"create-collection-for-destroy","name":"Create Collection for
|
94
|
-
Destroy","description":"This is a new badge","created_at":"2015-
|
98
|
+
Destroy","description":"This is a new badge","created_at":"2015-11-19T14:34:14.556Z","updated_at":"2015-11-19T14:34:14.556Z","total_points_available":0,"badge_count":0,"object":"collection"}'
|
95
99
|
http_version:
|
96
|
-
recorded_at: Thu,
|
100
|
+
recorded_at: Thu, 19 Nov 2015 14:34:14 GMT
|
97
101
|
- request:
|
98
102
|
method: delete
|
99
|
-
uri:
|
103
|
+
uri: https://gamification-api.dev/v1/collections/create-collection-for-destroy
|
100
104
|
body:
|
101
105
|
encoding: US-ASCII
|
102
106
|
string: ''
|
103
107
|
headers:
|
104
108
|
User-Agent:
|
105
|
-
- Faraday v0.9.
|
109
|
+
- Faraday v0.9.2
|
106
110
|
Authorization:
|
107
111
|
- Token token="c9cde524238644fa93393159e5e9ad87"
|
108
112
|
Accept-Encoding:
|
@@ -114,6 +118,8 @@ http_interactions:
|
|
114
118
|
code: 404
|
115
119
|
message: Not Found
|
116
120
|
headers:
|
121
|
+
Strict-Transport-Security:
|
122
|
+
- max-age=31536000
|
117
123
|
X-Frame-Options:
|
118
124
|
- SAMEORIGIN
|
119
125
|
X-Xss-Protection:
|
@@ -125,11 +131,11 @@ http_interactions:
|
|
125
131
|
Cache-Control:
|
126
132
|
- no-cache
|
127
133
|
X-Request-Id:
|
128
|
-
-
|
134
|
+
- e494da1d-ad61-4a5b-8f85-270d7a7954eb
|
129
135
|
X-Runtime:
|
130
|
-
- '0.
|
136
|
+
- '0.006966'
|
131
137
|
Date:
|
132
|
-
- Thu,
|
138
|
+
- Thu, 19 Nov 2015 14:34:14 GMT
|
133
139
|
Connection:
|
134
140
|
- close
|
135
141
|
body:
|
@@ -137,16 +143,16 @@ http_interactions:
|
|
137
143
|
string: '{"error":{"type":"invalid_request_error","message":"No collection exists
|
138
144
|
with id: create-collection-for-destroy","status":404}}'
|
139
145
|
http_version:
|
140
|
-
recorded_at: Thu,
|
146
|
+
recorded_at: Thu, 19 Nov 2015 14:34:14 GMT
|
141
147
|
- request:
|
142
148
|
method: delete
|
143
|
-
uri:
|
149
|
+
uri: https://gamification-api.dev/v1/collections/create-collection-for-destroy
|
144
150
|
body:
|
145
151
|
encoding: US-ASCII
|
146
152
|
string: ''
|
147
153
|
headers:
|
148
154
|
User-Agent:
|
149
|
-
- Faraday v0.9.
|
155
|
+
- Faraday v0.9.2
|
150
156
|
Authorization:
|
151
157
|
- Token token="c9cde524238644fa93393159e5e9ad87"
|
152
158
|
Accept-Encoding:
|
@@ -158,6 +164,8 @@ http_interactions:
|
|
158
164
|
code: 404
|
159
165
|
message: Not Found
|
160
166
|
headers:
|
167
|
+
Strict-Transport-Security:
|
168
|
+
- max-age=31536000
|
161
169
|
X-Frame-Options:
|
162
170
|
- SAMEORIGIN
|
163
171
|
X-Xss-Protection:
|
@@ -169,11 +177,11 @@ http_interactions:
|
|
169
177
|
Cache-Control:
|
170
178
|
- no-cache
|
171
179
|
X-Request-Id:
|
172
|
-
-
|
180
|
+
- d162d0bd-d16b-4a91-a041-fd7b104d9368
|
173
181
|
X-Runtime:
|
174
|
-
- '0.
|
182
|
+
- '0.006490'
|
175
183
|
Date:
|
176
|
-
- Thu,
|
184
|
+
- Thu, 19 Nov 2015 14:34:14 GMT
|
177
185
|
Connection:
|
178
186
|
- close
|
179
187
|
body:
|
@@ -181,5 +189,5 @@ http_interactions:
|
|
181
189
|
string: '{"error":{"type":"invalid_request_error","message":"No collection exists
|
182
190
|
with id: create-collection-for-destroy","status":404}}'
|
183
191
|
http_version:
|
184
|
-
recorded_at: Thu,
|
192
|
+
recorded_at: Thu, 19 Nov 2015 14:34:14 GMT
|
185
193
|
recorded_with: VCR 2.9.3
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri:
|
5
|
+
uri: https://gamification-api.dev/v1/collections/27
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.9.
|
11
|
+
- Faraday v0.9.2
|
12
12
|
Authorization:
|
13
13
|
- Token token="c9cde524238644fa93393159e5e9ad87"
|
14
14
|
Accept-Encoding:
|
@@ -20,6 +20,8 @@ http_interactions:
|
|
20
20
|
code: 404
|
21
21
|
message: Not Found
|
22
22
|
headers:
|
23
|
+
Strict-Transport-Security:
|
24
|
+
- max-age=31536000
|
23
25
|
X-Frame-Options:
|
24
26
|
- SAMEORIGIN
|
25
27
|
X-Xss-Protection:
|
@@ -31,11 +33,11 @@ http_interactions:
|
|
31
33
|
Cache-Control:
|
32
34
|
- no-cache
|
33
35
|
X-Request-Id:
|
34
|
-
-
|
36
|
+
- db73895e-97f9-4004-ba74-e2b4e65a34cb
|
35
37
|
X-Runtime:
|
36
|
-
- '0.
|
38
|
+
- '0.008534'
|
37
39
|
Date:
|
38
|
-
- Thu,
|
40
|
+
- Thu, 19 Nov 2015 14:33:00 GMT
|
39
41
|
Connection:
|
40
42
|
- close
|
41
43
|
body:
|
@@ -43,16 +45,16 @@ http_interactions:
|
|
43
45
|
string: '{"error":{"type":"invalid_request_error","message":"No collection exists
|
44
46
|
with id: 27","status":404}}'
|
45
47
|
http_version:
|
46
|
-
recorded_at: Thu,
|
48
|
+
recorded_at: Thu, 19 Nov 2015 14:33:00 GMT
|
47
49
|
- request:
|
48
50
|
method: get
|
49
|
-
uri:
|
51
|
+
uri: https://gamification-api.dev/v1/collections/27
|
50
52
|
body:
|
51
53
|
encoding: US-ASCII
|
52
54
|
string: ''
|
53
55
|
headers:
|
54
56
|
User-Agent:
|
55
|
-
- Faraday v0.9.
|
57
|
+
- Faraday v0.9.2
|
56
58
|
Authorization:
|
57
59
|
- Token token="c9cde524238644fa93393159e5e9ad87"
|
58
60
|
Accept-Encoding:
|
@@ -64,6 +66,8 @@ http_interactions:
|
|
64
66
|
code: 404
|
65
67
|
message: Not Found
|
66
68
|
headers:
|
69
|
+
Strict-Transport-Security:
|
70
|
+
- max-age=31536000
|
67
71
|
X-Frame-Options:
|
68
72
|
- SAMEORIGIN
|
69
73
|
X-Xss-Protection:
|
@@ -75,11 +79,11 @@ http_interactions:
|
|
75
79
|
Cache-Control:
|
76
80
|
- no-cache
|
77
81
|
X-Request-Id:
|
78
|
-
-
|
82
|
+
- 3a602fa0-f933-4683-91ad-3866b3482d6c
|
79
83
|
X-Runtime:
|
80
|
-
- '0.
|
84
|
+
- '0.007008'
|
81
85
|
Date:
|
82
|
-
- Thu,
|
86
|
+
- Thu, 19 Nov 2015 14:33:00 GMT
|
83
87
|
Connection:
|
84
88
|
- close
|
85
89
|
body:
|
@@ -87,5 +91,97 @@ http_interactions:
|
|
87
91
|
string: '{"error":{"type":"invalid_request_error","message":"No collection exists
|
88
92
|
with id: 27","status":404}}'
|
89
93
|
http_version:
|
90
|
-
recorded_at: Thu,
|
94
|
+
recorded_at: Thu, 19 Nov 2015 14:33:00 GMT
|
95
|
+
- request:
|
96
|
+
method: get
|
97
|
+
uri: https://gamification-api.dev/v1/collections/2df3
|
98
|
+
body:
|
99
|
+
encoding: US-ASCII
|
100
|
+
string: ''
|
101
|
+
headers:
|
102
|
+
User-Agent:
|
103
|
+
- Faraday v0.9.2
|
104
|
+
Authorization:
|
105
|
+
- Token token="c9cde524238644fa93393159e5e9ad87"
|
106
|
+
Accept-Encoding:
|
107
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
108
|
+
Accept:
|
109
|
+
- "*/*"
|
110
|
+
response:
|
111
|
+
status:
|
112
|
+
code: 404
|
113
|
+
message: Not Found
|
114
|
+
headers:
|
115
|
+
Strict-Transport-Security:
|
116
|
+
- max-age=31536000
|
117
|
+
X-Frame-Options:
|
118
|
+
- SAMEORIGIN
|
119
|
+
X-Xss-Protection:
|
120
|
+
- 1; mode=block
|
121
|
+
X-Content-Type-Options:
|
122
|
+
- nosniff
|
123
|
+
Content-Type:
|
124
|
+
- application/json; charset=utf-8
|
125
|
+
Cache-Control:
|
126
|
+
- no-cache
|
127
|
+
X-Request-Id:
|
128
|
+
- 66cf6d38-ec6a-43ac-9c4d-fee9db9db14d
|
129
|
+
X-Runtime:
|
130
|
+
- '0.007063'
|
131
|
+
Date:
|
132
|
+
- Thu, 19 Nov 2015 14:33:33 GMT
|
133
|
+
Connection:
|
134
|
+
- close
|
135
|
+
body:
|
136
|
+
encoding: UTF-8
|
137
|
+
string: '{"error":{"type":"invalid_request_error","message":"No collection exists
|
138
|
+
with id: 2df3","status":404}}'
|
139
|
+
http_version:
|
140
|
+
recorded_at: Thu, 19 Nov 2015 14:33:33 GMT
|
141
|
+
- request:
|
142
|
+
method: get
|
143
|
+
uri: https://gamification-api.dev/v1/collections/dgsgdsg
|
144
|
+
body:
|
145
|
+
encoding: US-ASCII
|
146
|
+
string: ''
|
147
|
+
headers:
|
148
|
+
User-Agent:
|
149
|
+
- Faraday v0.9.2
|
150
|
+
Authorization:
|
151
|
+
- Token token="c9cde524238644fa93393159e5e9ad87"
|
152
|
+
Accept-Encoding:
|
153
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
154
|
+
Accept:
|
155
|
+
- "*/*"
|
156
|
+
response:
|
157
|
+
status:
|
158
|
+
code: 404
|
159
|
+
message: Not Found
|
160
|
+
headers:
|
161
|
+
Strict-Transport-Security:
|
162
|
+
- max-age=31536000
|
163
|
+
X-Frame-Options:
|
164
|
+
- SAMEORIGIN
|
165
|
+
X-Xss-Protection:
|
166
|
+
- 1; mode=block
|
167
|
+
X-Content-Type-Options:
|
168
|
+
- nosniff
|
169
|
+
Content-Type:
|
170
|
+
- application/json; charset=utf-8
|
171
|
+
Cache-Control:
|
172
|
+
- no-cache
|
173
|
+
X-Request-Id:
|
174
|
+
- bdffd169-c9e5-45d9-b783-14c1592461ea
|
175
|
+
X-Runtime:
|
176
|
+
- '0.013084'
|
177
|
+
Date:
|
178
|
+
- Thu, 19 Nov 2015 14:33:33 GMT
|
179
|
+
Connection:
|
180
|
+
- close
|
181
|
+
body:
|
182
|
+
encoding: UTF-8
|
183
|
+
string: '{"error":{"type":"invalid_request_error","message":"No collection exists
|
184
|
+
with id: dgsgdsg","status":404}}'
|
185
|
+
http_version:
|
186
|
+
recorded_at: Thu, 19 Nov 2015 14:33:33 GMT
|
91
187
|
recorded_with: VCR 2.9.3
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri:
|
5
|
+
uri: https://gamification-api.dev/v1/collections/1
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.9.
|
11
|
+
- Faraday v0.9.2
|
12
12
|
Authorization:
|
13
13
|
- Token token="c9cde524238644fa93393159e5e9ad87"
|
14
14
|
Accept-Encoding:
|
@@ -20,6 +20,8 @@ http_interactions:
|
|
20
20
|
code: 200
|
21
21
|
message: OK
|
22
22
|
headers:
|
23
|
+
Strict-Transport-Security:
|
24
|
+
- max-age=31536000
|
23
25
|
X-Frame-Options:
|
24
26
|
- SAMEORIGIN
|
25
27
|
X-Xss-Protection:
|
@@ -29,21 +31,21 @@ http_interactions:
|
|
29
31
|
Content-Type:
|
30
32
|
- application/json; charset=utf-8
|
31
33
|
Etag:
|
32
|
-
- '"
|
34
|
+
- '"53122198ff1cd94e72d602aca4192c13"'
|
33
35
|
Cache-Control:
|
34
36
|
- max-age=0, private, must-revalidate
|
35
37
|
X-Request-Id:
|
36
|
-
-
|
38
|
+
- 282f7393-7b53-41af-ab1d-fa83561f3e43
|
37
39
|
X-Runtime:
|
38
|
-
- '0.
|
40
|
+
- '0.014196'
|
39
41
|
Date:
|
40
|
-
- Thu,
|
42
|
+
- Thu, 19 Nov 2015 14:32:06 GMT
|
41
43
|
Connection:
|
42
44
|
- close
|
43
45
|
body:
|
44
46
|
encoding: UTF-8
|
45
47
|
string: '{"id":"library","name":"Library","description":"Use your library and
|
46
|
-
earn badges","created_at":"2015-
|
48
|
+
earn badges","created_at":"2015-11-18T11:39:58.859Z","updated_at":"2015-11-18T11:39:58.859Z","total_points_available":125,"badge_count":4,"object":"collection"}'
|
47
49
|
http_version:
|
48
|
-
recorded_at: Thu,
|
50
|
+
recorded_at: Thu, 19 Nov 2015 14:32:06 GMT
|
49
51
|
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,106 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://gamification-api.dev/v1/collections/1?expand=badges
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.2
|
12
|
+
Authorization:
|
13
|
+
- Token token="c9cde524238644fa93393159e5e9ad87"
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Strict-Transport-Security:
|
24
|
+
- max-age=31536000
|
25
|
+
X-Frame-Options:
|
26
|
+
- SAMEORIGIN
|
27
|
+
X-Xss-Protection:
|
28
|
+
- 1; mode=block
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
31
|
+
Content-Type:
|
32
|
+
- application/json; charset=utf-8
|
33
|
+
Etag:
|
34
|
+
- '"20a73e66894a88641240a8887ec3f780"'
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, private, must-revalidate
|
37
|
+
X-Request-Id:
|
38
|
+
- ca456c51-ce80-47df-b9dc-3cb6ff5b6d9b
|
39
|
+
X-Runtime:
|
40
|
+
- '0.017745'
|
41
|
+
Date:
|
42
|
+
- Thu, 19 Nov 2015 14:32:06 GMT
|
43
|
+
Connection:
|
44
|
+
- close
|
45
|
+
body:
|
46
|
+
encoding: ASCII-8BIT
|
47
|
+
string: !binary |-
|
48
|
+
eyJpZCI6ImxpYnJhcnkiLCJuYW1lIjoiTGlicmFyeSIsImRlc2NyaXB0aW9u
|
49
|
+
IjoiVXNlIHlvdXIgbGlicmFyeSBhbm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