[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Description
This PR adds database queries to both API calls.
Concern
I'm pretty sure there is a better way to work with JSONs in a PostgresQL database like being explained here. This does not seem to be the right solution for it. For now this PR exists to discuss about it.
Checklist:
[x] I have commented my code in the hard-to-understand areas (or ChatGPT did)
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings, neither in my IDE nor in my browser
[x] I have added tests that prove my fix is effective or that my feature works
Type of change
Description
This PR adds database queries to both API calls.
Concern
I'm pretty sure there is a better way to work with JSONs in a PostgresQL database like being explained here. This does not seem to be the right solution for it. For now this PR exists to discuss about it.
Checklist: