You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://gitter.im/acm-uiuc/merch-development?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
5
4
6
-
Possible information sources:
5
+
6
+
This repository contains all of the code related to controlling the underlying merch hardware (the vending machine).
7
+
Merch runs an embedded webserver that can be accessed at merch.acm.illinois.edu.
8
+
9
+
## API
10
+
11
+
### Vend a location
12
+
To vend a list of items, POST a request to /vend.
13
+
The request is of the form
14
+
```json
15
+
{
16
+
"transaction_id": 1,
17
+
"items": ["A1", "B2", "C3"]
18
+
}
19
+
```
20
+
21
+
The machine will respond with
22
+
```json
23
+
{
24
+
"transaction_id": 1,
25
+
"items": [
26
+
{"location": "A1", "error": null},
27
+
{"location": "B2", "error": "some sort of error"},
28
+
{"location": "C3", "error": null},
29
+
30
+
]
31
+
}
32
+
```
33
+
34
+
The errors that can take place while vending are currently:
0 commit comments