Class JsonLicenseResource

java.lang.Object
org.ctan.site.resources.catalogue.api.JsonLicenseResource

@Path("/") @Produces("application/json") public class JsonLicenseResource extends Object
The class LicenseResource contains the controller for the license resource.
  • Constructor Details

    • JsonLicenseResource

      public JsonLicenseResource(@NonNull @NonNull LicenseStore store)
      This is the constructor for LicenseResource.
      Parameters:
      store - the underlying store
  • Method Details

    • getLicenses

      @GET @Path("/json/{vers}/licenses") @PermitAll @UnitOfWork("siteDb") public List<JsonLicenseResource.LicenseSummaryTo> getLicenses(@NonNull @PathParam("vers") @NonNull String vers, @QueryParam("key") String key)
      The method getLicenses provides means to retrieve the list of licenses.
      Parameters:
      vers - the version
      key - the key
      Returns:
      the list of licenses