forwarder-service
Creates forwarders and device subscriptions for forwarders
Last updated 4 years ago by octoblu .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install forwarder-service 
SYNC missed versions from official npm registry.

#Forwarder Subscription Service

This micro-service registers forwarder devices and can setup device message subscriptions on behalf of the device owner.

What are Forwarders?

Forwarders are devices that receive messages intended for other devices and forward the messages received somewhere else - like a datastore or another messaging platform. They allow you to spy on messages sent, received or broadcast to or from your devices to another endpoint.

Forwarder Subscription API

All APIs should have the following fields in the header of the HTTP request

meshblu_auth_uuid
meshblu_auth_token

The Uuid and Token should belong to the user or device that will have subscriptions created on their behalf

Get Forwarder Types /types GET

Get the list of forwarder types.

Get all forwarders /forwarders GET

Returns the list of forwarders that the authorized user owns

response 200 with the list of forwarders

Get Forwarder Subscriptions /forwarders/:uuid/subscriptions

Parameters:

uuid - The forwarder meshblu uuid

Response:

Returns the list of devices that the forwarder is subscribed to

Add Forwarder Subscription /forwarders/:forwarderUuid/subscriptions/:emitterUuid/:type POST

Parameters:

forwarderUuid - The meshblu uuid of the forwarder device emitterUuid - The meshblu uuid of the device we would like the forwarder to subscribe to type - The type of message subscription. Valid types are [message.sent, message.received, broadcast.sent]

Response:

204 - The subscription was sucessfully created if the owner can update the forwarder and emitter devices 403 - The authorized owner cannot update either the forwarder or emitter device.

Remove Forwarder subscriptions /forwarders/:forwarderUuid/subscriptions/:emitterUuid/:type DELETE

forwarderUuid - The meshblu uuid of the forwarder device emitterUuid - The meshblu uuid of the device we would like the forwarder to subscribe to type - The type of message subscription. Valid types are [message.sent, message.received, broadcast.sent]

Response:

204 - The subscription was sucessfully removed if the owner can update the forwarder and emitter devices 403 - The authorized owner cannot update either the forwarder or emitter device.

Current Tags

  • 1.0.0                                ...           latest (4 years ago)

16 Versions

  • 1.0.0                                ...           4 years ago
  • 0.3.3                                ...           4 years ago
  • 0.3.2                                ...           4 years ago
  • 0.3.1                                ...           4 years ago
  • 0.3.0                                ...           4 years ago
  • 0.2.29                                ...           4 years ago
  • 0.2.27                                ...           4 years ago
  • 0.2.26                                ...           4 years ago
  • 0.2.25                                ...           4 years ago
  • 0.2.20                                ...           4 years ago
  • 0.2.19                                ...           4 years ago
  • 0.2.18                                ...           4 years ago
  • 0.2.17                                ...           4 years ago
  • 0.2.16                                ...           4 years ago
  • 0.2.15                                ...           4 years ago
  • 0.2.14                                ...           4 years ago
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dependencies (22)
Dev Dependencies (12)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |