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