git.ucc.asn.au
/
tpg
/
opendispense2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed bad coke status (slots not erroring if machine is unresponsive)
[tpg/opendispense2.git]
/
notes
/
proto.txt
diff --git
a/notes/proto.txt
b/notes/proto.txt
index
dc11783
..
d48031e
100644
(file)
--- a/
notes/proto.txt
+++ b/
notes/proto.txt
@@
-74,15
+74,15
@@
s 200 Add OK\n or 402 No balance\n or 403 Not Coke\n or 404 Bad User\n
--- Get Item list ---
c ENUM_ITEMS\n
s 201 Items <count>\n
--- Get Item list ---
c ENUM_ITEMS\n
s 201 Items <count>\n
-s
202 Item <item_id> <price> <description>\n
+s
>> Response to ITEM_INFO
...
s 200 List End\n
--- Get Item Information ---
c ITEM_INFO <item_id>\n
...
s 200 List End\n
--- Get Item Information ---
c ITEM_INFO <item_id>\n
-s 202 Item <item_id> <price> <description>\n
-
+s 202 Item <item_id> <
status> <
price> <description>\n
+<status> "avail", "sold", or "error"
--- Get Users' Balances ---
--- Get Users' Balances ---
-c ENUM_USERS[ min
:<balance>][ max:<balance>][ flags:<flagset>][ lastseen
:<unix_timestamp>][ sort:<field>[-desc]]\n
+c ENUM_USERS[ min
_balance:<balance>][ max_balance:<balance>][ flags:<flagset>][ last_seen_before:<unix_timestamp>][ last_seen_after
:<unix_timestamp>][ sort:<field>[-desc]]\n
s 201 Users <count>\n
s 202 User <username> <balance> <flags>\n
...
s 201 Users <count>\n
s 202 User <username> <balance> <flags>\n
...
UCC
git Repository :: git.ucc.asn.au