labrinth icon indicating copy to clipboard operation
labrinth copied to clipboard

Project name in `/version/{id}` and `/versions`

Open MelanX opened this issue 2 years ago • 1 comments

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.

MelanX avatar Aug 07 '22 18:08 MelanX

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).

jamierocks avatar Aug 07 '22 19:08 jamierocks

yup, just use the appropriate routes

Geometrically avatar Apr 27 '23 23:04 Geometrically