feat: add API endpoint to get devices list
This commit is contained in:
parent
0cb5706ed7
commit
f4b7daabd3
9 changed files with 66 additions and 1 deletions
|
|
@ -1,7 +1,14 @@
|
|||
from abc import ABC, abstractmethod
|
||||
|
||||
from domain.entities import Device
|
||||
|
||||
class DeviceRepository(ABC):
|
||||
@abstractmethod
|
||||
def get_or_create_device_id(self, dev_eui: str) -> str:
|
||||
"""Retourne le device_id, crée le device s'il est inconnu"""
|
||||
...
|
||||
|
||||
@abstractmethod
|
||||
def get_all(self) -> list[Device]:
|
||||
"""Retourne l'ensemble des devices existants"""
|
||||
...
|
||||
Loading…
Add table
Add a link
Reference in a new issue