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
@@ -1,229 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://api.staging-patch.com/v1/orders
|
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/"1ebf12734967f4e68ae687ff399373e3"
|
45
|
-
cache-control:
|
46
|
-
- max-age=0, private, must-revalidate
|
47
|
-
x-request-id:
|
48
|
-
- c396d4bff9b05bc45daeb35ccfe99309
|
49
|
-
x-runtime:
|
50
|
-
- '0.050041'
|
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":"ord_test_6d00ac52eb0404514a8c9688120ad886","allocation_state":"allocated","allocations":[{"id":"all_test_f54345ee0518704dea3bf25fc8f6c621","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":"placed"},"error":null,"meta":null,"success":true}'
|
67
|
-
http_version: '2'
|
68
|
-
adapter_metadata:
|
69
|
-
effective_url: https://api.staging-patch.com/v1/orders
|
70
|
-
recorded_at: Thu, 02 Jul 2020 17:44:24 GMT
|
71
|
-
- request:
|
72
|
-
method: get
|
73
|
-
uri: https://api.staging-patch.com/v1/orders/ord_test_6d00ac52eb0404514a8c9688120ad886
|
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/"1ebf12734967f4e68ae687ff399373e3"
|
116
|
-
cache-control:
|
117
|
-
- max-age=0, private, must-revalidate
|
118
|
-
x-request-id:
|
119
|
-
- 8e5172fc91047ea0b802325e28b20f68
|
120
|
-
x-runtime:
|
121
|
-
- '0.022674'
|
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_6d00ac52eb0404514a8c9688120ad886","allocation_state":"allocated","allocations":[{"id":"all_test_f54345ee0518704dea3bf25fc8f6c621","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_6d00ac52eb0404514a8c9688120ad886
|
139
|
-
recorded_at: Thu, 02 Jul 2020 17:44:24 GMT
|
140
|
-
- request:
|
141
|
-
method: get
|
142
|
-
uri: https://api.staging-patch.com/v1/orders?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/"82f6a48e5b41681ace087771cd7b8b33"
|
185
|
-
cache-control:
|
186
|
-
- max-age=0, private, must-revalidate
|
187
|
-
x-request-id:
|
188
|
-
- 834dbe28552d5f2ce46d3bdd82db5aee
|
189
|
-
x-runtime:
|
190
|
-
- '0.076269'
|
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":"ord_test_6d00ac52eb0404514a8c9688120ad886","allocation_state":"allocated","allocations":[{"id":"all_test_f54345ee0518704dea3bf25fc8f6c621","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":"placed"},{"id":"ord_test_26c3cc6bcc823154b244653052ffc93e","allocation_state":"allocated","allocations":[{"id":"all_test_da286dca43e07def48c5333f971c0673","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":"draft"},{"id":"ord_test_d22cae8d4a65ad93a255d1bf8b2a0701","allocation_state":"allocated","allocations":[{"id":"all_test_ad2a03492c746cefd7ebebe3bdd1d286","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"},{"id":"ord_test_3566497ae59fff4d84c13261b89b2b91","allocation_state":"allocated","allocations":[{"id":"all_test_337eb3c65c52e6becbef3c693465654a","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
|
207
|
-
Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"placed"},{"id":"ord_test_f4c126c763b33ea12b7491118d5fdb18","allocation_state":"allocated","allocations":[],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"cancelled"},{"id":"ord_test_5bd267b45da3d5c489b5b906f41bae0b","allocation_state":"allocated","allocations":[{"id":"all_test_e7a874eab4be84503d56605296816f35","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
|
208
|
-
Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"placed"},{"id":"ord_test_438094fb6759af55933349eb2ced84f5","allocation_state":"allocated","allocations":[],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"cancelled"},{"id":"ord_test_7205af2299044d533e254e6efaeed361","allocation_state":"allocated","allocations":[{"id":"all_test_9c458c03ec0e19a22a7a795c23eb6877","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
|
209
|
-
Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"placed"},{"id":"ord_test_f8ec57342fefc401a441f7cbf072f5b1","allocation_state":"allocated","allocations":[],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"cancelled"},{"id":"ord_test_356659ea17804a53ea1cb506a7c8c6a7","allocation_state":"allocated","allocations":[{"id":"all_test_839644c866730b698da16e89899bc003","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
|
210
|
-
Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"placed"},{"id":"ord_test_24dbbc4e4c6ac98b97058146c40184b4","allocation_state":"allocated","allocations":[{"id":"all_test_7246511019b601ff735e0b520934fc3b","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
|
211
|
-
Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"placed"},{"id":"ord_test_b5f49dc84442aa1c77ff2a2caa30f19c","allocation_state":"allocated","allocations":[{"id":"all_test_4c1f00cbe24efce25fc4bc4957d5fadc","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
|
212
|
-
Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"placed"},{"id":"ord_test_79b8ae05254d3695fc75e7dd8ed8ae91","allocation_state":"allocated","allocations":[{"id":"all_test_2c82280f135e8030d39a66eb4e21b621","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
|
213
|
-
Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"placed"},{"id":"ord_test_29e77b2242813e0b5c402270289f40a8","allocation_state":"allocated","allocations":[{"id":"all_test_7081abf33a21ae3ba40cf88634ffdb3e","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
|
214
|
-
Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"placed"},{"id":"ord_test_1c1a0897bd8d7136f5935f5c6f34b60a","allocation_state":"allocated","allocations":[{"id":"all_test_211905de453f9f103174e8f113b87c90","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
|
215
|
-
Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"placed"},{"id":"ord_test_4dc44b647268a80a53456f040db328ef","allocation_state":"allocated","allocations":[{"id":"all_test_ce82b40cfd0d2c1d12e5e3632c78e82b","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
|
216
|
-
Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"placed"},{"id":"ord_test_afbd2d4c6b9236d552f00125e94f8233","allocation_state":"allocated","allocations":[{"id":"all_test_af11f7f4e468645f88f09eb31fec8f69","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
|
217
|
-
Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"placed"},{"id":"ord_test_f68347fc3249dd239e68389b2d88ef62","allocation_state":"allocated","allocations":[{"id":"all_test_a7a0331709bd639940f6abc290c8b2af","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
|
218
|
-
Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"placed"},{"id":"ord_test_d1200a39fc498b372d72c021313a3705","allocation_state":"allocated","allocations":[{"id":"all_test_ef946b09cb033ae44dd387e6cd887448","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
|
219
|
-
Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"placed"},{"id":"ord_test_f2b5b3261e57b84b7f492c3cde5506c4","allocation_state":"allocated","allocations":[{"id":"all_test_69c857c15f04b67d940130ba0a2988c8","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
|
220
|
-
Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"placed"},{"id":"ord_test_cd0e09218543f2f97b139ae668a8ea83","allocation_state":"allocated","allocations":[{"id":"all_test_8854e8e7e58479356349038b54d57ae4","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
|
221
|
-
Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"placed"},{"id":"ord_test_4354a934504498c953ed2a188ab4cf01","allocation_state":"allocated","allocations":[{"id":"all_test_031c0937a65f3c3f57299b86e25c02f7","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
|
222
|
-
Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"placed"},{"id":"ord_test_236ffceadec1cc2321f0e9f7a5fba6b7","allocation_state":"allocated","allocations":[{"id":"all_test_0e0b5fafb7f8b7f2e4d5eff72288a88c","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
|
223
|
-
Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"placed"},{"id":"ord_test_47964e77ad9f6ee9d4f8c8650f7da804","allocation_state":"allocated","allocations":[{"id":"all_test_6bb9a87e8703e10728a574cdfeeda7bf","mass_g":5999,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
|
224
|
-
Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":5999,"price_cents_usd":"1.0","production":false,"state":"placed"}],"error":null,"meta":{"next_page":null,"prev_page":null},"success":true}'
|
225
|
-
http_version: '2'
|
226
|
-
adapter_metadata:
|
227
|
-
effective_url: https://api.staging-patch.com/v1/orders?page=1
|
228
|
-
recorded_at: Thu, 02 Jul 2020 17:44:24 GMT
|
229
|
-
recorded_with: VCR 6.0.0
|
@@ -1,352 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.staging-patch.com/v1/projects
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
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: 200
|
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
|
-
vary:
|
32
|
-
- Accept-Encoding
|
33
|
-
- Origin
|
34
|
-
x-frame-options:
|
35
|
-
- SAMEORIGIN
|
36
|
-
x-xss-protection:
|
37
|
-
- 1; mode=block
|
38
|
-
x-content-type-options:
|
39
|
-
- nosniff
|
40
|
-
x-download-options:
|
41
|
-
- noopen
|
42
|
-
x-permitted-cross-domain-policies:
|
43
|
-
- none
|
44
|
-
referrer-policy:
|
45
|
-
- strict-origin-when-cross-origin
|
46
|
-
etag:
|
47
|
-
- W/"4cb5a00231b4a4af0a924c8965c78a3c"
|
48
|
-
cache-control:
|
49
|
-
- max-age=0, private, must-revalidate
|
50
|
-
x-request-id:
|
51
|
-
- 4fcad8464eb44febeb8f673bb00ed440
|
52
|
-
x-runtime:
|
53
|
-
- '0.022886'
|
54
|
-
strict-transport-security:
|
55
|
-
- max-age=15724800; includeSubDomains
|
56
|
-
access-control-allow-origin:
|
57
|
-
- "*"
|
58
|
-
access-control-allow-credentials:
|
59
|
-
- 'true'
|
60
|
-
access-control-allow-methods:
|
61
|
-
- GET, PUT, POST, DELETE, PATCH, OPTIONS
|
62
|
-
access-control-allow-headers:
|
63
|
-
- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization
|
64
|
-
body:
|
65
|
-
encoding: UTF-8
|
66
|
-
string: '{"data":[{"id":"pro_test_cee5bba9672799a693891aff340b3106","country":"US","description":"This
|
67
|
-
project is an example.","developer":"Patch Test Developer","latitude":45.0,"longitude":45.0,"name":"Patch''s
|
68
|
-
Test Offset Project","production":false,"verifier":"Test verifier"}],"error":null,"meta":{"next_page":null,"prev_page":null},"success":true}'
|
69
|
-
http_version: '2'
|
70
|
-
adapter_metadata:
|
71
|
-
effective_url: https://api.staging-patch.com/v1/projects
|
72
|
-
recorded_at: Thu, 02 Jul 2020 17:44:24 GMT
|
73
|
-
- request:
|
74
|
-
method: post
|
75
|
-
uri: https://api.staging-patch.com/v1/preferences
|
76
|
-
body:
|
77
|
-
encoding: UTF-8
|
78
|
-
string: '{"project_id":"pro_test_cee5bba9672799a693891aff340b3106"}'
|
79
|
-
headers:
|
80
|
-
User-Agent:
|
81
|
-
- OpenAPI-Generator/1.0.0.pre/ruby
|
82
|
-
Content-Type:
|
83
|
-
- application/json
|
84
|
-
Accept:
|
85
|
-
- application/json
|
86
|
-
Authorization:
|
87
|
-
- "<AUTH>"
|
88
|
-
Expect:
|
89
|
-
- ''
|
90
|
-
response:
|
91
|
-
status:
|
92
|
-
code: 201
|
93
|
-
message: ''
|
94
|
-
headers:
|
95
|
-
server:
|
96
|
-
- nginx/1.17.8
|
97
|
-
date:
|
98
|
-
- Thu, 02 Jul 2020 17:44:24 GMT
|
99
|
-
content-type:
|
100
|
-
- application/json; charset=utf-8
|
101
|
-
x-frame-options:
|
102
|
-
- SAMEORIGIN
|
103
|
-
x-xss-protection:
|
104
|
-
- 1; mode=block
|
105
|
-
x-content-type-options:
|
106
|
-
- nosniff
|
107
|
-
x-download-options:
|
108
|
-
- noopen
|
109
|
-
x-permitted-cross-domain-policies:
|
110
|
-
- none
|
111
|
-
referrer-policy:
|
112
|
-
- strict-origin-when-cross-origin
|
113
|
-
etag:
|
114
|
-
- W/"2bede9d3bcffcf1f6a7cdcc95689a3cb"
|
115
|
-
cache-control:
|
116
|
-
- max-age=0, private, must-revalidate
|
117
|
-
x-request-id:
|
118
|
-
- 3b90321eebe8a5aaed3f8f5c6593260b
|
119
|
-
x-runtime:
|
120
|
-
- '0.034660'
|
121
|
-
strict-transport-security:
|
122
|
-
- max-age=15724800; includeSubDomains
|
123
|
-
vary:
|
124
|
-
- Origin
|
125
|
-
access-control-allow-origin:
|
126
|
-
- "*"
|
127
|
-
access-control-allow-credentials:
|
128
|
-
- 'true'
|
129
|
-
access-control-allow-methods:
|
130
|
-
- GET, PUT, POST, DELETE, PATCH, OPTIONS
|
131
|
-
access-control-allow-headers:
|
132
|
-
- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization
|
133
|
-
body:
|
134
|
-
encoding: UTF-8
|
135
|
-
string: '{"data":{"id":"pre_test_c00432a2ebd671d7772963ec9db2987a","allocation_percentage":100,"project":{"id":"pro_test_cee5bba9672799a693891aff340b3106","country":"US","description":"This
|
136
|
-
project is an example.","developer":"Patch Test Developer","latitude":45.0,"longitude":45.0,"name":"Patch''s
|
137
|
-
Test Offset Project","production":false,"verifier":"Test verifier"}},"error":null,"meta":null,"success":true}'
|
138
|
-
http_version: '2'
|
139
|
-
adapter_metadata:
|
140
|
-
effective_url: https://api.staging-patch.com/v1/preferences
|
141
|
-
recorded_at: Thu, 02 Jul 2020 17:44:24 GMT
|
142
|
-
- request:
|
143
|
-
method: get
|
144
|
-
uri: https://api.staging-patch.com/v1/preferences/pre_test_c00432a2ebd671d7772963ec9db2987a
|
145
|
-
body:
|
146
|
-
encoding: US-ASCII
|
147
|
-
string: ''
|
148
|
-
headers:
|
149
|
-
User-Agent:
|
150
|
-
- OpenAPI-Generator/1.0.0.pre/ruby
|
151
|
-
Content-Type:
|
152
|
-
- application/json
|
153
|
-
Accept:
|
154
|
-
- application/json
|
155
|
-
Authorization:
|
156
|
-
- "<AUTH>"
|
157
|
-
Expect:
|
158
|
-
- ''
|
159
|
-
response:
|
160
|
-
status:
|
161
|
-
code: 200
|
162
|
-
message: ''
|
163
|
-
headers:
|
164
|
-
server:
|
165
|
-
- nginx/1.17.8
|
166
|
-
date:
|
167
|
-
- Thu, 02 Jul 2020 17:44:24 GMT
|
168
|
-
content-type:
|
169
|
-
- application/json; charset=utf-8
|
170
|
-
vary:
|
171
|
-
- Accept-Encoding
|
172
|
-
- Origin
|
173
|
-
x-frame-options:
|
174
|
-
- SAMEORIGIN
|
175
|
-
x-xss-protection:
|
176
|
-
- 1; mode=block
|
177
|
-
x-content-type-options:
|
178
|
-
- nosniff
|
179
|
-
x-download-options:
|
180
|
-
- noopen
|
181
|
-
x-permitted-cross-domain-policies:
|
182
|
-
- none
|
183
|
-
referrer-policy:
|
184
|
-
- strict-origin-when-cross-origin
|
185
|
-
etag:
|
186
|
-
- W/"2bede9d3bcffcf1f6a7cdcc95689a3cb"
|
187
|
-
cache-control:
|
188
|
-
- max-age=0, private, must-revalidate
|
189
|
-
x-request-id:
|
190
|
-
- 8f70e9eb6db9076ecb317ebb430af6d7
|
191
|
-
x-runtime:
|
192
|
-
- '0.020394'
|
193
|
-
strict-transport-security:
|
194
|
-
- max-age=15724800; includeSubDomains
|
195
|
-
access-control-allow-origin:
|
196
|
-
- "*"
|
197
|
-
access-control-allow-credentials:
|
198
|
-
- 'true'
|
199
|
-
access-control-allow-methods:
|
200
|
-
- GET, PUT, POST, DELETE, PATCH, OPTIONS
|
201
|
-
access-control-allow-headers:
|
202
|
-
- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization
|
203
|
-
body:
|
204
|
-
encoding: UTF-8
|
205
|
-
string: '{"data":{"id":"pre_test_c00432a2ebd671d7772963ec9db2987a","allocation_percentage":100,"project":{"id":"pro_test_cee5bba9672799a693891aff340b3106","country":"US","description":"This
|
206
|
-
project is an example.","developer":"Patch Test Developer","latitude":45.0,"longitude":45.0,"name":"Patch''s
|
207
|
-
Test Offset Project","production":false,"verifier":"Test verifier"}},"error":null,"meta":null,"success":true}'
|
208
|
-
http_version: '2'
|
209
|
-
adapter_metadata:
|
210
|
-
effective_url: https://api.staging-patch.com/v1/preferences/pre_test_c00432a2ebd671d7772963ec9db2987a
|
211
|
-
recorded_at: Thu, 02 Jul 2020 17:44:24 GMT
|
212
|
-
- request:
|
213
|
-
method: get
|
214
|
-
uri: https://api.staging-patch.com/v1/preferences?page=1
|
215
|
-
body:
|
216
|
-
encoding: US-ASCII
|
217
|
-
string: ''
|
218
|
-
headers:
|
219
|
-
User-Agent:
|
220
|
-
- OpenAPI-Generator/1.0.0.pre/ruby
|
221
|
-
Content-Type:
|
222
|
-
- application/json
|
223
|
-
Accept:
|
224
|
-
- application/json
|
225
|
-
Authorization:
|
226
|
-
- "<AUTH>"
|
227
|
-
Expect:
|
228
|
-
- ''
|
229
|
-
response:
|
230
|
-
status:
|
231
|
-
code: 200
|
232
|
-
message: ''
|
233
|
-
headers:
|
234
|
-
server:
|
235
|
-
- nginx/1.17.8
|
236
|
-
date:
|
237
|
-
- Thu, 02 Jul 2020 17:44:24 GMT
|
238
|
-
content-type:
|
239
|
-
- application/json; charset=utf-8
|
240
|
-
vary:
|
241
|
-
- Accept-Encoding
|
242
|
-
- Origin
|
243
|
-
x-frame-options:
|
244
|
-
- SAMEORIGIN
|
245
|
-
x-xss-protection:
|
246
|
-
- 1; mode=block
|
247
|
-
x-content-type-options:
|
248
|
-
- nosniff
|
249
|
-
x-download-options:
|
250
|
-
- noopen
|
251
|
-
x-permitted-cross-domain-policies:
|
252
|
-
- none
|
253
|
-
referrer-policy:
|
254
|
-
- strict-origin-when-cross-origin
|
255
|
-
etag:
|
256
|
-
- W/"7a70989419b2452978059a260d61c3dd"
|
257
|
-
cache-control:
|
258
|
-
- max-age=0, private, must-revalidate
|
259
|
-
x-request-id:
|
260
|
-
- b5a9c85603f7e029e3cf189dcde5a68e
|
261
|
-
x-runtime:
|
262
|
-
- '0.022260'
|
263
|
-
strict-transport-security:
|
264
|
-
- max-age=15724800; includeSubDomains
|
265
|
-
access-control-allow-origin:
|
266
|
-
- "*"
|
267
|
-
access-control-allow-credentials:
|
268
|
-
- 'true'
|
269
|
-
access-control-allow-methods:
|
270
|
-
- GET, PUT, POST, DELETE, PATCH, OPTIONS
|
271
|
-
access-control-allow-headers:
|
272
|
-
- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization
|
273
|
-
body:
|
274
|
-
encoding: UTF-8
|
275
|
-
string: '{"data":[{"id":"pre_test_c00432a2ebd671d7772963ec9db2987a","allocation_percentage":100,"project":{"id":"pro_test_cee5bba9672799a693891aff340b3106","country":"US","description":"This
|
276
|
-
project is an example.","developer":"Patch Test Developer","latitude":45.0,"longitude":45.0,"name":"Patch''s
|
277
|
-
Test Offset Project","production":false,"verifier":"Test verifier"}}],"error":null,"meta":{"next_page":null,"prev_page":null},"success":true}'
|
278
|
-
http_version: '2'
|
279
|
-
adapter_metadata:
|
280
|
-
effective_url: https://api.staging-patch.com/v1/preferences?page=1
|
281
|
-
recorded_at: Thu, 02 Jul 2020 17:44:24 GMT
|
282
|
-
- request:
|
283
|
-
method: delete
|
284
|
-
uri: https://api.staging-patch.com/v1/preferences/pre_test_c00432a2ebd671d7772963ec9db2987a
|
285
|
-
body:
|
286
|
-
encoding: US-ASCII
|
287
|
-
string: ''
|
288
|
-
headers:
|
289
|
-
User-Agent:
|
290
|
-
- OpenAPI-Generator/1.0.0.pre/ruby
|
291
|
-
Content-Type:
|
292
|
-
- application/json
|
293
|
-
Accept:
|
294
|
-
- application/json
|
295
|
-
Authorization:
|
296
|
-
- "<AUTH>"
|
297
|
-
Expect:
|
298
|
-
- ''
|
299
|
-
response:
|
300
|
-
status:
|
301
|
-
code: 200
|
302
|
-
message: ''
|
303
|
-
headers:
|
304
|
-
server:
|
305
|
-
- nginx/1.17.8
|
306
|
-
date:
|
307
|
-
- Thu, 02 Jul 2020 17:44:24 GMT
|
308
|
-
content-type:
|
309
|
-
- application/json; charset=utf-8
|
310
|
-
vary:
|
311
|
-
- Accept-Encoding
|
312
|
-
- Origin
|
313
|
-
x-frame-options:
|
314
|
-
- SAMEORIGIN
|
315
|
-
x-xss-protection:
|
316
|
-
- 1; mode=block
|
317
|
-
x-content-type-options:
|
318
|
-
- nosniff
|
319
|
-
x-download-options:
|
320
|
-
- noopen
|
321
|
-
x-permitted-cross-domain-policies:
|
322
|
-
- none
|
323
|
-
referrer-policy:
|
324
|
-
- strict-origin-when-cross-origin
|
325
|
-
etag:
|
326
|
-
- W/"2bede9d3bcffcf1f6a7cdcc95689a3cb"
|
327
|
-
cache-control:
|
328
|
-
- max-age=0, private, must-revalidate
|
329
|
-
x-request-id:
|
330
|
-
- 224cf9c7b8a173a178b967d5feefa317
|
331
|
-
x-runtime:
|
332
|
-
- '0.030450'
|
333
|
-
strict-transport-security:
|
334
|
-
- max-age=15724800; includeSubDomains
|
335
|
-
access-control-allow-origin:
|
336
|
-
- "*"
|
337
|
-
access-control-allow-credentials:
|
338
|
-
- 'true'
|
339
|
-
access-control-allow-methods:
|
340
|
-
- GET, PUT, POST, DELETE, PATCH, OPTIONS
|
341
|
-
access-control-allow-headers:
|
342
|
-
- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization
|
343
|
-
body:
|
344
|
-
encoding: UTF-8
|
345
|
-
string: '{"data":{"id":"pre_test_c00432a2ebd671d7772963ec9db2987a","allocation_percentage":100,"project":{"id":"pro_test_cee5bba9672799a693891aff340b3106","country":"US","description":"This
|
346
|
-
project is an example.","developer":"Patch Test Developer","latitude":45.0,"longitude":45.0,"name":"Patch''s
|
347
|
-
Test Offset Project","production":false,"verifier":"Test verifier"}},"error":null,"meta":null,"success":true}'
|
348
|
-
http_version: '2'
|
349
|
-
adapter_metadata:
|
350
|
-
effective_url: https://api.staging-patch.com/v1/preferences/pre_test_c00432a2ebd671d7772963ec9db2987a
|
351
|
-
recorded_at: Thu, 02 Jul 2020 17:44:24 GMT
|
352
|
-
recorded_with: VCR 6.0.0
|