labrinth
labrinth copied to clipboard
Project name in `/version/{id}` and `/versions`
Is your feature request related to a problem? Please describe.
I'm writing a tool where I create a nice looking modlist file based on the exported modpack file. For this, I already have a few api calls. To minimize them, it would be good if the project name would be included into the response for a version. This would minimize the api calls of my tool from 100 to just 50 for 50 mods. (just an example, there are already a few more calls for additional information)
Describe the solution you'd like
Add a field called project_name
to the response for each version
.
Describe alternatives you've considered
Alternativly, I would just call the api to get the project based on the project_id
which is already provided when getting a version.
This would minimize the api calls of my tool from 100 to just 50 for 50 mods
You could reduce those 50 API calls down to 1 - there's a route for fetching multiple versions at once (and the same for projects, so 2 API calls overall).
yup, just use the appropriate routes