Class Lug3Resource

java.lang.Object
org.ctan.site.resources.catalogue.Lug3Resource

@Path("/3.0") @Produces({"application/json","application/xml"}) public class Lug3Resource extends Object
The class Lug3Resource contains the controller for the lugs resource.
  • Constructor Details

    • Lug3Resource

      public Lug3Resource(@NonNull @NonNull LugStore store)
      This is the constructor for the class Lug3Resource.
      Parameters:
      store - the underlying store
  • Method Details

    • getAllLugs

      @GET @Path("/lugs") @PermitAll @UnitOfWork("siteDb") public List<Lug> getAllLugs()
      The method getAllLugs provides means to retrieve a list of all lugs.
      Returns:
      a list of matching lug summaries
    • getLugs

      @GET @Path("/lugs/{pattern}") @PermitAll @UnitOfWork("siteDb") public List<Lug> getLugs(@NonNull @PathParam("pattern") @NonNull String pattern)
      The method getLugs provides means to retrieve a list of lugs starting with a given pattern.
      Parameters:
      pattern - the initial string of the key
      Returns:
      a list of matching lug summaries