thunderstore-io / Thunderstore

Thunderstore is a mod database and API for downloading mods. Thunderstore Discord: https://discord.thunderstore.io/
https://thunderstore.io/
GNU Affero General Public License v3.0
134 stars 27 forks source link

Actually use API serializers #889

Closed MythicManiac closed 1 year ago

MythicManiac commented 1 year ago

A few API views declared a serializer they supposedly used for the docs without actually using said serializer to format the data. This commit actually passes the data through the declared serialiers, which is generally what you'd expect when working on a DRF API.

codecov[bot] commented 1 year ago

Codecov Report

All modified lines are covered by tests :white_check_mark:

Comparison is base (216a20f) 92.20% compared to head (c2db7fa) 92.20%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #889 +/- ## ======================================= Coverage 92.20% 92.20% ======================================= Files 270 270 Lines 7737 7737 Branches 736 736 ======================================= Hits 7134 7134 Misses 501 501 Partials 102 102 ``` | [Files](https://app.codecov.io/gh/thunderstore-io/Thunderstore/pull/889?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=thunderstore-io) | Coverage Δ | | |---|---|---| | [...re/social/api/experimental/views/complete\_login.py](https://app.codecov.io/gh/thunderstore-io/Thunderstore/pull/889?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=thunderstore-io#diff-ZGphbmdvL3RodW5kZXJzdG9yZS9zb2NpYWwvYXBpL2V4cGVyaW1lbnRhbC92aWV3cy9jb21wbGV0ZV9sb2dpbi5weQ==) | `100.00% <ø> (ø)` | | | [...derstore/social/api/experimental/views/overwolf.py](https://app.codecov.io/gh/thunderstore-io/Thunderstore/pull/889?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=thunderstore-io#diff-ZGphbmdvL3RodW5kZXJzdG9yZS9zb2NpYWwvYXBpL2V4cGVyaW1lbnRhbC92aWV3cy9vdmVyd29sZi5weQ==) | `84.74% <ø> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.