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 methodgetList
provides means to retrieve the listing for one directory.The methodgetVersion
provides 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 methodgetList
provides 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 methodgetVersion
provides means to retrieve the version number of the API.- Returns:
- a Map with a single attribute
version
containing the version number as String.
-