Skip to content

Backtrack should be a GET param #36

@omares

Description

@omares

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:

/sub/6?backtrack=5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions