my_john_deere_api 0.13.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/my_john_deere_api/request/collection/fields.rb +7 -0
- data/lib/my_john_deere_api/request/individual.rb +1 -0
- data/lib/my_john_deere_api/request/individual/base.rb +3 -2
- data/lib/my_john_deere_api/request/individual/field.rb +19 -0
- data/lib/my_john_deere_api/version.rb +1 -1
- data/test/lib/my_john_deere_api/request/collection/fields_test.rb +7 -0
- data/test/lib/my_john_deere_api/request/individual/field_test.rb +36 -0
- data/test/lib/my_john_deere_api/request/individual_test.rb +4 -0
- data/test/support/vcr/get_field.yml +144 -0
- data/test/support/vcr/get_fields.yml +10 -10
- data/test/support/vcr_setup.rb +5 -1
- metadata +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae757769e9c3ffe1d9609f7d59864fb139e20d399326903eb01dad46f3b7268f
|
4
|
+
data.tar.gz: fe95f5060f2cc45706b2e4163825029f12fc27641f0219b6cfdbeb5c777be449
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2582721a66be028a6dd556cbd15a67c07d52d33bd13851d24f994f548d863e1474c585a7d9b8b1d0aeb308662dfa069fcd75a501c1d555d6d2b294dc20d9447
|
7
|
+
data.tar.gz: 7005b7c9e9a5125bad9afd5917fc9920f8f18ac7ad5549c595d2cc844172c238742ebbc1c5ccdbad603e16590e2081d12493284a5a18727ee57cb510decdcfba
|
@@ -15,5 +15,12 @@ module MyJohnDeereApi::Request
|
|
15
15
|
def model
|
16
16
|
MyJohnDeereApi::Model::Field
|
17
17
|
end
|
18
|
+
|
19
|
+
##
|
20
|
+
# Retrieve a field from JD
|
21
|
+
|
22
|
+
def find(field_id)
|
23
|
+
Individual::Field.new(accessor, field_id, organization: associations[:organization]).object
|
24
|
+
end
|
18
25
|
end
|
19
26
|
end
|
@@ -2,5 +2,6 @@ module MyJohnDeereApi::Request::Individual
|
|
2
2
|
autoload :Base, 'my_john_deere_api/request/individual/base'
|
3
3
|
autoload :Asset, 'my_john_deere_api/request/individual/asset'
|
4
4
|
autoload :ContributionProduct, 'my_john_deere_api/request/individual/contribution_product'
|
5
|
+
autoload :Field, 'my_john_deere_api/request/individual/field'
|
5
6
|
autoload :Organization, 'my_john_deere_api/request/individual/organization'
|
6
7
|
end
|
@@ -2,14 +2,15 @@ require 'json'
|
|
2
2
|
|
3
3
|
module MyJohnDeereApi::Request
|
4
4
|
class Individual::Base
|
5
|
-
attr_reader :accessor, :id, :response
|
5
|
+
attr_reader :accessor, :id, :associations, :response
|
6
6
|
|
7
7
|
##
|
8
8
|
# Initialize with an accessor, and asset id
|
9
9
|
|
10
|
-
def initialize(accessor, id)
|
10
|
+
def initialize(accessor, id, associations = {})
|
11
11
|
@accessor = accessor
|
12
12
|
@id = id
|
13
|
+
@associations = associations
|
13
14
|
end
|
14
15
|
|
15
16
|
##
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'json'
|
2
|
+
|
3
|
+
module MyJohnDeereApi::Request
|
4
|
+
class Individual::Field < Individual::Base
|
5
|
+
##
|
6
|
+
# The resource path for the first page in the collection
|
7
|
+
|
8
|
+
def resource
|
9
|
+
"/organizations/#{associations[:organization]}/fields/#{id}"
|
10
|
+
end
|
11
|
+
|
12
|
+
##
|
13
|
+
# This is the class used to model the data
|
14
|
+
|
15
|
+
def model
|
16
|
+
MyJohnDeereApi::Model::Field
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -40,6 +40,13 @@ describe 'MyJohnDeereApi::Request::Collection::Fields' do
|
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
43
|
+
describe '#find(field_id)' do
|
44
|
+
it 'retrieves the asset' do
|
45
|
+
field = VCR.use_cassette('get_field') { collection.find(field_id) }
|
46
|
+
assert_kind_of JD::Model::Field, field
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
43
50
|
describe '#count' do
|
44
51
|
let(:server_response) do
|
45
52
|
contents = File.read('test/support/vcr/get_fields.yml')
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'support/helper'
|
2
|
+
require 'yaml'
|
3
|
+
require 'json'
|
4
|
+
|
5
|
+
describe 'MyJohnDeereApi::Request::Individual::Field' do
|
6
|
+
let(:object) { JD::Request::Individual::Field.new(accessor, field_id, organization: organization_id) }
|
7
|
+
|
8
|
+
inherits_from JD::Request::Individual::Base
|
9
|
+
|
10
|
+
describe '#initialize(access_token, organization_id, field_id)' do
|
11
|
+
it 'accepts an access token' do
|
12
|
+
assert_equal accessor, object.accessor
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'accepts organization_id as organization_id' do
|
16
|
+
assert_equal organization_id, object.associations[:organization]
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'accepts field_id as id' do
|
20
|
+
assert_equal field_id, object.id
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
describe '#resource' do
|
25
|
+
it 'returns /organizations/<organization_id>/fields/<field_id>' do
|
26
|
+
assert_equal "/organizations/#{organization_id}/fields/#{field_id}", object.resource
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe '#object' do
|
31
|
+
it 'returns all records' do
|
32
|
+
field = VCR.use_cassette('get_field') { object.object }
|
33
|
+
assert_kind_of JD::Model::Field, field
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -14,6 +14,10 @@ describe 'MyJohnDeereApi::Request::Individual' do
|
|
14
14
|
assert JD::Request::Individual::ContributionProduct
|
15
15
|
end
|
16
16
|
|
17
|
+
it 'loads Request::Individual::Field' do
|
18
|
+
assert JD::Request::Individual::Field
|
19
|
+
end
|
20
|
+
|
17
21
|
it 'loads Request::Individual::Organization' do
|
18
22
|
assert JD::Request::Individual::Organization
|
19
23
|
end
|
@@ -0,0 +1,144 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sandboxapi.deere.com/platform/
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/vnd.deere.axiom.v3+json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
User-Agent:
|
15
|
+
- OAuth gem v0.5.4
|
16
|
+
Authorization:
|
17
|
+
- OAuth oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
|
18
|
+
oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
|
19
|
+
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581028214", oauth_version="1.0"
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Fri, 07 Feb 2020 05:45:55 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/vnd.deere.axiom.v3+json;charset=UTF-8
|
29
|
+
X-Deere-Handling-Server:
|
30
|
+
- ip-10-214-45-143
|
31
|
+
X-Frame-Options:
|
32
|
+
- SAMEORIGIN
|
33
|
+
X-Deere-Elapsed-Ms:
|
34
|
+
- '9'
|
35
|
+
Cache-Control:
|
36
|
+
- no-store
|
37
|
+
Content-Language:
|
38
|
+
- en-US
|
39
|
+
Transfer-Encoding:
|
40
|
+
- chunked
|
41
|
+
body:
|
42
|
+
encoding: ASCII-8BIT
|
43
|
+
string: '{"@type":"ApiCatalog","links":[{"@type":"Link","rel":"oauthRequestToken","uri":"https://sandboxapi.deere.com/platform/oauth/request_token"},{"@type":"Link","rel":"oauthAuthorizeRequestToken","uri":"https://my.deere.com/consentToUseOfData?oauth_token={token}"},{"@type":"Link","rel":"oauthAccessToken","uri":"https://sandboxapi.deere.com/platform/oauth/access_token"},{"@type":"Link","rel":"agencies","uri":"https://sandboxapi.deere.com/platform/agencies"}]}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Fri, 07 Feb 2020 05:45:55 GMT
|
46
|
+
- request:
|
47
|
+
method: get
|
48
|
+
uri: https://sandboxapi.deere.com/platform/organizations
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ''
|
52
|
+
headers:
|
53
|
+
Accept:
|
54
|
+
- application/vnd.deere.axiom.v3+json
|
55
|
+
Accept-Encoding:
|
56
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
57
|
+
User-Agent:
|
58
|
+
- OAuth gem v0.5.4
|
59
|
+
Authorization:
|
60
|
+
- OAuth oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
|
61
|
+
oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
|
62
|
+
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581028214", oauth_token="00000000-0000-0000-0000-000000000000",
|
63
|
+
oauth_version="1.0"
|
64
|
+
response:
|
65
|
+
status:
|
66
|
+
code: 200
|
67
|
+
message: OK
|
68
|
+
headers:
|
69
|
+
Date:
|
70
|
+
- Fri, 07 Feb 2020 05:45:55 GMT
|
71
|
+
Content-Type:
|
72
|
+
- application/vnd.deere.axiom.v3+json;charset=UTF-8
|
73
|
+
X-Deere-Handling-Server:
|
74
|
+
- ip-10-214-45-143
|
75
|
+
X-Frame-Options:
|
76
|
+
- SAMEORIGIN
|
77
|
+
X-Deere-Elapsed-Ms:
|
78
|
+
- '45'
|
79
|
+
Cache-Control:
|
80
|
+
- no-store
|
81
|
+
Content-Language:
|
82
|
+
- en-US
|
83
|
+
Transfer-Encoding:
|
84
|
+
- chunked
|
85
|
+
body:
|
86
|
+
encoding: ASCII-8BIT
|
87
|
+
string: '{"links":[{"rel":"self","uri":"https://sandboxapi.deere.com/platform/organizations"},{"rel":"nextPage","uri":"https://sandboxapi.deere.com/platform/organizations;start=10;count=10"}],"total":15,"values":[{"@type":"Organization","name":"Organization
|
88
|
+
Name","type":"customer","member":true,"id":"000000","links":[{"@type":"Link","rel":"self","uri":"https://sandboxapi.deere.com/platform/organizations/000000"},{"@type":"Link","rel":"machines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"wdtCapableMachines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines?capability=wdt"},{"@type":"Link","rel":"files","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"transferableFiles","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files?transferable=true"},{"@type":"Link","rel":"uploadFile","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"sendFileToMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fileTransfers"},{"@type":"Link","rel":"addMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"addField","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"assets","uri":"https://sandboxapi.deere.com/platform/organizations/000000/assets"},{"@type":"Link","rel":"fields","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"farms","uri":"https://sandboxapi.deere.com/platform/organizations/000000/farms"},{"@type":"Link","rel":"boundaries","uri":"https://sandboxapi.deere.com/platform/organizations/000000/boundaries"},{"@type":"Link","rel":"clients","uri":"https://sandboxapi.deere.com/platform/organizations/000000/clients"},{"@type":"Link","rel":"flags","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flags"},{"@type":"Link","rel":"flagCategory","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flagCategories"},{"@type":"Link","rel":"controllers","uri":"https://sandboxapi.deere.com/platform/organizations/000000/orgController"}]},{"@type":"Organization","name":"Organization
|
89
|
+
Name","type":"customer","member":true,"id":"000000","links":[{"@type":"Link","rel":"self","uri":"https://sandboxapi.deere.com/platform/organizations/000000"},{"@type":"Link","rel":"machines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"wdtCapableMachines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines?capability=wdt"},{"@type":"Link","rel":"files","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"transferableFiles","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files?transferable=true"},{"@type":"Link","rel":"uploadFile","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"sendFileToMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fileTransfers"},{"@type":"Link","rel":"addMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"addField","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"assets","uri":"https://sandboxapi.deere.com/platform/organizations/000000/assets"},{"@type":"Link","rel":"fields","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"farms","uri":"https://sandboxapi.deere.com/platform/organizations/000000/farms"},{"@type":"Link","rel":"boundaries","uri":"https://sandboxapi.deere.com/platform/organizations/000000/boundaries"},{"@type":"Link","rel":"clients","uri":"https://sandboxapi.deere.com/platform/organizations/000000/clients"},{"@type":"Link","rel":"flags","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flags"},{"@type":"Link","rel":"flagCategory","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flagCategories"},{"@type":"Link","rel":"controllers","uri":"https://sandboxapi.deere.com/platform/organizations/000000/orgController"}]},{"@type":"Organization","name":"Organization
|
90
|
+
Name","type":"customer","member":true,"id":"000000","links":[{"@type":"Link","rel":"self","uri":"https://sandboxapi.deere.com/platform/organizations/000000"},{"@type":"Link","rel":"machines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"wdtCapableMachines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines?capability=wdt"},{"@type":"Link","rel":"files","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"transferableFiles","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files?transferable=true"},{"@type":"Link","rel":"uploadFile","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"sendFileToMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fileTransfers"},{"@type":"Link","rel":"addMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"addField","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"assets","uri":"https://sandboxapi.deere.com/platform/organizations/000000/assets"},{"@type":"Link","rel":"fields","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"farms","uri":"https://sandboxapi.deere.com/platform/organizations/000000/farms"},{"@type":"Link","rel":"boundaries","uri":"https://sandboxapi.deere.com/platform/organizations/000000/boundaries"},{"@type":"Link","rel":"clients","uri":"https://sandboxapi.deere.com/platform/organizations/000000/clients"},{"@type":"Link","rel":"flags","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flags"},{"@type":"Link","rel":"flagCategory","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flagCategories"},{"@type":"Link","rel":"controllers","uri":"https://sandboxapi.deere.com/platform/organizations/000000/orgController"}]},{"@type":"Organization","name":"Organization
|
91
|
+
Name","type":"customer","member":true,"id":"000000","links":[{"@type":"Link","rel":"self","uri":"https://sandboxapi.deere.com/platform/organizations/000000"},{"@type":"Link","rel":"machines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"wdtCapableMachines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines?capability=wdt"},{"@type":"Link","rel":"files","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"transferableFiles","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files?transferable=true"},{"@type":"Link","rel":"uploadFile","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"sendFileToMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fileTransfers"},{"@type":"Link","rel":"addMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"addField","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"assets","uri":"https://sandboxapi.deere.com/platform/organizations/000000/assets"},{"@type":"Link","rel":"fields","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"farms","uri":"https://sandboxapi.deere.com/platform/organizations/000000/farms"},{"@type":"Link","rel":"boundaries","uri":"https://sandboxapi.deere.com/platform/organizations/000000/boundaries"},{"@type":"Link","rel":"clients","uri":"https://sandboxapi.deere.com/platform/organizations/000000/clients"},{"@type":"Link","rel":"flags","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flags"},{"@type":"Link","rel":"flagCategory","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flagCategories"},{"@type":"Link","rel":"controllers","uri":"https://sandboxapi.deere.com/platform/organizations/000000/orgController"}]},{"@type":"Organization","name":"Organization
|
92
|
+
Name","type":"customer","member":true,"id":"000000","links":[{"@type":"Link","rel":"self","uri":"https://sandboxapi.deere.com/platform/organizations/000000"},{"@type":"Link","rel":"machines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"wdtCapableMachines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines?capability=wdt"},{"@type":"Link","rel":"files","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"transferableFiles","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files?transferable=true"},{"@type":"Link","rel":"uploadFile","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"sendFileToMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fileTransfers"},{"@type":"Link","rel":"addMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"addField","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"assets","uri":"https://sandboxapi.deere.com/platform/organizations/000000/assets"},{"@type":"Link","rel":"fields","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"farms","uri":"https://sandboxapi.deere.com/platform/organizations/000000/farms"},{"@type":"Link","rel":"boundaries","uri":"https://sandboxapi.deere.com/platform/organizations/000000/boundaries"},{"@type":"Link","rel":"clients","uri":"https://sandboxapi.deere.com/platform/organizations/000000/clients"},{"@type":"Link","rel":"flags","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flags"},{"@type":"Link","rel":"flagCategory","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flagCategories"},{"@type":"Link","rel":"controllers","uri":"https://sandboxapi.deere.com/platform/organizations/000000/orgController"}]},{"@type":"Organization","name":"Organization
|
93
|
+
Name","type":"customer","member":true,"id":"000000","links":[{"@type":"Link","rel":"self","uri":"https://sandboxapi.deere.com/platform/organizations/000000"},{"@type":"Link","rel":"machines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"wdtCapableMachines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines?capability=wdt"},{"@type":"Link","rel":"files","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"transferableFiles","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files?transferable=true"},{"@type":"Link","rel":"uploadFile","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"sendFileToMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fileTransfers"},{"@type":"Link","rel":"addMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"addField","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"assets","uri":"https://sandboxapi.deere.com/platform/organizations/000000/assets"},{"@type":"Link","rel":"fields","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"farms","uri":"https://sandboxapi.deere.com/platform/organizations/000000/farms"},{"@type":"Link","rel":"boundaries","uri":"https://sandboxapi.deere.com/platform/organizations/000000/boundaries"},{"@type":"Link","rel":"clients","uri":"https://sandboxapi.deere.com/platform/organizations/000000/clients"},{"@type":"Link","rel":"flags","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flags"},{"@type":"Link","rel":"flagCategory","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flagCategories"},{"@type":"Link","rel":"controllers","uri":"https://sandboxapi.deere.com/platform/organizations/000000/orgController"}]},{"@type":"Organization","name":"Organization
|
94
|
+
Name","type":"customer","member":true,"id":"000000","links":[{"@type":"Link","rel":"self","uri":"https://sandboxapi.deere.com/platform/organizations/000000"},{"@type":"Link","rel":"machines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"wdtCapableMachines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines?capability=wdt"},{"@type":"Link","rel":"files","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"transferableFiles","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files?transferable=true"},{"@type":"Link","rel":"uploadFile","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"sendFileToMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fileTransfers"},{"@type":"Link","rel":"addMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"addField","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"assets","uri":"https://sandboxapi.deere.com/platform/organizations/000000/assets"},{"@type":"Link","rel":"fields","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"farms","uri":"https://sandboxapi.deere.com/platform/organizations/000000/farms"},{"@type":"Link","rel":"boundaries","uri":"https://sandboxapi.deere.com/platform/organizations/000000/boundaries"},{"@type":"Link","rel":"clients","uri":"https://sandboxapi.deere.com/platform/organizations/000000/clients"},{"@type":"Link","rel":"flags","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flags"},{"@type":"Link","rel":"flagCategory","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flagCategories"},{"@type":"Link","rel":"controllers","uri":"https://sandboxapi.deere.com/platform/organizations/000000/orgController"}]},{"@type":"Organization","name":"Organization
|
95
|
+
Name","type":"customer","member":true,"id":"000000","links":[{"@type":"Link","rel":"self","uri":"https://sandboxapi.deere.com/platform/organizations/000000"},{"@type":"Link","rel":"machines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"wdtCapableMachines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines?capability=wdt"},{"@type":"Link","rel":"files","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"transferableFiles","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files?transferable=true"},{"@type":"Link","rel":"uploadFile","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"sendFileToMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fileTransfers"},{"@type":"Link","rel":"addMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"addField","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"assets","uri":"https://sandboxapi.deere.com/platform/organizations/000000/assets"},{"@type":"Link","rel":"fields","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"farms","uri":"https://sandboxapi.deere.com/platform/organizations/000000/farms"},{"@type":"Link","rel":"boundaries","uri":"https://sandboxapi.deere.com/platform/organizations/000000/boundaries"},{"@type":"Link","rel":"clients","uri":"https://sandboxapi.deere.com/platform/organizations/000000/clients"},{"@type":"Link","rel":"flags","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flags"},{"@type":"Link","rel":"flagCategory","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flagCategories"},{"@type":"Link","rel":"controllers","uri":"https://sandboxapi.deere.com/platform/organizations/000000/orgController"}]},{"@type":"Organization","name":"Organization
|
96
|
+
Name","type":"customer","member":true,"id":"000000","links":[{"@type":"Link","rel":"self","uri":"https://sandboxapi.deere.com/platform/organizations/000000"},{"@type":"Link","rel":"machines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"wdtCapableMachines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines?capability=wdt"},{"@type":"Link","rel":"files","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"transferableFiles","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files?transferable=true"},{"@type":"Link","rel":"uploadFile","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"sendFileToMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fileTransfers"},{"@type":"Link","rel":"addMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"addField","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"assets","uri":"https://sandboxapi.deere.com/platform/organizations/000000/assets"},{"@type":"Link","rel":"fields","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"farms","uri":"https://sandboxapi.deere.com/platform/organizations/000000/farms"},{"@type":"Link","rel":"boundaries","uri":"https://sandboxapi.deere.com/platform/organizations/000000/boundaries"},{"@type":"Link","rel":"clients","uri":"https://sandboxapi.deere.com/platform/organizations/000000/clients"},{"@type":"Link","rel":"flags","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flags"},{"@type":"Link","rel":"flagCategory","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flagCategories"},{"@type":"Link","rel":"controllers","uri":"https://sandboxapi.deere.com/platform/organizations/000000/orgController"}]},{"@type":"Organization","name":"Organization
|
97
|
+
Name","type":"customer","member":true,"id":"000000","links":[{"@type":"Link","rel":"self","uri":"https://sandboxapi.deere.com/platform/organizations/000000"},{"@type":"Link","rel":"machines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"wdtCapableMachines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines?capability=wdt"},{"@type":"Link","rel":"files","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"transferableFiles","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files?transferable=true"},{"@type":"Link","rel":"uploadFile","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"sendFileToMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fileTransfers"},{"@type":"Link","rel":"addMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"addField","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"assets","uri":"https://sandboxapi.deere.com/platform/organizations/000000/assets"},{"@type":"Link","rel":"fields","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"farms","uri":"https://sandboxapi.deere.com/platform/organizations/000000/farms"},{"@type":"Link","rel":"boundaries","uri":"https://sandboxapi.deere.com/platform/organizations/000000/boundaries"},{"@type":"Link","rel":"clients","uri":"https://sandboxapi.deere.com/platform/organizations/000000/clients"},{"@type":"Link","rel":"flags","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flags"},{"@type":"Link","rel":"flagCategory","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flagCategories"},{"@type":"Link","rel":"controllers","uri":"https://sandboxapi.deere.com/platform/organizations/000000/orgController"}]}]}'
|
98
|
+
http_version:
|
99
|
+
recorded_at: Fri, 07 Feb 2020 05:45:55 GMT
|
100
|
+
- request:
|
101
|
+
method: get
|
102
|
+
uri: https://sandboxapi.deere.com/platform/organizations/000000/fields/00000000-0000-0000-0000-000000000000
|
103
|
+
body:
|
104
|
+
encoding: US-ASCII
|
105
|
+
string: ''
|
106
|
+
headers:
|
107
|
+
Accept:
|
108
|
+
- application/vnd.deere.axiom.v3+json
|
109
|
+
Accept-Encoding:
|
110
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
111
|
+
User-Agent:
|
112
|
+
- OAuth gem v0.5.4
|
113
|
+
Authorization:
|
114
|
+
- OAuth oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
|
115
|
+
oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
|
116
|
+
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581028214", oauth_token="00000000-0000-0000-0000-000000000000",
|
117
|
+
oauth_version="1.0"
|
118
|
+
response:
|
119
|
+
status:
|
120
|
+
code: 200
|
121
|
+
message: OK
|
122
|
+
headers:
|
123
|
+
Date:
|
124
|
+
- Fri, 07 Feb 2020 05:45:56 GMT
|
125
|
+
Content-Type:
|
126
|
+
- application/vnd.deere.axiom.v3+json;charset=UTF-8
|
127
|
+
X-Deere-Handling-Server:
|
128
|
+
- ip-10-214-45-50
|
129
|
+
X-Frame-Options:
|
130
|
+
- SAMEORIGIN
|
131
|
+
X-Deere-Elapsed-Ms:
|
132
|
+
- '56'
|
133
|
+
Cache-Control:
|
134
|
+
- no-store
|
135
|
+
Content-Language:
|
136
|
+
- en-US
|
137
|
+
Transfer-Encoding:
|
138
|
+
- chunked
|
139
|
+
body:
|
140
|
+
encoding: ASCII-8BIT
|
141
|
+
string: '{"@type":"Field","name":"Field Name","archived":false,"id":"00000000-0000-0000-0000-000000000000","links":[{"@type":"Link","rel":"self","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields/00000000-0000-0000-0000-000000000000"},{"@type":"Link","rel":"clients","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields/00000000-0000-0000-0000-000000000000/clients"},{"@type":"Link","rel":"farms","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields/00000000-0000-0000-0000-000000000000/farms"},{"@type":"Link","rel":"owningOrganization","uri":"https://sandboxapi.deere.com/platform/organizations/000000"},{"@type":"Link","rel":"boundaries","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields/00000000-0000-0000-0000-000000000000/boundaries"},{"@type":"Link","rel":"simplifiedBoundaries","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields/00000000-0000-0000-0000-000000000000/boundaries?simple=true"},{"@type":"Link","rel":"addBoundary","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields/00000000-0000-0000-0000-000000000000/boundaries"},{"@type":"Link","rel":"activeBoundary","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields/00000000-0000-0000-0000-000000000000/boundaries/00000000-0000-0000-0000-000000000000"},{"@type":"Link","rel":"deleteField","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields/00000000-0000-0000-0000-000000000000"},{"@type":"Link","rel":"editField","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields/00000000-0000-0000-0000-000000000000"}]}'
|
142
|
+
http_version:
|
143
|
+
recorded_at: Fri, 07 Feb 2020 05:45:56 GMT
|
144
|
+
recorded_with: VCR 5.0.0
|
@@ -23,11 +23,11 @@ http_interactions:
|
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
25
|
Date:
|
26
|
-
- Fri, 07 Feb 2020
|
26
|
+
- Fri, 07 Feb 2020 05:45:53 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/vnd.deere.axiom.v3+json;charset=UTF-8
|
29
29
|
X-Deere-Handling-Server:
|
30
|
-
- ip-10-214-
|
30
|
+
- ip-10-214-45-137
|
31
31
|
X-Frame-Options:
|
32
32
|
- SAMEORIGIN
|
33
33
|
X-Deere-Elapsed-Ms:
|
@@ -42,7 +42,7 @@ http_interactions:
|
|
42
42
|
encoding: ASCII-8BIT
|
43
43
|
string: '{"@type":"ApiCatalog","links":[{"@type":"Link","rel":"oauthRequestToken","uri":"https://sandboxapi.deere.com/platform/oauth/request_token"},{"@type":"Link","rel":"oauthAuthorizeRequestToken","uri":"https://my.deere.com/consentToUseOfData?oauth_token={token}"},{"@type":"Link","rel":"oauthAccessToken","uri":"https://sandboxapi.deere.com/platform/oauth/access_token"},{"@type":"Link","rel":"agencies","uri":"https://sandboxapi.deere.com/platform/agencies"}]}'
|
44
44
|
http_version:
|
45
|
-
recorded_at: Fri, 07 Feb 2020
|
45
|
+
recorded_at: Fri, 07 Feb 2020 05:45:53 GMT
|
46
46
|
- request:
|
47
47
|
method: get
|
48
48
|
uri: https://sandboxapi.deere.com/platform/organizations
|
@@ -67,7 +67,7 @@ http_interactions:
|
|
67
67
|
message: OK
|
68
68
|
headers:
|
69
69
|
Date:
|
70
|
-
- Fri, 07 Feb 2020
|
70
|
+
- Fri, 07 Feb 2020 05:45:53 GMT
|
71
71
|
Content-Type:
|
72
72
|
- application/vnd.deere.axiom.v3+json;charset=UTF-8
|
73
73
|
X-Deere-Handling-Server:
|
@@ -75,7 +75,7 @@ http_interactions:
|
|
75
75
|
X-Frame-Options:
|
76
76
|
- SAMEORIGIN
|
77
77
|
X-Deere-Elapsed-Ms:
|
78
|
-
- '
|
78
|
+
- '24'
|
79
79
|
Cache-Control:
|
80
80
|
- no-store
|
81
81
|
Content-Language:
|
@@ -96,7 +96,7 @@ http_interactions:
|
|
96
96
|
Name","type":"customer","member":true,"id":"000000","links":[{"@type":"Link","rel":"self","uri":"https://sandboxapi.deere.com/platform/organizations/000000"},{"@type":"Link","rel":"machines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"wdtCapableMachines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines?capability=wdt"},{"@type":"Link","rel":"files","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"transferableFiles","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files?transferable=true"},{"@type":"Link","rel":"uploadFile","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"sendFileToMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fileTransfers"},{"@type":"Link","rel":"addMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"addField","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"assets","uri":"https://sandboxapi.deere.com/platform/organizations/000000/assets"},{"@type":"Link","rel":"fields","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"farms","uri":"https://sandboxapi.deere.com/platform/organizations/000000/farms"},{"@type":"Link","rel":"boundaries","uri":"https://sandboxapi.deere.com/platform/organizations/000000/boundaries"},{"@type":"Link","rel":"clients","uri":"https://sandboxapi.deere.com/platform/organizations/000000/clients"},{"@type":"Link","rel":"flags","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flags"},{"@type":"Link","rel":"flagCategory","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flagCategories"},{"@type":"Link","rel":"controllers","uri":"https://sandboxapi.deere.com/platform/organizations/000000/orgController"}]},{"@type":"Organization","name":"Organization
|
97
97
|
Name","type":"customer","member":true,"id":"000000","links":[{"@type":"Link","rel":"self","uri":"https://sandboxapi.deere.com/platform/organizations/000000"},{"@type":"Link","rel":"machines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"wdtCapableMachines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines?capability=wdt"},{"@type":"Link","rel":"files","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"transferableFiles","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files?transferable=true"},{"@type":"Link","rel":"uploadFile","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"sendFileToMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fileTransfers"},{"@type":"Link","rel":"addMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"addField","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"assets","uri":"https://sandboxapi.deere.com/platform/organizations/000000/assets"},{"@type":"Link","rel":"fields","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"farms","uri":"https://sandboxapi.deere.com/platform/organizations/000000/farms"},{"@type":"Link","rel":"boundaries","uri":"https://sandboxapi.deere.com/platform/organizations/000000/boundaries"},{"@type":"Link","rel":"clients","uri":"https://sandboxapi.deere.com/platform/organizations/000000/clients"},{"@type":"Link","rel":"flags","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flags"},{"@type":"Link","rel":"flagCategory","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flagCategories"},{"@type":"Link","rel":"controllers","uri":"https://sandboxapi.deere.com/platform/organizations/000000/orgController"}]}]}'
|
98
98
|
http_version:
|
99
|
-
recorded_at: Fri, 07 Feb 2020
|
99
|
+
recorded_at: Fri, 07 Feb 2020 05:45:54 GMT
|
100
100
|
- request:
|
101
101
|
method: get
|
102
102
|
uri: https://sandboxapi.deere.com/platform/organizations/000000/fields
|
@@ -121,15 +121,15 @@ http_interactions:
|
|
121
121
|
message: OK
|
122
122
|
headers:
|
123
123
|
Date:
|
124
|
-
- Fri, 07 Feb 2020
|
124
|
+
- Fri, 07 Feb 2020 05:45:54 GMT
|
125
125
|
Content-Type:
|
126
126
|
- application/vnd.deere.axiom.v3+json;charset=UTF-8
|
127
127
|
X-Deere-Handling-Server:
|
128
|
-
- ip-10-214-45-
|
128
|
+
- ip-10-214-45-143
|
129
129
|
X-Frame-Options:
|
130
130
|
- SAMEORIGIN
|
131
131
|
X-Deere-Elapsed-Ms:
|
132
|
-
- '
|
132
|
+
- '39'
|
133
133
|
Cache-Control:
|
134
134
|
- no-store
|
135
135
|
Content-Language:
|
@@ -142,5 +142,5 @@ http_interactions:
|
|
142
142
|
Name","archived":false,"id":"00000000-0000-0000-0000-000000000000","links":[{"@type":"Link","rel":"self","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields/00000000-0000-0000-0000-000000000000"},{"@type":"Link","rel":"clients","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields/00000000-0000-0000-0000-000000000000/clients"},{"@type":"Link","rel":"farms","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields/00000000-0000-0000-0000-000000000000/farms"},{"@type":"Link","rel":"owningOrganization","uri":"https://sandboxapi.deere.com/platform/organizations/000000"},{"@type":"Link","rel":"boundaries","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields/00000000-0000-0000-0000-000000000000/boundaries"},{"@type":"Link","rel":"simplifiedBoundaries","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields/00000000-0000-0000-0000-000000000000/boundaries?simple=true"},{"@type":"Link","rel":"addBoundary","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields/00000000-0000-0000-0000-000000000000/boundaries"},{"@type":"Link","rel":"deleteField","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields/00000000-0000-0000-0000-000000000000"},{"@type":"Link","rel":"editField","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields/00000000-0000-0000-0000-000000000000"}]},{"@type":"Field","name":"Field
|
143
143
|
Name","archived":false,"id":"00000000-0000-0000-0000-000000000000","links":[{"@type":"Link","rel":"self","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields/00000000-0000-0000-0000-000000000000"},{"@type":"Link","rel":"clients","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields/00000000-0000-0000-0000-000000000000/clients"},{"@type":"Link","rel":"farms","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields/00000000-0000-0000-0000-000000000000/farms"},{"@type":"Link","rel":"owningOrganization","uri":"https://sandboxapi.deere.com/platform/organizations/000000"},{"@type":"Link","rel":"boundaries","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields/00000000-0000-0000-0000-000000000000/boundaries"},{"@type":"Link","rel":"simplifiedBoundaries","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields/00000000-0000-0000-0000-000000000000/boundaries?simple=true"},{"@type":"Link","rel":"addBoundary","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields/00000000-0000-0000-0000-000000000000/boundaries"},{"@type":"Link","rel":"deleteField","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields/00000000-0000-0000-0000-000000000000"},{"@type":"Link","rel":"editField","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields/00000000-0000-0000-0000-000000000000"}]}]}'
|
144
144
|
http_version:
|
145
|
-
recorded_at: Fri, 07 Feb 2020
|
145
|
+
recorded_at: Fri, 07 Feb 2020 05:45:54 GMT
|
146
146
|
recorded_with: VCR 5.0.0
|
data/test/support/vcr_setup.rb
CHANGED
@@ -20,7 +20,7 @@ class VcrSetup
|
|
20
20
|
:catalog, :get_request_token, :get_access_token,
|
21
21
|
:get_contribution_products, :get_contribution_product,
|
22
22
|
:get_organizations, :get_organization,
|
23
|
-
:get_fields, :get_flags,
|
23
|
+
:get_fields, :get_field, :get_flags,
|
24
24
|
:post_assets, :get_assets, :get_asset,
|
25
25
|
:post_asset_locations, :get_asset_locations,
|
26
26
|
:delete_asset
|
@@ -213,6 +213,10 @@ class VcrSetup
|
|
213
213
|
@temporary_field = find_organization(ENV['ORGANIZATION_ID']).fields.all.first
|
214
214
|
end
|
215
215
|
|
216
|
+
def get_field
|
217
|
+
find_organization(ENV['ORGANIZATION_ID']).fields.find(@temporary_field.id)
|
218
|
+
end
|
219
|
+
|
216
220
|
def get_flags
|
217
221
|
@temporary_field.flags.all
|
218
222
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: my_john_deere_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jaime Bellmyer
|
@@ -140,6 +140,7 @@ files:
|
|
140
140
|
- lib/my_john_deere_api/request/individual/asset.rb
|
141
141
|
- lib/my_john_deere_api/request/individual/base.rb
|
142
142
|
- lib/my_john_deere_api/request/individual/contribution_product.rb
|
143
|
+
- lib/my_john_deere_api/request/individual/field.rb
|
143
144
|
- lib/my_john_deere_api/request/individual/organization.rb
|
144
145
|
- lib/my_john_deere_api/version.rb
|
145
146
|
- test/lib/my_john_deere_api/authorize_test.rb
|
@@ -177,6 +178,7 @@ files:
|
|
177
178
|
- test/lib/my_john_deere_api/request/individual/asset_test.rb
|
178
179
|
- test/lib/my_john_deere_api/request/individual/base_test.rb
|
179
180
|
- test/lib/my_john_deere_api/request/individual/contribution_product_test.rb
|
181
|
+
- test/lib/my_john_deere_api/request/individual/field_test.rb
|
180
182
|
- test/lib/my_john_deere_api/request/individual/organization_test.rb
|
181
183
|
- test/lib/my_john_deere_api/request/individual_test.rb
|
182
184
|
- test/lib/my_john_deere_api/request_test.rb
|
@@ -191,6 +193,7 @@ files:
|
|
191
193
|
- test/support/vcr/get_assets.yml
|
192
194
|
- test/support/vcr/get_contribution_product.yml
|
193
195
|
- test/support/vcr/get_contribution_products.yml
|
196
|
+
- test/support/vcr/get_field.yml
|
194
197
|
- test/support/vcr/get_fields.yml
|
195
198
|
- test/support/vcr/get_flags.yml
|
196
199
|
- test/support/vcr/get_organization.yml
|