Create an api crate (maybe 2) #92
ModProg
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
I want to implement api queries in https://github.com/modrinth/theseus, and there are no "official" API bindings for modrinth to atleast use internally.
Describe the solution you'd like
modrinth-api-types
that holds all types used in the public modrinth api.modrinth-api
that has methods to actually query the modrinth api directly to get back the responses frommodrinth-api-types
.Describe alternatives you've considered
I could implement this as a separate 3rd party crate, but I would be reluctant using that in an official modrinth application such as theseus.
Additional context
I split it into 2 crates with the intention of using
modrinth-api-types
inlabrinth
as the structs used for returning and havingmodrinth-api
as a separate crate including all the dependencies to trigger HTTP requests.Not sure if this would be the best way to implement this, alternatively this could be implemented without using it in
labrinth
itself, but I would still like to have it in the modrinth org.Beta Was this translation helpful? Give feedback.
All reactions