fix: Update router root view to include meta api#1614
Conversation
|
pinging with the change @Naramsim regarding this #1609 (comment) missed it in the previous pr, just tested the api endpoint behavior missing the router + ditto tool behavior. sorry! should i add a test which tests hmm seems like pokemon/id/encounters seems to be done via transform as a partial side effect to this to when calling |
|
Hi! Thanks for the quick fix. I tested it on my side and when querying the pokemon endpoint for the encounters everything seems to work just fine. I'm merging. |
|
A PokeAPI/api-data refresh has started. In ~45 minutes the staging branch of PokeAPI/api-data will be pushed with the new generated data. |
|
The updater script has finished its job and has now opened a Pull Request towards PokeAPI/api-data with the updated data. |
Change description
Subclasses the router to include the
metaapi into theapi/v2router since anAPIViewcannot be registered to a router it is being reversed via drf and added to the routerI looked into viewsets and a
retrieveonly viewset wouldnt work since the router root view lists thelistendpoints which causes openapi to pick this endpoint up wrong creating this conundrumAI coding assistance disclosure
None
Contributor check list