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
Item statuses
[tpg/opendispense2.git]
/
notes
/
proto.txt
diff --git
a/notes/proto.txt
b/notes/proto.txt
index
df3f9cc
..
d48031e
100644
(file)
--- a/
notes/proto.txt
+++ b/
notes/proto.txt
@@
-74,13
+74,13
@@
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 ---
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
--- Get Users' Balances ---
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
UCC
git Repository :: git.ucc.asn.au