patch_ruby 1.0.0.pre → 1.0.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.
- checksums.yaml +4 -4
- data/Gemfile +0 -1
- data/Gemfile.lock +0 -2
- data/README.md +90 -14
- data/lib/patch_ruby/version.rb +1 -1
- data/spec/api_client_spec.rb +12 -33
- data/spec/integration/estimates_spec.rb +18 -23
- data/spec/integration/orders_spec.rb +28 -40
- data/spec/integration/preferences_spec.rb +24 -30
- data/spec/integration/projects_spec.rb +17 -24
- data/spec/spec_helper.rb +0 -11
- metadata +4 -14
- data/spec/fixtures/vcr_cassettes/estimate_orders.yml +0 -276
- data/spec/fixtures/vcr_cassettes/estimates.yml +0 -211
- data/spec/fixtures/vcr_cassettes/orders.yml +0 -229
- data/spec/fixtures/vcr_cassettes/preferences.yml +0 -352
- data/spec/fixtures/vcr_cassettes/projects.yml +0 -143
data/spec/spec_helper.rb
CHANGED
@@ -12,7 +12,6 @@ OpenAPI Generator version: 4.3.1
|
|
12
12
|
|
13
13
|
# load the gem
|
14
14
|
require 'patch_ruby'
|
15
|
-
require 'vcr'
|
16
15
|
|
17
16
|
# The following was generated by the `rspec --init` command. Conventionally, all
|
18
17
|
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
@@ -109,14 +108,4 @@ RSpec.configure do |config|
|
|
109
108
|
# as the one that triggered the failure.
|
110
109
|
Kernel.srand config.seed
|
111
110
|
=end
|
112
|
-
|
113
|
-
# VCR
|
114
|
-
VCR.configure do |config|
|
115
|
-
config.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
|
116
|
-
config.hook_into :typhoeus
|
117
|
-
# Filter out API tokens from VCR cassettes so they aren't committed to source control
|
118
|
-
config.filter_sensitive_data('<AUTH>') do |interaction|
|
119
|
-
interaction.request.headers['Authorization'].first
|
120
|
-
end
|
121
|
-
end
|
122
111
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: patch_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patch Technology
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -115,11 +115,6 @@ files:
|
|
115
115
|
- spec/api/projects_api_spec.rb
|
116
116
|
- spec/api_client_spec.rb
|
117
117
|
- spec/configuration_spec.rb
|
118
|
-
- spec/fixtures/vcr_cassettes/estimate_orders.yml
|
119
|
-
- spec/fixtures/vcr_cassettes/estimates.yml
|
120
|
-
- spec/fixtures/vcr_cassettes/orders.yml
|
121
|
-
- spec/fixtures/vcr_cassettes/preferences.yml
|
122
|
-
- spec/fixtures/vcr_cassettes/projects.yml
|
123
118
|
- spec/integration/estimates_spec.rb
|
124
119
|
- spec/integration/orders_spec.rb
|
125
120
|
- spec/integration/preferences_spec.rb
|
@@ -158,9 +153,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
158
153
|
version: '1.9'
|
159
154
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
160
155
|
requirements:
|
161
|
-
- - "
|
156
|
+
- - ">="
|
162
157
|
- !ruby/object:Gem::Version
|
163
|
-
version:
|
158
|
+
version: '0'
|
164
159
|
requirements: []
|
165
160
|
rubygems_version: 3.1.2
|
166
161
|
signing_key:
|
@@ -173,11 +168,6 @@ test_files:
|
|
173
168
|
- spec/api/preferences_api_spec.rb
|
174
169
|
- spec/api_client_spec.rb
|
175
170
|
- spec/configuration_spec.rb
|
176
|
-
- spec/fixtures/vcr_cassettes/preferences.yml
|
177
|
-
- spec/fixtures/vcr_cassettes/estimate_orders.yml
|
178
|
-
- spec/fixtures/vcr_cassettes/orders.yml
|
179
|
-
- spec/fixtures/vcr_cassettes/estimates.yml
|
180
|
-
- spec/fixtures/vcr_cassettes/projects.yml
|
181
171
|
- spec/integration/orders_spec.rb
|
182
172
|
- spec/integration/preferences_spec.rb
|
183
173
|
- spec/integration/estimates_spec.rb
|
@@ -1,276 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://api.staging-patch.com/v1/estimates/mass
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"mass_g":100}'
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- OpenAPI-Generator/1.0.0.pre/ruby
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
Accept:
|
15
|
-
- application/json
|
16
|
-
Authorization:
|
17
|
-
- "<AUTH>"
|
18
|
-
Expect:
|
19
|
-
- ''
|
20
|
-
response:
|
21
|
-
status:
|
22
|
-
code: 201
|
23
|
-
message: ''
|
24
|
-
headers:
|
25
|
-
server:
|
26
|
-
- nginx/1.17.8
|
27
|
-
date:
|
28
|
-
- Thu, 02 Jul 2020 17:44:24 GMT
|
29
|
-
content-type:
|
30
|
-
- application/json; charset=utf-8
|
31
|
-
x-frame-options:
|
32
|
-
- SAMEORIGIN
|
33
|
-
x-xss-protection:
|
34
|
-
- 1; mode=block
|
35
|
-
x-content-type-options:
|
36
|
-
- nosniff
|
37
|
-
x-download-options:
|
38
|
-
- noopen
|
39
|
-
x-permitted-cross-domain-policies:
|
40
|
-
- none
|
41
|
-
referrer-policy:
|
42
|
-
- strict-origin-when-cross-origin
|
43
|
-
etag:
|
44
|
-
- W/"af0b00bb84b4c38293ed30105f13c5c6"
|
45
|
-
cache-control:
|
46
|
-
- max-age=0, private, must-revalidate
|
47
|
-
x-request-id:
|
48
|
-
- 28a69e9c0e7efc14c2224edd51cd3571
|
49
|
-
x-runtime:
|
50
|
-
- '0.048519'
|
51
|
-
strict-transport-security:
|
52
|
-
- max-age=15724800; includeSubDomains
|
53
|
-
vary:
|
54
|
-
- Origin
|
55
|
-
access-control-allow-origin:
|
56
|
-
- "*"
|
57
|
-
access-control-allow-credentials:
|
58
|
-
- 'true'
|
59
|
-
access-control-allow-methods:
|
60
|
-
- GET, PUT, POST, DELETE, PATCH, OPTIONS
|
61
|
-
access-control-allow-headers:
|
62
|
-
- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization
|
63
|
-
body:
|
64
|
-
encoding: UTF-8
|
65
|
-
string: '{"data":{"id":"est_test_7b0f776934705a0cbbc33082ae85026a","order":{"id":"ord_test_9ff07c288ac6484ea64b8a7dd6139f0a","allocation_state":"allocated","allocations":[{"id":"all_test_946d0d85732a7d36e96202b2ba267339","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
|
66
|
-
Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"draft"},"production":true,"type":"mass"},"error":null,"meta":null,"success":true}'
|
67
|
-
http_version: '2'
|
68
|
-
adapter_metadata:
|
69
|
-
effective_url: https://api.staging-patch.com/v1/estimates/mass
|
70
|
-
recorded_at: Thu, 02 Jul 2020 17:44:24 GMT
|
71
|
-
- request:
|
72
|
-
method: patch
|
73
|
-
uri: https://api.staging-patch.com/v1/orders/ord_test_9ff07c288ac6484ea64b8a7dd6139f0a/place
|
74
|
-
body:
|
75
|
-
encoding: US-ASCII
|
76
|
-
string: ''
|
77
|
-
headers:
|
78
|
-
User-Agent:
|
79
|
-
- OpenAPI-Generator/1.0.0.pre/ruby
|
80
|
-
Content-Type:
|
81
|
-
- application/json
|
82
|
-
Accept:
|
83
|
-
- application/json
|
84
|
-
Authorization:
|
85
|
-
- "<AUTH>"
|
86
|
-
Expect:
|
87
|
-
- ''
|
88
|
-
response:
|
89
|
-
status:
|
90
|
-
code: 200
|
91
|
-
message: ''
|
92
|
-
headers:
|
93
|
-
server:
|
94
|
-
- nginx/1.17.8
|
95
|
-
date:
|
96
|
-
- Thu, 02 Jul 2020 17:44:24 GMT
|
97
|
-
content-type:
|
98
|
-
- application/json; charset=utf-8
|
99
|
-
vary:
|
100
|
-
- Accept-Encoding
|
101
|
-
- Origin
|
102
|
-
x-frame-options:
|
103
|
-
- SAMEORIGIN
|
104
|
-
x-xss-protection:
|
105
|
-
- 1; mode=block
|
106
|
-
x-content-type-options:
|
107
|
-
- nosniff
|
108
|
-
x-download-options:
|
109
|
-
- noopen
|
110
|
-
x-permitted-cross-domain-policies:
|
111
|
-
- none
|
112
|
-
referrer-policy:
|
113
|
-
- strict-origin-when-cross-origin
|
114
|
-
etag:
|
115
|
-
- W/"83cacd7a207ff94ca182623addf38a4a"
|
116
|
-
cache-control:
|
117
|
-
- max-age=0, private, must-revalidate
|
118
|
-
x-request-id:
|
119
|
-
- cf92e44ea1f6dac58c8dda2d9838d33c
|
120
|
-
x-runtime:
|
121
|
-
- '0.030993'
|
122
|
-
strict-transport-security:
|
123
|
-
- max-age=15724800; includeSubDomains
|
124
|
-
access-control-allow-origin:
|
125
|
-
- "*"
|
126
|
-
access-control-allow-credentials:
|
127
|
-
- 'true'
|
128
|
-
access-control-allow-methods:
|
129
|
-
- GET, PUT, POST, DELETE, PATCH, OPTIONS
|
130
|
-
access-control-allow-headers:
|
131
|
-
- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization
|
132
|
-
body:
|
133
|
-
encoding: UTF-8
|
134
|
-
string: '{"data":{"id":"ord_test_9ff07c288ac6484ea64b8a7dd6139f0a","allocation_state":"allocated","allocations":[{"id":"all_test_946d0d85732a7d36e96202b2ba267339","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
|
135
|
-
Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"placed"},"error":null,"meta":null,"success":true}'
|
136
|
-
http_version: '2'
|
137
|
-
adapter_metadata:
|
138
|
-
effective_url: https://api.staging-patch.com/v1/orders/ord_test_9ff07c288ac6484ea64b8a7dd6139f0a/place
|
139
|
-
recorded_at: Thu, 02 Jul 2020 17:44:24 GMT
|
140
|
-
- request:
|
141
|
-
method: post
|
142
|
-
uri: https://api.staging-patch.com/v1/estimates/mass
|
143
|
-
body:
|
144
|
-
encoding: UTF-8
|
145
|
-
string: '{"mass_g":100}'
|
146
|
-
headers:
|
147
|
-
User-Agent:
|
148
|
-
- OpenAPI-Generator/1.0.0.pre/ruby
|
149
|
-
Content-Type:
|
150
|
-
- application/json
|
151
|
-
Accept:
|
152
|
-
- application/json
|
153
|
-
Authorization:
|
154
|
-
- "<AUTH>"
|
155
|
-
Expect:
|
156
|
-
- ''
|
157
|
-
response:
|
158
|
-
status:
|
159
|
-
code: 201
|
160
|
-
message: ''
|
161
|
-
headers:
|
162
|
-
server:
|
163
|
-
- nginx/1.17.8
|
164
|
-
date:
|
165
|
-
- Thu, 02 Jul 2020 17:44:24 GMT
|
166
|
-
content-type:
|
167
|
-
- application/json; charset=utf-8
|
168
|
-
x-frame-options:
|
169
|
-
- SAMEORIGIN
|
170
|
-
x-xss-protection:
|
171
|
-
- 1; mode=block
|
172
|
-
x-content-type-options:
|
173
|
-
- nosniff
|
174
|
-
x-download-options:
|
175
|
-
- noopen
|
176
|
-
x-permitted-cross-domain-policies:
|
177
|
-
- none
|
178
|
-
referrer-policy:
|
179
|
-
- strict-origin-when-cross-origin
|
180
|
-
etag:
|
181
|
-
- W/"bbe846386f1301daf592dc1778dbf7aa"
|
182
|
-
cache-control:
|
183
|
-
- max-age=0, private, must-revalidate
|
184
|
-
x-request-id:
|
185
|
-
- 291f4b70d2f90defaecae12dd5d6f73b
|
186
|
-
x-runtime:
|
187
|
-
- '0.049709'
|
188
|
-
strict-transport-security:
|
189
|
-
- max-age=15724800; includeSubDomains
|
190
|
-
vary:
|
191
|
-
- Origin
|
192
|
-
access-control-allow-origin:
|
193
|
-
- "*"
|
194
|
-
access-control-allow-credentials:
|
195
|
-
- 'true'
|
196
|
-
access-control-allow-methods:
|
197
|
-
- GET, PUT, POST, DELETE, PATCH, OPTIONS
|
198
|
-
access-control-allow-headers:
|
199
|
-
- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization
|
200
|
-
body:
|
201
|
-
encoding: UTF-8
|
202
|
-
string: '{"data":{"id":"est_test_6156c2c85627268bde56dc5dc13d6668","order":{"id":"ord_test_9a8e1b4894cce6420d21685cabcdfabe","allocation_state":"allocated","allocations":[{"id":"all_test_7883718e4e87879a6ad3e9c2a6afb719","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
|
203
|
-
Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"draft"},"production":true,"type":"mass"},"error":null,"meta":null,"success":true}'
|
204
|
-
http_version: '2'
|
205
|
-
adapter_metadata:
|
206
|
-
effective_url: https://api.staging-patch.com/v1/estimates/mass
|
207
|
-
recorded_at: Thu, 02 Jul 2020 17:44:24 GMT
|
208
|
-
- request:
|
209
|
-
method: patch
|
210
|
-
uri: https://api.staging-patch.com/v1/orders/ord_test_9a8e1b4894cce6420d21685cabcdfabe/cancel
|
211
|
-
body:
|
212
|
-
encoding: US-ASCII
|
213
|
-
string: ''
|
214
|
-
headers:
|
215
|
-
User-Agent:
|
216
|
-
- OpenAPI-Generator/1.0.0.pre/ruby
|
217
|
-
Content-Type:
|
218
|
-
- application/json
|
219
|
-
Accept:
|
220
|
-
- application/json
|
221
|
-
Authorization:
|
222
|
-
- "<AUTH>"
|
223
|
-
Expect:
|
224
|
-
- ''
|
225
|
-
response:
|
226
|
-
status:
|
227
|
-
code: 200
|
228
|
-
message: ''
|
229
|
-
headers:
|
230
|
-
server:
|
231
|
-
- nginx/1.17.8
|
232
|
-
date:
|
233
|
-
- Thu, 02 Jul 2020 17:44:24 GMT
|
234
|
-
content-type:
|
235
|
-
- application/json; charset=utf-8
|
236
|
-
vary:
|
237
|
-
- Accept-Encoding
|
238
|
-
- Origin
|
239
|
-
x-frame-options:
|
240
|
-
- SAMEORIGIN
|
241
|
-
x-xss-protection:
|
242
|
-
- 1; mode=block
|
243
|
-
x-content-type-options:
|
244
|
-
- nosniff
|
245
|
-
x-download-options:
|
246
|
-
- noopen
|
247
|
-
x-permitted-cross-domain-policies:
|
248
|
-
- none
|
249
|
-
referrer-policy:
|
250
|
-
- strict-origin-when-cross-origin
|
251
|
-
etag:
|
252
|
-
- W/"c9c14db6eaa851d90cefcb3766bee9d8"
|
253
|
-
cache-control:
|
254
|
-
- max-age=0, private, must-revalidate
|
255
|
-
x-request-id:
|
256
|
-
- 892abb438ef0bf9cae7ecee9156659a2
|
257
|
-
x-runtime:
|
258
|
-
- '0.027150'
|
259
|
-
strict-transport-security:
|
260
|
-
- max-age=15724800; includeSubDomains
|
261
|
-
access-control-allow-origin:
|
262
|
-
- "*"
|
263
|
-
access-control-allow-credentials:
|
264
|
-
- 'true'
|
265
|
-
access-control-allow-methods:
|
266
|
-
- GET, PUT, POST, DELETE, PATCH, OPTIONS
|
267
|
-
access-control-allow-headers:
|
268
|
-
- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization
|
269
|
-
body:
|
270
|
-
encoding: UTF-8
|
271
|
-
string: '{"data":{"id":"ord_test_9a8e1b4894cce6420d21685cabcdfabe","allocation_state":"allocated","allocations":[],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"cancelled"},"error":null,"meta":null,"success":true}'
|
272
|
-
http_version: '2'
|
273
|
-
adapter_metadata:
|
274
|
-
effective_url: https://api.staging-patch.com/v1/orders/ord_test_9a8e1b4894cce6420d21685cabcdfabe/cancel
|
275
|
-
recorded_at: Thu, 02 Jul 2020 17:44:24 GMT
|
276
|
-
recorded_with: VCR 6.0.0
|
@@ -1,211 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://api.staging-patch.com/v1/estimates/mass
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"mass_g":100}'
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- OpenAPI-Generator/1.0.0.pre/ruby
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
Accept:
|
15
|
-
- application/json
|
16
|
-
Authorization:
|
17
|
-
- "<AUTH>"
|
18
|
-
Expect:
|
19
|
-
- ''
|
20
|
-
response:
|
21
|
-
status:
|
22
|
-
code: 201
|
23
|
-
message: ''
|
24
|
-
headers:
|
25
|
-
server:
|
26
|
-
- nginx/1.17.8
|
27
|
-
date:
|
28
|
-
- Thu, 02 Jul 2020 17:44:23 GMT
|
29
|
-
content-type:
|
30
|
-
- application/json; charset=utf-8
|
31
|
-
x-frame-options:
|
32
|
-
- SAMEORIGIN
|
33
|
-
x-xss-protection:
|
34
|
-
- 1; mode=block
|
35
|
-
x-content-type-options:
|
36
|
-
- nosniff
|
37
|
-
x-download-options:
|
38
|
-
- noopen
|
39
|
-
x-permitted-cross-domain-policies:
|
40
|
-
- none
|
41
|
-
referrer-policy:
|
42
|
-
- strict-origin-when-cross-origin
|
43
|
-
etag:
|
44
|
-
- W/"3fd5856c8b9923b9359ca82a17bed91d"
|
45
|
-
cache-control:
|
46
|
-
- max-age=0, private, must-revalidate
|
47
|
-
x-request-id:
|
48
|
-
- 7dc7ca3bdc0917a9bda4701e18855f9c
|
49
|
-
x-runtime:
|
50
|
-
- '0.356926'
|
51
|
-
strict-transport-security:
|
52
|
-
- max-age=15724800; includeSubDomains
|
53
|
-
vary:
|
54
|
-
- Origin
|
55
|
-
access-control-allow-origin:
|
56
|
-
- "*"
|
57
|
-
access-control-allow-credentials:
|
58
|
-
- 'true'
|
59
|
-
access-control-allow-methods:
|
60
|
-
- GET, PUT, POST, DELETE, PATCH, OPTIONS
|
61
|
-
access-control-allow-headers:
|
62
|
-
- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization
|
63
|
-
body:
|
64
|
-
encoding: UTF-8
|
65
|
-
string: '{"data":{"id":"est_test_7fd554d0b824cbf3fd928f8db56dc3f1","order":{"id":"ord_test_26c3cc6bcc823154b244653052ffc93e","allocation_state":"allocated","allocations":[{"id":"all_test_da286dca43e07def48c5333f971c0673","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
|
66
|
-
Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"draft"},"production":true,"type":"mass"},"error":null,"meta":null,"success":true}'
|
67
|
-
http_version: '2'
|
68
|
-
adapter_metadata:
|
69
|
-
effective_url: https://api.staging-patch.com/v1/estimates/mass
|
70
|
-
recorded_at: Thu, 02 Jul 2020 17:44:23 GMT
|
71
|
-
- request:
|
72
|
-
method: get
|
73
|
-
uri: https://api.staging-patch.com/v1/estimates/est_test_7fd554d0b824cbf3fd928f8db56dc3f1
|
74
|
-
body:
|
75
|
-
encoding: US-ASCII
|
76
|
-
string: ''
|
77
|
-
headers:
|
78
|
-
User-Agent:
|
79
|
-
- OpenAPI-Generator/1.0.0.pre/ruby
|
80
|
-
Content-Type:
|
81
|
-
- application/json
|
82
|
-
Accept:
|
83
|
-
- application/json
|
84
|
-
Authorization:
|
85
|
-
- "<AUTH>"
|
86
|
-
Expect:
|
87
|
-
- ''
|
88
|
-
response:
|
89
|
-
status:
|
90
|
-
code: 200
|
91
|
-
message: ''
|
92
|
-
headers:
|
93
|
-
server:
|
94
|
-
- nginx/1.17.8
|
95
|
-
date:
|
96
|
-
- Thu, 02 Jul 2020 17:44:23 GMT
|
97
|
-
content-type:
|
98
|
-
- application/json; charset=utf-8
|
99
|
-
vary:
|
100
|
-
- Accept-Encoding
|
101
|
-
- Origin
|
102
|
-
x-frame-options:
|
103
|
-
- SAMEORIGIN
|
104
|
-
x-xss-protection:
|
105
|
-
- 1; mode=block
|
106
|
-
x-content-type-options:
|
107
|
-
- nosniff
|
108
|
-
x-download-options:
|
109
|
-
- noopen
|
110
|
-
x-permitted-cross-domain-policies:
|
111
|
-
- none
|
112
|
-
referrer-policy:
|
113
|
-
- strict-origin-when-cross-origin
|
114
|
-
etag:
|
115
|
-
- W/"3fd5856c8b9923b9359ca82a17bed91d"
|
116
|
-
cache-control:
|
117
|
-
- max-age=0, private, must-revalidate
|
118
|
-
x-request-id:
|
119
|
-
- 26daac59de9b1e3c4a5c284f02bcccd1
|
120
|
-
x-runtime:
|
121
|
-
- '0.069078'
|
122
|
-
strict-transport-security:
|
123
|
-
- max-age=15724800; includeSubDomains
|
124
|
-
access-control-allow-origin:
|
125
|
-
- "*"
|
126
|
-
access-control-allow-credentials:
|
127
|
-
- 'true'
|
128
|
-
access-control-allow-methods:
|
129
|
-
- GET, PUT, POST, DELETE, PATCH, OPTIONS
|
130
|
-
access-control-allow-headers:
|
131
|
-
- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization
|
132
|
-
body:
|
133
|
-
encoding: UTF-8
|
134
|
-
string: '{"data":{"id":"est_test_7fd554d0b824cbf3fd928f8db56dc3f1","order":{"id":"ord_test_26c3cc6bcc823154b244653052ffc93e","allocation_state":"allocated","allocations":[{"id":"all_test_da286dca43e07def48c5333f971c0673","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
|
135
|
-
Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"draft"},"production":true,"type":"mass"},"error":null,"meta":null,"success":true}'
|
136
|
-
http_version: '2'
|
137
|
-
adapter_metadata:
|
138
|
-
effective_url: https://api.staging-patch.com/v1/estimates/est_test_7fd554d0b824cbf3fd928f8db56dc3f1
|
139
|
-
recorded_at: Thu, 02 Jul 2020 17:44:23 GMT
|
140
|
-
- request:
|
141
|
-
method: get
|
142
|
-
uri: https://api.staging-patch.com/v1/estimates?page=1
|
143
|
-
body:
|
144
|
-
encoding: US-ASCII
|
145
|
-
string: ''
|
146
|
-
headers:
|
147
|
-
User-Agent:
|
148
|
-
- OpenAPI-Generator/1.0.0.pre/ruby
|
149
|
-
Content-Type:
|
150
|
-
- application/json
|
151
|
-
Accept:
|
152
|
-
- application/json
|
153
|
-
Authorization:
|
154
|
-
- "<AUTH>"
|
155
|
-
Expect:
|
156
|
-
- ''
|
157
|
-
response:
|
158
|
-
status:
|
159
|
-
code: 200
|
160
|
-
message: ''
|
161
|
-
headers:
|
162
|
-
server:
|
163
|
-
- nginx/1.17.8
|
164
|
-
date:
|
165
|
-
- Thu, 02 Jul 2020 17:44:24 GMT
|
166
|
-
content-type:
|
167
|
-
- application/json; charset=utf-8
|
168
|
-
vary:
|
169
|
-
- Accept-Encoding
|
170
|
-
- Origin
|
171
|
-
x-frame-options:
|
172
|
-
- SAMEORIGIN
|
173
|
-
x-xss-protection:
|
174
|
-
- 1; mode=block
|
175
|
-
x-content-type-options:
|
176
|
-
- nosniff
|
177
|
-
x-download-options:
|
178
|
-
- noopen
|
179
|
-
x-permitted-cross-domain-policies:
|
180
|
-
- none
|
181
|
-
referrer-policy:
|
182
|
-
- strict-origin-when-cross-origin
|
183
|
-
etag:
|
184
|
-
- W/"f85014fa5cfc264e4179f49199e870cc"
|
185
|
-
cache-control:
|
186
|
-
- max-age=0, private, must-revalidate
|
187
|
-
x-request-id:
|
188
|
-
- ccf25ace4c795d0af52d45efd5d72d26
|
189
|
-
x-runtime:
|
190
|
-
- '0.039550'
|
191
|
-
strict-transport-security:
|
192
|
-
- max-age=15724800; includeSubDomains
|
193
|
-
access-control-allow-origin:
|
194
|
-
- "*"
|
195
|
-
access-control-allow-credentials:
|
196
|
-
- 'true'
|
197
|
-
access-control-allow-methods:
|
198
|
-
- GET, PUT, POST, DELETE, PATCH, OPTIONS
|
199
|
-
access-control-allow-headers:
|
200
|
-
- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization
|
201
|
-
body:
|
202
|
-
encoding: UTF-8
|
203
|
-
string: '{"data":[{"id":"est_test_7fd554d0b824cbf3fd928f8db56dc3f1","order":{"id":"ord_test_26c3cc6bcc823154b244653052ffc93e","allocation_state":"allocated","allocations":[{"id":"all_test_da286dca43e07def48c5333f971c0673","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
|
204
|
-
Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"draft"},"production":true,"type":"mass"},{"id":"est_test_1fbe2802b582efc2caf3f1523cde1157","order":{"id":"ord_test_d22cae8d4a65ad93a255d1bf8b2a0701","allocation_state":"allocated","allocations":[{"id":"all_test_ad2a03492c746cefd7ebebe3bdd1d286","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
|
205
|
-
Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"placed"},"production":true,"type":"mass"},{"id":"est_test_3d32e8da2e2af8f3aa635b49d4a9f695","order":{"id":"ord_test_f4c126c763b33ea12b7491118d5fdb18","allocation_state":"allocated","allocations":[],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"cancelled"},"production":true,"type":"mass"},{"id":"est_test_8e8ec365b3675cc0d62ee80ad7c872f7","order":{"id":"ord_test_5bd267b45da3d5c489b5b906f41bae0b","allocation_state":"allocated","allocations":[{"id":"all_test_e7a874eab4be84503d56605296816f35","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
|
206
|
-
Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"placed"},"production":true,"type":"mass"},{"id":"est_test_ab9be5352e3a11b973ec89811f88e7f2","order":{"id":"ord_test_438094fb6759af55933349eb2ced84f5","allocation_state":"allocated","allocations":[],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"cancelled"},"production":true,"type":"mass"},{"id":"est_test_94367f5d88bc057e94cdbfd8b65013dd","order":{"id":"ord_test_f8ec57342fefc401a441f7cbf072f5b1","allocation_state":"allocated","allocations":[],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"cancelled"},"production":true,"type":"mass"}],"error":null,"meta":{"next_page":null,"prev_page":null},"success":true}'
|
207
|
-
http_version: '2'
|
208
|
-
adapter_metadata:
|
209
|
-
effective_url: https://api.staging-patch.com/v1/estimates?page=1
|
210
|
-
recorded_at: Thu, 02 Jul 2020 17:44:24 GMT
|
211
|
-
recorded_with: VCR 6.0.0
|