Signals

Signals for api app.

smarter.apps.api.signals.api_request_completed = <django.dispatch.dispatcher.Signal object>

Sent when an API request is completed.

Arguments::
  • sender: The sender of the signal.

  • instance: The instance making the request.

  • request: The HTTP request object.

  • response: The HTTP response object.

Example::
api_request_completed.send(sender=self.__class__, instance=self, request=request, response=response)
smarter.apps.api.signals.api_request_failed = <django.dispatch.dispatcher.Signal object>

Sent when an API request fails.

Arguments::
  • sender: The sender of the signal.

  • instance: The instance making the request.

  • request: The HTTP request object.

  • response: The HTTP response object.

Example::
api_request_failed.send(sender=self.__class__, instance=self, request=request, response=response)
smarter.apps.api.signals.api_request_initiated = <django.dispatch.dispatcher.Signal object>

Sent when an API request is initiated.

Arguments::
  • sender: The sender of the signal.

  • instance: The instance making the request.

  • request: The HTTP request object.

Example::
api_request_initiated.send(sender=self.__class__, instance=self, request=self.request)