Deep Trekker BRIDGE API - v1.0.3
    Preparing search index...

    Enumeration TransferMethodType

    The different kinds of payload requests that can be sent and received.

    Index

    Enumeration Members

    Enumeration Members

    Delete: "DELETE"

    A request by the device server to remove data on the client.

    Feature Description
    HTTP Method Like POST/PUT
    Idempotent
    {
    "apiVersion": "1.0.0",
    "method": "DELETE",
    "payload": {
    "devices": {
    "001A2B3C4D5E": {} //Delete the reference to this device with this mac address.
    }
    }
    }
    Error: "ERROR"

    A response sent to communicate errors.

    Feature Description
    HTTP Response Like 4xx, 5xx errors. See ErrorCodes.
    Idempotent
    {
    "apiVersion": "1.0.0",
    "method": "ERROR",
    "error": {
    "code": 400,
    "message": "Invalid data or payload is malformed."
    },
    "payload": {}
    }
    }
    Get: "GET"

    Used to request a payload response to be sent by the receiving end.

    Feature Description
    HTTP Method Like GET
    Idempotent
    {
    "apiVersion": "1.0.0",
    "method": "GET",
    "payload": {}
    }
    Set: "SET"

    A request by a client to set data on the device server.

    Feature Description
    HTTP Method Like POST/PUT
    Idempotent
    
    
    Update: "UPDATE"

    A request by the device server to update data on the client.

    Feature Description
    HTTP Method Like POST/PUT
    Idempotent
    {
    "apiVersion": "1.0.0",
    "method": "UPDATE",
    "payload": {
    "devices": {
    "001A2B3C4D5E": {
    "model": 13,
    "auxLight": {
    "intensity": 100
    }
    }
    }
    }
    }