Class VersionsController
java.lang.Object
de.bytestore.hostinger.internal.api.space.VersionsController
@RestController
@Configuration
@RequestMapping("/internal/versions")
public class VersionsController
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionVersionsController(io.jmix.core.DataManager dataManager, io.jmix.core.FileStorage fileStorage, org.springframework.beans.factory.ObjectProvider<io.jmix.flowui.download.Downloader> downloaderProvider) -
Method Summary
Modifier and TypeMethodDescriptionupdatesList(String branch) Retrieves a list of plugins and their versions from the database.versionChangelog(UUID version) Retrieves the changelog for a specific version.versionDownload(UUID version, jakarta.servlet.http.HttpServletResponse responseIO) Downloads the plugin file for the specified version.
-
Constructor Details
-
VersionsController
public VersionsController(io.jmix.core.DataManager dataManager, io.jmix.core.FileStorage fileStorage, org.springframework.beans.factory.ObjectProvider<io.jmix.flowui.download.Downloader> downloaderProvider)
-
-
Method Details
-
updatesList
Retrieves a list of plugins and their versions from the database.- Returns:
- A JSON string representing the list of plugins and their versions.
-
versionDownload
@GetMapping("{version}/download") public String versionDownload(@PathVariable UUID version, jakarta.servlet.http.HttpServletResponse responseIO) Downloads the plugin file for the specified version.- Parameters:
version- The UUID of the plugin version.responseIO- The HttpServletResponse object for setting the HTTP response.- Returns:
- A JSON string representing the status message of the download operation. If the plugin version is not found, an error message is returned.
-
versionChangelog
Retrieves the changelog for a specific version.- Parameters:
version- The UUID of the plugin version.- Returns:
- A JSON string representing the status message with the changelog. If the version is not found, an error message is returned.
-