Hacker News new | ask | show | jobs
by grisha 5073 days ago
You might want to offer pub/sub API, and it just can't be done with REST because of it's statelessness.
1 comments

You're not supposed to have session state - but the resources you are accessing are (of course) stateful. Why not set up your subscriptions explicitly as resources that can be manipulated through the API?