Coverage for src/kwai/api/v1/club/schemas/resources.py: 100%
10 statements
« prev ^ index » next coverage.py v7.6.10, created at 2024-01-01 00:00 +0000
« prev ^ index » next coverage.py v7.6.10, created at 2024-01-01 00:00 +0000
1"""Module that defines all JSON:API resource identifiers for the club API."""
3from typing import Literal
5from kwai.core.json_api import ResourceIdentifier
8class MemberResourceIdentifier(ResourceIdentifier):
9 """A JSON:API resource identifier for a member."""
11 type: Literal["members"] = "members"
14class PersonResourceIdentifier(ResourceIdentifier):
15 """A JSON:API resource identifier for a person."""
17 type: Literal["persons"] = "persons"
20class ContactResourceIdentifier(ResourceIdentifier):
21 """A JSON:API resource identifier for a contact."""
23 type: Literal["contacts"] = "contacts"
26class UploadResourceIdentifier(ResourceIdentifier):
27 """A JSON:API resource identifier for a upload."""
29 type: Literal["uploads"] = "uploads"