Source code for divera.api.v2.news
"""
Wrap all calls to the divera api as defined by https://api.divera247.com/?urls.primaryName=api%2Fv2%2Fevent
"""
from divera.api.v2 import models as _models
[docs]class Get(GetAll, _models.Get):
@property
def path(self):
return f'/api/v2/news/{self.obj.__getattribute__(self.obj.sorting_key)}'
[docs]class Read(_models.Read):
@property
def path(self):
return f'/api/v2/news/read/{self.obj.__getattribute__(self.obj.sorting_key)}'