|
|
| validate (self, attrs) |
| |
|
| create (self, validated_data) |
| |
|
|
| device_id = CharField(label='Scanner ID') |
| |
|
| tag_id = CharField(required=False, label='Tag ID') |
| |
|
| card_id = CharField(required=False, source='tag_id', label='Tag ID') |
| |
| list | examples |
| |
◆ examples
| list midas.api.RegisterScanRequestSerializer.examples |
|
static |
Initial value:= [
OpenApiExample(
'Registration',
value={
'state': 'register',
'owner_name': 'John Doe',
'hours_day': 42,
'hours_week': 420,
},
),
OpenApiExample(
'Check-in',
value={
'state': 'checkin',
'owner_name': 'John Doe',
'hours_day': 42,
'hours_week': 420,
},
),
OpenApiExample(
'Check-out',
value={
'state': 'checkout',
'owner_name': 'John Doe',
'hours_day': 42,
'hours_week': 420,
},
),
],
The documentation for this class was generated from the following file:
- door_tracker/midas/api.py