crossbar.webservice.rest

Classes

RouterWebServiceRestCaller

HTTP/REST-to-WAMP Caller Web service (part of REST-bridge).

RouterWebServiceRestPublisher

HTTP/REST-to-WAMP Publisher Web service (part of REST-bridge).

RouterWebServiceWebhook

HTTP/POST Webhook service (part of REST-bridge).

Module Contents

class RouterWebServiceRestCaller(transport, path, config=None, resource=None)[source]

Bases: crossbar.webservice.base.RouterWebService

HTTP/REST-to-WAMP Caller Web service (part of REST-bridge).

static create(transport, path: str, config: Dict[str, Any])[source]

Create a new HTTP/REST-to-WAMP Caller Web service (part of REST-bridge).

Parameters:
  • transport – Web transport on which to add the web service.

  • path – HTTP path on which to add the web service.

  • config – Web service configuration.

Returns:

Web service instance.

class RouterWebServiceRestPublisher(transport, path, config=None, resource=None)[source]

Bases: crossbar.webservice.base.RouterWebService

HTTP/REST-to-WAMP Publisher Web service (part of REST-bridge).

static create(transport, path: str, config: Dict[str, Any])[source]

Create a new HTTP/REST-to-WAMP Publisher Web service (part of REST-bridge).

Parameters:
  • transport – Web transport on which to add the web service.

  • path – HTTP path on which to add the web service.

  • config – Web service configuration.

Returns:

Web service instance.

class RouterWebServiceWebhook(transport, path, config=None, resource=None)[source]

Bases: crossbar.webservice.base.RouterWebService

HTTP/POST Webhook service (part of REST-bridge).

static create(transport, path: str, config: Dict[str, Any])[source]

Create a new HTTP/POST Webhook service (part of REST-bridge).

Parameters:
  • transport – Web transport on which to add the web service.

  • path – HTTP path on which to add the web service.

  • config – Web service configuration.

Returns:

Web service instance.