Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Situation publish/subscriber webhook #2

Open
pereirazc opened this issue Feb 4, 2017 · 0 comments
Open

Situation publish/subscriber webhook #2

pereirazc opened this issue Feb 4, 2017 · 0 comments

Comments

@pereirazc
Copy link
Contributor

We need a publish/subscribing feature for situations which fill these requirements:

  • A subscriber wants to know about any situation of any type;
  • A subscriber wants to know about any situation of a certain type;
  • A subscriber wants to know about any situation of any type involving an specific actor/participant;
  • A subscriber wants to know about any situation of a certain type involving an specific actor/participant;

PUT /subscribe

request
{
  ????
}

In case of success, the subscribing call should respond with a subscriptionId.

response
{
  "subscriptionId": "da39a3ee5e6b4b0"
}

DELETE /subscribe/:subscriptionId

Further, the subscriber could unsubscribe itself by sending a HTTP Delete with the same subscriptionId provided by the subscribe request.

For technical purposes:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant