my_john_deere_api 0.15.3 → 0.15.4
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/README.md +4 -5
- data/lib/my_john_deere_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fb000ae1403d9597e7880a972c46f5e2a9f9ca9326107d11e0ea1da2489a6ec6
|
|
4
|
+
data.tar.gz: e0f861b52d8a82465fd12eafcf8071779d5a72c05fc29d33ae46e8a1599b22cb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 199148536c1277155460eea6b33f197496a9d88be2413beeace1d4ae3eedc4c12d8a5bd7c837e50749a03ac0f0df0243d97641415fadf89c0d5acef63ce87698
|
|
7
|
+
data.tar.gz: 0b3273dc344198c2e05ca41257b623a6e919c84e219e162a35c3a9a6368fc8ae61f1ecfa828708fad25ec96e7d8a8a95085221331d9169ea35e6eafac7f19379
|
data/README.md
CHANGED
|
@@ -133,12 +133,12 @@ GET requests require only a resource path.
|
|
|
133
133
|
]
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
This won't provide any client goodies like pagination or validation.
|
|
136
|
+
This won't provide any client goodies like pagination or validation, but it does parse the returned JSON.
|
|
137
137
|
|
|
138
138
|
|
|
139
139
|
#### POST
|
|
140
140
|
|
|
141
|
-
POST requests require a resource path, and a hash for the request body. The client camelize the keys, and convert to JSON.
|
|
141
|
+
POST requests require a resource path, and a hash for the request body. The client will camelize the keys, and convert to JSON.
|
|
142
142
|
|
|
143
143
|
client.post(
|
|
144
144
|
'/organizations/123123/assets',
|
|
@@ -157,13 +157,12 @@ POST requests require a resource path, and a hash for the request body. The clie
|
|
|
157
157
|
}
|
|
158
158
|
)
|
|
159
159
|
|
|
160
|
-
|
|
161
|
-
If a body is provided, it will be JSON-parsed and returned instead of the full response.
|
|
160
|
+
John Deere's standard response is a 201 HTTP status code, with the message "Created". This method returns the full Net::HTTP response.
|
|
162
161
|
|
|
163
162
|
|
|
164
163
|
#### PUT
|
|
165
164
|
|
|
166
|
-
PUT requests require a resource path, and a hash for the request body. The client camelize the keys, and convert to JSON.
|
|
165
|
+
PUT requests require a resource path, and a hash for the request body. The client will camelize the keys, and convert to JSON.
|
|
167
166
|
|
|
168
167
|
client.put(
|
|
169
168
|
'/assets/123123',
|