/
should_return_per_page_result_passing_per_page_parameter.yml
191 lines (191 loc) · 4.1 KB
/
should_return_per_page_result_passing_per_page_parameter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
---
http_interactions:
- request:
method: get
uri: API_KEY
body:
encoding: US-ASCII
string: ''
headers:
authorization: AUTHENTICATION_TOKEN
accept:
- ! '*/*'
accept-encoding:
- gzip
user-agent:
- Ruby gem
connection:
- close
response:
status:
code: 301
message: ! 'Moved Permanently '
headers:
cache-control:
- private
content-type:
- text/html
date:
- Sun, 22 Jul 2012 11:36:16 GMT
location:
- https://api.sqoot.com/v2/deals?per_page=3&api_key=API_KEY
server:
- WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
strict-transport-security:
- max-age=31536000
x-rack-cache:
- miss
content-length:
- '0'
connection:
- Close
body:
encoding: US-ASCII
string: ''
http_version: '1.1'
recorded_at: Sun, 22 Jul 2012 11:36:16 GMT
- request:
method: get
uri: API_KEY
body:
encoding: US-ASCII
string: ''
headers:
authorization: AUTHENTICATION_TOKEN
accept:
- ! '*/*'
accept-encoding:
- gzip
user-agent:
- Ruby gem
connection:
- close
response:
status:
code: 200
message: ! 'OK '
headers:
cache-control:
- must-revalidate, private, max-age=0
content-type:
- application/json; charset=utf-8
date:
- Sun, 22 Jul 2012 11:36:20 GMT
etag:
- ! '"d7c9f80781af994a8f28302c26634049"'
server:
- WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
strict-transport-security:
- max-age=31536000
x-rack-cache:
- miss
x-request-id:
- 450ca5631dd2e39e0352ea50d1172e59
x-runtime:
- '0.106570'
x-ua-compatible:
- IE=Edge,chrome=1
content-length:
- '73'
connection:
- Close
body:
encoding: US-ASCII
string: ! '{"metadata":{"total":0,"page":1,"per_page":3,"location":null},"deals":[]}'
http_version: '1.1'
recorded_at: Sun, 22 Jul 2012 11:36:20 GMT
- request:
method: get
uri: API_KEY
body:
encoding: US-ASCII
string: ''
headers:
authorization: AUTHENTICATION_TOKEN
accept:
- ! '*/*'
accept-encoding:
- gzip
user-agent:
- Ruby gem
connection:
- close
response:
status:
code: 301
message: ! 'Moved Permanently '
headers:
cache-control:
- private
content-type:
- text/html
date:
- Mon, 23 Jul 2012 06:38:30 GMT
location:
- https://api.sqoot.com/v2/deals?per_page=3&api_key=API_KEY
server:
- WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
strict-transport-security:
- max-age=31536000
x-rack-cache:
- miss
content-length:
- '0'
connection:
- Close
body:
encoding: US-ASCII
string: ''
http_version: '1.1'
recorded_at: Mon, 23 Jul 2012 06:38:31 GMT
- request:
method: get
uri: API_KEY
body:
encoding: US-ASCII
string: ''
headers:
authorization: AUTHENTICATION_TOKEN
accept:
- ! '*/*'
accept-encoding:
- gzip
user-agent:
- Ruby gem
connection:
- close
response:
status:
code: 200
message: ! 'OK '
headers:
cache-control:
- must-revalidate, private, max-age=0
content-type:
- application/json; charset=utf-8
date:
- Mon, 23 Jul 2012 06:38:36 GMT
etag:
- ! '"d7c9f80781af994a8f28302c26634049"'
server:
- WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
strict-transport-security:
- max-age=31536000
x-rack-cache:
- miss
x-request-id:
- ed6b649001a44b5c9308b347aeda8c82
x-runtime:
- '0.089983'
x-ua-compatible:
- IE=Edge,chrome=1
content-length:
- '73'
connection:
- Close
body:
encoding: US-ASCII
string: ! '{"metadata":{"total":0,"page":1,"per_page":3,"location":null},"deals":[]}'
http_version: '1.1'
recorded_at: Mon, 23 Jul 2012 06:38:36 GMT
recorded_with: VCR 2.0.1