Hub-OS / website

https://hubos.dev
GNU General Public License v3.0
0 stars 1 forks source link

Optimize endpoints or use GraphQL endpoint #13

Open ArthurCose opened 9 months ago

ArthurCose commented 9 months ago

Sending entire PackageMeta objects may be overkill for the website and might not be necessary for previews on the client either. Sending anything more than on Namespace prefixes is also overkill for /namespaces, but that could be optimized without GraphQL (Only return prefixes in /api/namespaces/member-or-invited?).

If optimizing specific cases ends up with excessive API endpoints, it may make sense to look into GraphQL to tailor data to each request.