diff --git a/openapi.yml b/openapi.yml index 71bbc320c..c570943d9 100644 --- a/openapi.yml +++ b/openapi.yml @@ -95,6 +95,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - berries security: @@ -127,6 +133,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - berries security: @@ -186,6 +198,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - berries security: @@ -275,6 +293,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - pokemon security: @@ -334,6 +358,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - contests security: @@ -392,6 +422,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - contests security: @@ -453,6 +489,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - pokemon security: @@ -513,6 +555,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - encounters security: @@ -545,6 +593,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - encounters security: @@ -629,6 +683,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - encounters security: @@ -688,6 +748,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - evolution security: @@ -748,6 +814,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - evolution security: @@ -809,6 +881,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - pokemon security: @@ -871,6 +949,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - games security: @@ -932,6 +1016,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - pokemon security: @@ -992,6 +1082,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - items security: @@ -1024,6 +1120,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - items security: @@ -1082,6 +1184,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - items security: @@ -1140,6 +1248,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - items security: @@ -1197,6 +1311,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - items security: @@ -1280,6 +1400,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - utility security: @@ -1337,6 +1463,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - location security: @@ -1369,6 +1501,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - location security: @@ -1454,6 +1592,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - machines security: @@ -1515,6 +1659,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - moves security: @@ -1548,6 +1698,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - moves security: @@ -1607,6 +1763,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - moves security: @@ -1664,6 +1826,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - moves security: @@ -1720,6 +1888,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - pokemon security: @@ -1776,6 +1950,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - moves security: @@ -1833,6 +2013,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - moves security: @@ -1919,6 +2105,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - pokemon security: @@ -1977,6 +2169,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - location security: @@ -2037,6 +2235,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - pokemon security: @@ -2100,6 +2304,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - games security: @@ -2165,6 +2375,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - pokemon security: @@ -2199,6 +2415,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - pokemon security: @@ -2261,6 +2483,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - pokemon security: @@ -2321,6 +2549,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - pokemon security: @@ -2378,6 +2612,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - pokemon security: @@ -2437,6 +2677,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - pokemon security: @@ -2645,6 +2891,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - location security: @@ -2705,6 +2957,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - pokemon security: @@ -2764,6 +3022,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - contests security: @@ -2824,6 +3088,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - pokemon security: @@ -2883,6 +3153,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - games security: @@ -2914,6 +3190,12 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: q + schema: + type: string + description: "> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\n\ + Case-insensitive query applied on the `name` property. " tags: - games security: diff --git a/pokemon_v2/api.py b/pokemon_v2/api.py index 0fcc2cda4..7a7a73040 100644 --- a/pokemon_v2/api.py +++ b/pokemon_v2/api.py @@ -89,6 +89,14 @@ class PokeapiCommonViewset( required=True, ) +q_query_string_parameter = OpenApiParameter( + name="q", + description="> Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2)\nCase-insensitive query applied on the `name` property. ", + location=OpenApiParameter.QUERY, + type=OpenApiTypes.STR, +) + + @extend_schema( description="Abilities provide passive effects for Pokémon in battle or in the overworld. Pokémon have multiple possible abilities but can have only one ability at a time. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Ability) for greater detail.", tags=["pokemon"], @@ -109,9 +117,7 @@ def retrieve(self, request, pk=None): summary="Get a berry", ) @extend_schema_view( - list=extend_schema( - summary="List berries", - ) + list=extend_schema(summary="List berries", parameters=[q_query_string_parameter]) ) class BerryResource(PokeapiCommonViewset): queryset = Berry.objects.all() @@ -130,7 +136,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List berry firmness", + summary="List berry firmness", parameters=[q_query_string_parameter] ) ) class BerryFirmnessResource(PokeapiCommonViewset): @@ -150,7 +156,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List berry flavors", + summary="List berry flavors", parameters=[q_query_string_parameter] ) ) class BerryFlavorResource(PokeapiCommonViewset): @@ -170,7 +176,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List charecterictics", + summary="List charecterictics", parameters=[q_query_string_parameter] ) ) class CharacteristicResource(PokeapiCommonViewset): @@ -190,7 +196,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List contest effects", + summary="List contest effects", parameters=[q_query_string_parameter] ) ) class ContestEffectResource(PokeapiCommonViewset): @@ -210,7 +216,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List contest types", + summary="List contest types", parameters=[q_query_string_parameter] ) ) class ContestTypeResource(PokeapiCommonViewset): @@ -229,9 +235,7 @@ def retrieve(self, request, pk=None): tags=["pokemon"], ) @extend_schema_view( - list=extend_schema( - summary="List egg groups", - ) + list=extend_schema(summary="List egg groups", parameters=[q_query_string_parameter]) ) class EggGroupResource(PokeapiCommonViewset): queryset = EggGroup.objects.all() @@ -250,7 +254,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List encounter conditions", + summary="List encounter conditions", parameters=[q_query_string_parameter] ) ) class EncounterConditionResource(PokeapiCommonViewset): @@ -270,7 +274,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List encounter condition values", + summary="List encounter condition values", parameters=[q_query_string_parameter] ) ) class EncounterConditionValueResource(PokeapiCommonViewset): @@ -290,7 +294,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List encounter methods", + summary="List encounter methods", parameters=[q_query_string_parameter] ) ) class EncounterMethodResource(PokeapiCommonViewset): @@ -310,7 +314,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List evolution chains", + summary="List evolution chains", parameters=[q_query_string_parameter] ) ) class EvolutionChainResource(PokeapiCommonViewset): @@ -330,7 +334,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List evolution triggers", + summary="List evolution triggers", parameters=[q_query_string_parameter] ) ) class EvolutionTriggerResource(PokeapiCommonViewset): @@ -349,9 +353,7 @@ def retrieve(self, request, pk=None): tags=["games"], ) @extend_schema_view( - list=extend_schema( - summary="List genrations", - ) + list=extend_schema(summary="List genrations", parameters=[q_query_string_parameter]) ) class GenerationResource(PokeapiCommonViewset): queryset = Generation.objects.all() @@ -369,9 +371,7 @@ def retrieve(self, request, pk=None): tags=["pokemon"], ) @extend_schema_view( - list=extend_schema( - summary="List genders", - ) + list=extend_schema(summary="List genders", parameters=[q_query_string_parameter]) ) class GenderResource(PokeapiCommonViewset): queryset = Gender.objects.all() @@ -390,7 +390,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List growth rates", + summary="List growth rates", parameters=[q_query_string_parameter] ) ) class GrowthRateResource(PokeapiCommonViewset): @@ -409,9 +409,7 @@ def retrieve(self, request, pk=None): tags=["items"], ) @extend_schema_view( - list=extend_schema( - summary="List items", - ) + list=extend_schema(summary="List items", parameters=[q_query_string_parameter]) ) class ItemResource(PokeapiCommonViewset): queryset = Item.objects.all() @@ -430,7 +428,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List item categories", + summary="List item categories", parameters=[q_query_string_parameter] ) ) class ItemCategoryResource(PokeapiCommonViewset): @@ -450,7 +448,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List item attributes", + summary="List item attributes", parameters=[q_query_string_parameter] ) ) class ItemAttributeResource(PokeapiCommonViewset): @@ -470,7 +468,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List item fling effects", + summary="List item fling effects", parameters=[q_query_string_parameter] ) ) class ItemFlingEffectResource(PokeapiCommonViewset): @@ -490,7 +488,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List item pockets", + summary="List item pockets", parameters=[q_query_string_parameter] ) ) class ItemPocketResource(PokeapiCommonViewset): @@ -509,9 +507,7 @@ def retrieve(self, request, pk=None): tags=["utility"], ) @extend_schema_view( - list=extend_schema( - summary="List languages", - ) + list=extend_schema(summary="List languages", parameters=[q_query_string_parameter]) ) class LanguageResource(PokeapiCommonViewset): queryset = Language.objects.all() @@ -529,9 +525,7 @@ def retrieve(self, request, pk=None): tags=["location"], ) @extend_schema_view( - list=extend_schema( - summary="List locations", - ) + list=extend_schema(summary="List locations", parameters=[q_query_string_parameter]) ) class LocationResource(PokeapiCommonViewset): queryset = Location.objects.all() @@ -550,7 +544,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List location areas", + summary="List location areas", parameters=[q_query_string_parameter] ) ) class LocationAreaResource(ListOrDetailSerialRelation, viewsets.ReadOnlyModelViewSet): @@ -569,9 +563,7 @@ def retrieve(self, request, pk=None): tags=["machines"], ) @extend_schema_view( - list=extend_schema( - summary="List machines", - ) + list=extend_schema(summary="List machines", parameters=[q_query_string_parameter]) ) class MachineResource(PokeapiCommonViewset): queryset = Machine.objects.all() @@ -589,9 +581,7 @@ def retrieve(self, request, pk=None): tags=["moves"], ) @extend_schema_view( - list=extend_schema( - summary="List moves", - ) + list=extend_schema(summary="List moves", parameters=[q_query_string_parameter]) ) class MoveResource(PokeapiCommonViewset): queryset = Move.objects.all() @@ -610,7 +600,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List move damage classes", + summary="List move damage classes", parameters=[q_query_string_parameter] ) ) class MoveDamageClassResource(PokeapiCommonViewset): @@ -630,7 +620,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List move meta ailments", + summary="List move meta ailments", parameters=[q_query_string_parameter] ) ) class MoveMetaAilmentResource(PokeapiCommonViewset): @@ -650,7 +640,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List move battle styles", + summary="List move battle styles", parameters=[q_query_string_parameter] ) ) class MoveBattleStyleResource(PokeapiCommonViewset): @@ -670,7 +660,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List move meta categories", + summary="List move meta categories", parameters=[q_query_string_parameter] ) ) class MoveMetaCategoryResource(PokeapiCommonViewset): @@ -690,7 +680,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List move learn methods", + summary="List move learn methods", parameters=[q_query_string_parameter] ) ) class MoveLearnMethodResource(PokeapiCommonViewset): @@ -710,7 +700,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List move targets", + summary="List move targets", parameters=[q_query_string_parameter] ) ) class MoveTargetResource(PokeapiCommonViewset): @@ -729,9 +719,7 @@ def retrieve(self, request, pk=None): tags=["pokemon"], ) @extend_schema_view( - list=extend_schema( - summary="List natures", - ) + list=extend_schema(summary="List natures", parameters=[q_query_string_parameter]) ) class NatureResource(PokeapiCommonViewset): queryset = Nature.objects.all() @@ -750,7 +738,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List pal park areas", + summary="List pal park areas", parameters=[q_query_string_parameter] ) ) class PalParkAreaResource(PokeapiCommonViewset): @@ -770,7 +758,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List pokeathlon stats", + summary="List pokeathlon stats", parameters=[q_query_string_parameter] ) ) class PokeathlonStatResource(PokeapiCommonViewset): @@ -789,9 +777,7 @@ def retrieve(self, request, pk=None): tags=["games"], ) @extend_schema_view( - list=extend_schema( - summary="List pokedex", - ) + list=extend_schema(summary="List pokedex", parameters=[q_query_string_parameter]) ) class PokedexResource(PokeapiCommonViewset): queryset = Pokedex.objects.all() @@ -810,7 +796,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List pokemon colors", + summary="List pokemon colors", parameters=[q_query_string_parameter] ) ) class PokemonColorResource(PokeapiCommonViewset): @@ -830,7 +816,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List pokemon forms", + summary="List pokemon forms", parameters=[q_query_string_parameter] ) ) class PokemonFormResource(PokeapiCommonViewset): @@ -850,7 +836,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List pokemom habitas", + summary="List pokemom habitas", parameters=[q_query_string_parameter] ) ) class PokemonHabitatResource(PokeapiCommonViewset): @@ -870,7 +856,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List pokemon shapes", + summary="List pokemon shapes", parameters=[q_query_string_parameter] ) ) class PokemonShapeResource(PokeapiCommonViewset): @@ -889,9 +875,7 @@ def retrieve(self, request, pk=None): tags=["pokemon"], ) @extend_schema_view( - list=extend_schema( - summary="List pokemon", - ) + list=extend_schema(summary="List pokemon", parameters=[q_query_string_parameter]), ) class PokemonResource(PokeapiCommonViewset): queryset = Pokemon.objects.all() @@ -910,7 +894,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List pokemon species", + summary="List pokemon species", parameters=[q_query_string_parameter] ) ) class PokemonSpeciesResource(PokeapiCommonViewset): @@ -929,9 +913,7 @@ def retrieve(self, request, pk=None): tags=["location"], ) @extend_schema_view( - list=extend_schema( - summary="List regions", - ) + list=extend_schema(summary="List regions", parameters=[q_query_string_parameter]) ) class RegionResource(PokeapiCommonViewset): queryset = Region.objects.all() @@ -949,9 +931,7 @@ def retrieve(self, request, pk=None): tags=["pokemon"], ) @extend_schema_view( - list=extend_schema( - summary="List stats", - ) + list=extend_schema(summary="List stats", parameters=[q_query_string_parameter]) ) class StatResource(PokeapiCommonViewset): queryset = Stat.objects.all() @@ -970,7 +950,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List super contest effects", + summary="List super contest effects", parameters=[q_query_string_parameter] ) ) class SuperContestEffectResource(PokeapiCommonViewset): @@ -989,9 +969,7 @@ def retrieve(self, request, pk=None): tags=["pokemon"], ) @extend_schema_view( - list=extend_schema( - summary="List types", - ) + list=extend_schema(summary="List types", parameters=[q_query_string_parameter]) ) class TypeResource(PokeapiCommonViewset): queryset = Type.objects.all() @@ -1009,9 +987,7 @@ def retrieve(self, request, pk=None): tags=["games"], ) @extend_schema_view( - list=extend_schema( - summary="List versions", - ) + list=extend_schema(summary="List versions", parameters=[q_query_string_parameter]) ) class VersionResource(PokeapiCommonViewset): queryset = Version.objects.all() @@ -1030,7 +1006,7 @@ def retrieve(self, request, pk=None): ) @extend_schema_view( list=extend_schema( - summary="List version groups", + summary="List version groups", parameters=[q_query_string_parameter] ) ) class VersionGroupResource(PokeapiCommonViewset):