modrinth / labrinth

Our Rust-based backend utilizing the actix-web framework to serve Modrinth's API.
https://modrinth.com
GNU Affero General Public License v3.0
509 stars 73 forks source link

Add a route for fetching contents of a collection. #931

Open PouekDEV opened 6 days ago

PouekDEV commented 6 days ago

Is your suggested enhancement related to a problem? Please describe.

I wanted to make a program that fetches all mods in a collection and checks if they are available for the newest minecraft version. Looking through the documentation, I found nothing related to getting info from collections. Checking the GitHub issues, I have not found any requests for this either.

Describe the solution you'd like

I would like to have a route in the API for fetching the contents of a collection. It would return a list containing the name of the mods, ids, and icons and would require the collection id for example /v2/collection/lvHexa4f.

Describe alternatives you've considered

No response

Additional context

No response