Skip to content

No websocket equivalent of DELETE /things/<thing>/actions/<action>/<id> #86

Open

Description

@mrstegeman

In the gateway, we're now using removeAction in add-ons when DELETE is called, so maybe we should create a similar websocket request.

Activity

  1. benfrancis commented on Apr 3, 2018

    @benfrancis
    Member

    A cancelAction message type perhaps?

    We need a way to specify which action to cancel, which I'd suggest should be done using the action request URL, but I'm not sure of the exact syntax. Maybe something like...

    {
      "messageType": "cancelAction",
      "data": {
        "grab": {
          "href": "/actions/grab/123e4567-e89b-12d3-a456-426655"
        }
      }
    }
    
  2. mrstegeman commented on Apr 3, 2018

    @mrstegeman
    ContributorAuthor

    An href attribute should be sufficient. Do you like cancelAction better than removeAction? It's actually doing both on the server, so I could go either way.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions