INNER CODE UNIT · Python
AuthorInterface
phalt/django-api-domains · example_domain/interfaces.py:17
class AuthorInterface:
@staticmethod
def get_author(*, id: uuid.UUID) -> Dict:
return AuthorAPI.get(id=id)
@staticmethod
def update_author_name(
*,
author_name: Str,
author_id: uuid.UUID,
) -> None:
AuthorAPI.update_author_name(
id=author_id,
name=author_name,
)