Skip to content

Commit 280299b

Browse files
committed
feat(cayenne): retrieve single registry by id
1 parent a234185 commit 280299b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/Services/cayenne.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,15 @@ class Cayenne extends Request {
345345
return this.send('PUT', path, { payload });
346346
}
347347

348+
/**
349+
* Retrieves a registry item by its id.
350+
* @param {string} registryId
351+
*/
352+
getRegistry(registryId) {
353+
const path = `/things/registry/${registryId}`;
354+
return this.send('GET', path);
355+
}
356+
348357
/**
349358
* Gets a device properties by hardware id
350359
* @param {string} hardwareId Device's unique hardware id

0 commit comments

Comments
 (0)