21. Let’s manage subscriptions to FME Server topics using a
web service
Subscription Management
Example of Implementing a REST API
22. Entities: devices, email addresses, WebSocket streams
Topics: places to send messages to and read messages
from
Subscriptions: agreement for an entity to receive
messages from a topic
Subscription Management
Example of Implementing a REST API
23. Let’s make it RESTful by using the URL pattern to specify
the resource to act on
Subscription Management
Example of Implementing a REST API
24. The Subscription Manager REST API:
subscription_manager.fmw/entity/<id>/add?type=<email|apns|gcm|websockets>
subscription_manager.fmw/subscription/<topic_name>/<id>/add
subscription_manager.fmw/subscription/<topic_name>/<id>/add?confirm_token=****
subscription_manager.fmw/subscription/<topic_name>/<id>/delete
subscription_manager.fmw/subscription/<topic_name>/<id>/delete?confirm_token=**
Subscription Management
Example of Implementing a REST API
25. Let’s return JSON like the cool kids
Subscription Management
Example of Implementing a REST API
Junaio provides an interface to configure channels. You have to provide a URL to get the data fromhttps://www.dropbox.com/s/fok3cg3hu7fadyj/Screenshot%202014-03-05%2015.45.46.png
Demo:Opengmail and login to fmeserver@gmail.compassword:freethefmeOpen the page that corresponds to your tour group:subscription_manager_east.htmsubscription_manager_west.htmsubscription_manager_best.htmRun through the links.FME Server REST API credentials: Username: aaron Password: spartan