Class JsonLicenseResource
java.lang.Object
org.ctan.site.resources.catalogue.api.JsonLicenseResource
The class
LicenseResource
contains the controller for the
license resource.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
The classAuthorSummaryTo
contains the transport object for the author resource in the summary list. -
Constructor Summary
ConstructorsConstructorDescriptionJsonLicenseResource
(@NonNull LicenseStore store) This is the constructor forLicenseResource
. -
Method Summary
Modifier and TypeMethodDescriptiongetLicenses
(@NonNull String vers, String key) The methodgetLicenses
provides means to retrieve the list of licenses.
-
Constructor Details
-
JsonLicenseResource
This is the constructor forLicenseResource
.- 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 methodgetLicenses
provides means to retrieve the list of licenses.- Parameters:
vers
- the versionkey
- the key- Returns:
- the list of licenses
-