gcat/src/main/java/org/gcube/gcat/rest/License.java

32 lines
752 B
Java
Raw Normal View History

package org.gcube.gcat.rest;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import org.gcube.gcat.api.GCatConstants;
import org.gcube.gcat.persistence.ckan.CKANLicense;
2022-09-28 16:58:17 +02:00
import com.webcohesion.enunciate.metadata.rs.ResourceGroup;
2022-09-28 14:45:02 +02:00
import com.webcohesion.enunciate.metadata.rs.ResourceLabel;
/**
* @author Luca Frosini (ISTI - CNR)
*/
@Path(License.LICENSES)
2022-09-28 16:58:17 +02:00
@ResourceGroup("Item Related APIs")
2022-09-28 14:45:02 +02:00
@ResourceLabel("License APIs")
public class License extends REST<CKANLicense> implements org.gcube.gcat.api.interfaces.License {
2019-09-16 14:48:18 +02:00
public License() {
super(LICENSES, null, CKANLicense.class);
}
@GET
@Produces(GCatConstants.APPLICATION_JSON_CHARSET_UTF_8)
public String list() {
return super.list(-1, -1);
}
}