Class JsonVersionResource

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

@Path("/") @Produces("application/json") public class JsonVersionResource extends Object
The class VersionResource contains the controller for the version resource.
  • Constructor Details

    • JsonVersionResource

      public JsonVersionResource()
  • Method Details

    • getVersion

      @GET @Path("/json/{vers}/version") @PermitAll public Map<String,String> getVersion(@NonNull @PathParam("vers") @NonNull String vers)
      The method getVersion provides means to retrieve the version number of the API in use.
      Parameters:
      vers - the version
      Returns:
      the version number