Skip to content

Commit 868db7b

Browse files
committed
Give methods clear names
1 parent 0d80358 commit 868db7b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

futuramaapi/routers/rest/characters/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async def get_character(
5858
response_model=Page[ListCharactersResponse],
5959
name="characters",
6060
)
61-
async def get_characters( # noqa: PLR0913
61+
async def list_characters( # noqa: PLR0913
6262
gender: Literal[
6363
"male",
6464
"!male",

futuramaapi/routers/rest/episodes/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async def get_episode(
5858
response_model=Page[ListEpisodesResponse],
5959
name="episodes",
6060
)
61-
async def get_episodes() -> Page[ListEpisodesResponse]:
61+
async def list_episodes() -> Page[ListEpisodesResponse]:
6262
"""Retrieve episodes.
6363
6464
This endpoint provides a paginated list of Futurama episodes, offering a comprehensive overview

futuramaapi/routers/rest/favorites/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ async def create_favorite_character(
6060
response_model=Page[ListFavoriteCharactersResponse],
6161
name="list_favorite_characters",
6262
)
63-
async def get_favorite_characters(
63+
async def list_favorite_characters(
6464
token: Annotated[str, Depends(oauth2_scheme)],
6565
) -> Page[ListFavoriteCharactersResponse]:
6666
"""

futuramaapi/routers/rest/seasons/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ async def get_season(
5656
response_model=Page[ListSeasonsResponse],
5757
name="seasons",
5858
)
59-
async def get_seasons() -> Page[ListSeasonsResponse]:
59+
async def list_seasons() -> Page[ListSeasonsResponse]:
6060
"""Retrieve specific seasons.
6161
6262
Access a comprehensive list of all Futurama seasons using this endpoint,

0 commit comments

Comments
 (0)