Class VersionsController

java.lang.Object
de.bytestore.hostinger.internal.api.space.VersionsController

@RestController @Configuration @RequestMapping("/internal/versions") public class VersionsController extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    VersionsController(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 Type
    Method
    Description
    Retrieves a list of plugins and their versions from the database.
    Retrieves the changelog for a specific version.
    versionDownload(UUID version, jakarta.servlet.http.HttpServletResponse responseIO)
    Downloads the plugin file for the specified version.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      @GetMapping("/{branch}/list") public String updatesList(@PathVariable String branch)
      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

      @GetMapping("{version}/changelog") public String versionChangelog(@PathVariable UUID version)
      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.