-
Notifications
You must be signed in to change notification settings - Fork 295
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
Backtrack should be a GET param #36
Comments
Hi this is not a REST service. |
I know this is not a rest service but it would be easy to comply to rest standards, so you could use it as a rest service. To connect to more than one channel a GET on the resource /sub with query params could be used:
|
+1 on this - it'd be great to customise where the backtrack parameter can be passed in from, perhaps using a |
Hi, I'm checking what we can do about that, but I had some doubts.
You really think this is the best approach? I thought in some other options
In any case the "channel" and "backtrack" parameters names will be configurable. What do you think? |
To be more REST compatible the backtrack option should be a GET parameter instead of munching it together with the resource aka channel_id.
The resource you work on is the channel_id. When mixing in the backtrack param you are accessing another resource which by definition should have nothing in common with the channel you want information on. In other words $channel_id.b5 is another resource (simply with another name like 6.b5) and thus should not return the stored message of the channel you actually want to access.
A desired and valid call to get the last 5 message of the resource/channel 6 would be:
The text was updated successfully, but these errors were encountered: