Implemtent SolarUser-compatible API for Instruction handling

XMLWordPrintable

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Major
    • Component/s: Setup
    • None

      We'd like to support issuing instructions directly to SolarNode, so that external network access is not necessary to send instructions to a node from a system on the same local network as the node.

      The complete SolarUser /instr/* API set must be implemented:

      1. GET /instr
      2. POST /instr/add
      3. POST /instr/add/{topic}
      4. GET /instr/view
      5. GET /instr/viewActive
      6. GET /instr/viewPending
      7. POST /instr/updateState

      The nodeId in all API methods can be assumed to be the node's own ID, and must be strictly enforced.

      It is not clear how authentication should be handled. The node will most likely not have a TLS enabled HTTP server, so making use of the SN Authentication Scheme V2 would be ideal. However the node will not have access to the security tokens in SolarNetwork, so a way of configuring and managing node-local security tokens would be necessary.

        1. node-sectoks-create@2x.png
          58 kB
          Matt Magoffin
        2. node-sectoks-created@2x.png
          127 kB
          Matt Magoffin
        3. node-sectoks-update@2x.png
          80 kB
          Matt Magoffin

            Assignee:
            Matt Magoffin
            Reporter:
            Matt Magoffin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: