blob: 6e1e1996e60f3cfc663865be2df7cf86bdac5c86 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# 9P files served by the `shopfs` daemon
`carts/`
`<username>/`
`<sku>`
`/carts/<username>/<sku>` (rw)
Creating the file `<sku>` adds a single item of `<sku>` (stock keeping
unit) to user `<username>`'s cart. The initial quantity is 1 unit.
Read returns the number of items of that type in the user's cart, in
text form (`[1-9][0-9]*`). Writing a number to the file adds or
removes the specified number of items to/from the cart
(`[+-]?[1-9][0-9]*`). Removing the file removes (all units of) the
item from the cart.
TODO: checkout
|