1,077
edits
Line 25: | Line 25: | ||
==Network protocol== | ==Network protocol== | ||
===Get card permissions=== | ===Get card permissions=== | ||
'''/[nodeID]/ | '''GET /[nodeID]/card/''' | ||
i.e. | i.e. | ||
* /1/ | * POST /1/card/ | ||
04FF7922E40080 | |||
returns | returns | ||
Line 36: | Line 37: | ||
===Add card=== | ===Add card=== | ||
'''/[nodeID]/ | '''POST /[nodeID]/card/''' | ||
i.e. | i.e. | ||
* /1/ | * POST /1/card/ | ||
04FF7922E40080,04FF1234540080 | |||
returns | returns | ||
Line 46: | Line 48: | ||
===Check DB sync=== | ===Check DB sync=== | ||
'''/[nodeID]/ | '''GET /[nodeID]/sync/''' | ||
Returns first card in db | |||
i.e. | i.e. | ||
* /1/ | * GET /1/sync/ | ||
returns the first card in the DB i.e. | returns the first card in the DB i.e. | ||
* 04FF7922E40080 | * 04FF7922E40080 | ||
'''/[nodeID/ | '''GET /[nodeID/sync/[last received card]/''' | ||
i.e. | i.e. | ||
* /1/ | * GET /1/sync/04FF7922E40080/ | ||
returns either the next card in DB i.e. | returns either the next card in DB i.e. | ||
Line 67: | Line 69: | ||
===Report tool status=== | ===Report tool status=== | ||
'''/[nodeID]/status/ | '''PUT /[nodeID]/status/''' | ||
i.e. | |||
* PUT /1/status/ | |||
1 | |||
* 0 - out of service | * 0 - out of service | ||
Line 77: | Line 83: | ||
===Check tool status=== | ===Check tool status=== | ||
'''/[nodeID]/status | ''' GET /[nodeID]/status/''' | ||
Check if the ACNode has been remotely taken out of service, or put back in service | Check if the ACNode has been remotely taken out of service, or put back in service | ||
Line 86: | Line 92: | ||
===Tool usage (live)=== | ===Tool usage (live)=== | ||
'''/[nodeID]/tooluse | '''PUT /[nodeID]/tooluse/''' | ||
i.e. | |||
* PUT /1/tooluse/report | |||
1,04FF7922E40080 | |||
* 0 - tool use stopped | * 0 - tool use stopped | ||
Line 96: | Line 106: | ||
===Tool usage (usage time)=== | ===Tool usage (usage time)=== | ||
'''/[nodeID]/tooluse/ | '''POST /[nodeID]/tooluse/time/''' | ||
i.e. | |||
* POST /1/tooluse/time/ | |||
34000,04FF7922E40080 | |||
returns | returns | ||
Line 103: | Line 117: | ||
===Case alert=== | ===Case alert=== | ||
'''/[nodeID]/case | '''PUT /[nodeID]/case/''' | ||
i.e. | |||
* PUT /1/case/ | |||
1 | |||
Alert if the ACNode case is opened | Alert if the ACNode case is opened |
edits