GET authorized cards for each MAC
This commit is contained in:
@@ -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/`
|
||||
|
||||
Reference in New Issue
Block a user