Class Texarchive3Resource
java.lang.Object
org.ctan.site.resources.texarchive.Texarchive3Resource
@Path("/3.0")
@Produces({"application/json","application/xml"})
public class Texarchive3Resource
extends Object
The class
TexArchive3Resource contains the controller for the
/api/«xxx»/tex-archive resource.-
Constructor Summary
ConstructorsConstructorDescriptionTexarchive3Resource(@NonNull TexArchiveService service) This is the constructor for the classTexArchive3Resource. -
Method Summary
Modifier and TypeMethodDescriptionThe methodgetListprovides means to retrieve the listing for one directory.The methodgetVersionprovides means to retrieve the version number of the API.
-
Constructor Details
-
Texarchive3Resource
This is the constructor for the classTexArchive3Resource.- Parameters:
service- the underlying service
-
-
Method Details
-
getList
@GET @Path("/tex-archive/list/{path:.*}") @PermitAll @UnitOfWork("siteDb") public TexArchiveService.TexarchiveListTo getList(@PathParam("path") String path, @QueryParam("page") int page, @QueryParam("size") int size, @QueryParam("lang") String lang) The methodgetListprovides means to retrieve the listing for one directory.- Parameters:
path- the path in the Te X archivepage- the page segmentsize- the size of pageslang- the language- Returns:
- a list of files
-
getVersion
The methodgetVersionprovides means to retrieve the version number of the API.- Returns:
- a Map with a single attribute
versioncontaining the version number as String.
-