This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
devicehub-teal/ereuse_devicehub/resources/device/views.py
Xavier Bustamante Talavera 8723b379b0 Update to functional endpoint
2018-04-27 19:16:43 +02:00

9 lines
227 B
Python

from ereuse_devicehub.resources.device.models import Device
from teal.resource import View
class DeviceView(View):
def one(self, id: int):
"""Gets one device."""
return Device.query.filter_by(id=id).one()