GET authorized cards for each MAC

This commit is contained in:
2018-11-10 21:40:09 -07:00
parent 790725c29e
commit bd44438277
3 changed files with 26 additions and 0 deletions
+18
View File
@@ -124,6 +124,24 @@ Example response:
}
```
#### GET `/cards/[MAC]/`
Returns all card numbers authorized to use a machine based on MAC address.
Card numbers are on one line separated by a comma.
Example request:
```
curl http://tools-auth.protospace.ca/cards/2C3AE843A15F/
```
Example response:
```
"00000B8567,00000A4123,00000C9999"
```
### For authenticated users
#### GET `/user/`