Modrinth Upstream
data class ModrinthUpstream(val projectId: String, val modrinthProjectType: ModrinthProjectType, val baseUrl: String? = "https://api.modrinth.com/v2/", val baseUrlEndpoint: String? = "project/", val releaseBaseUrl: String? = "https://modrinth.com/", val releaseBaseUrlEndpoint: String? = "/", val upstreamPriority: Priority = 0.priority) : Upstream
The Modrinth upstream.
Properties
Link copied to clipboard
The endpoint from where the data is requested [baseUrl+baseUrlEndpoint]
Link copied to clipboard
Type of the project
Link copied to clipboard
The url that is used as a base for all releases
Link copied to clipboard
The endpoint where the release should lead to [baseUrl+baseUrlEndpoint]
Link copied to clipboard
Priority is that used when comparing versions from multiple upstreams.
Functions
Link copied to clipboard
Fetches a version object from the upstream.
Link copied to clipboard
Converts a version string into a DefaultVersion.
Link copied to clipboard
Returns an Update from a DefaultVersion.