43
edits
Oskarpearson (talk | contribs) (Integrated protocol changes, and also put in info about whether items have been done or not.) |
|||
Line 40: | Line 40: | ||
* 1 - user | * 1 - user | ||
* 2 - maintainer | * 2 - maintainer | ||
''STATUS: Done'' | |||
===Add card=== | ===Add card=== | ||
'''POST /[nodeID]/card/''' | '''POST /[nodeID]/grant-to-card/[card_being_granted_to]/by/[card_with_admin_permissions]''' | ||
i.e. | i.e. | ||
* POST /1/card/ | * POST /1/grant-to-card/04FF7922E40080/by/04FF792AAAAAA | ||
returns | returns | ||
* 0 - card not added | * 0 - card not added | ||
* 1 - card added | * 1 - card added | ||
''STATUS: Done - but not yet tested'' | |||
===Check DB sync=== | ===Check DB sync=== | ||
Line 75: | Line 75: | ||
or when out of cards returns | or when out of cards returns | ||
* END | * END | ||
''STATUS: Done - tested on UI, but not with ACNode'' | |||
===Report tool status=== | ===Report tool status=== | ||
''' | '''POST /[nodeID]/status/[new_status]''' | ||
i.e. | i.e. | ||
* PUT /1/status/ | * PUT /1/status/0 | ||
* 0 - out of service | * 0 - out of service | ||
Line 89: | Line 91: | ||
* 0 - not saved | * 0 - not saved | ||
* 1 - saved | * 1 - saved | ||
''STATUS: Not yet done'' | |||
===Check tool status=== | ===Check tool status=== | ||
''' GET /[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 98: | Line 102: | ||
* 0 - out of service | * 0 - out of service | ||
* 1 - in service | * 1 - in service | ||
''STATUS: Done - tested on UI, but not with ACNode'' | |||
===Tool usage (live)=== | ===Tool usage (live)=== | ||
''' | '''POST /[nodeID]/tooluse/[status]/by/[cardWithAdminPermissions]''' | ||
i.e. | i.e. | ||
* | * POST /1/tooluse/0/04FF7922E40080 | ||
Status is one of: | |||
* 0 - tool use stopped | * 0 - tool use stopped | ||
* 1 - tool in use | * 1 - tool in use | ||
Line 112: | Line 118: | ||
* 0 - not saved | * 0 - not saved | ||
* 1 - saved | * 1 - saved | ||
''STATUS: Not yet done'' | |||
===Tool usage (usage time)=== | ===Tool usage (usage time)=== | ||
'''POST /[nodeID]/tooluse/time/''' | '''POST /[nodeID]/tooluse/time/for/[cardID]/[timeUsed]''' | ||
i.e. | i.e. | ||
* POST /1/tooluse/time/ | * POST /1/tooluse/time/for/04FF7922E40080/34000 | ||
34000 | |||
returns | returns | ||
* 0 - not saved | * 0 - not saved | ||
* 1 - saved | * 1 - saved | ||
''STATUS: Not yet done'' | |||
===Case alert=== | ===Case alert=== | ||
''' | '''POST /[nodeID]/case/change/[new_status]''' | ||
i.e. | i.e. | ||
* PUT /1/case/ | * PUT /1/case/1 | ||
1 | |||
Alert if the ACNode case is opened | Alert if the ACNode case is opened | ||
Line 138: | Line 146: | ||
* 0 - not saved | * 0 - not saved | ||
* 1 - saved | * 1 - saved | ||
''STATUS: Not yet done'' |