Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement useful data into Resource Search and Details #54

Open
mowmowkittycat opened this issue Dec 7, 2022 · 1 comment
Open

Implement useful data into Resource Search and Details #54

mowmowkittycat opened this issue Dec 7, 2022 · 1 comment

Comments

@mowmowkittycat
Copy link

Resource Search and just getting Resource Details including Resource Author Id and Resource Author Version Id but dont actually include the Resource Author and the Resource Version. You have to make 2 seperate get requests if you want both of these, which is absolutely ridiculous. I am trying to make a package manager and I dont want to make 2 get requests per Resource for searching through resources and displaying version and author. The Official Spigot API gives you the version and author when listing resources why cant this do that.

Basically there shouldnt be sections of data that have just their id, you should provide the id and the data of that object or section.

@InventivetalentDev
Copy link
Member

resources, authors, versions, etc. are all stored in separate collections internally, which is why requests for resources only return the reference to those other objects.
If you do need the details for them, you just make a separate request - I don't really see why that's a huge issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants