We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5197c0 commit ab6d4cfCopy full SHA for ab6d4cf
2 files changed
dist/mobilerider-client.js
@@ -1697,11 +1697,17 @@ var Query = (function () {
1697
return true;
1698
};
1699
1700
- Resource.prototype.get = function (id) {
+ Resource.prototype.get = function (id, data) {
1701
// Returns a promise that when resolved it contains a Javascript object representing the object returned by the API
1702
- var self = this;
+ var self = this, args;
1703
id = self.validateId(id);
1704
- return self.client.request({ url: self.getUrl(id), method: 'GET' });
+ args = { url: self.getUrl(id), method: 'GET' };
1705
+
1706
+ if (data && Object.getOwnPropertyNames(data).length) {
1707
+ args.data = data;
1708
+ }
1709
1710
+ return self.client.request(args);
1711
1712
1713
Resource.prototype.create = function (attributes) {
0 commit comments