From e3dcaae93a2023928793163bbc834315aed70485 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Fri, 2 Aug 2024 13:38:37 +0200 Subject: [PATCH] Added Content-Location for CkanPackage --- src/main/java/org/gcube/gcat/rest/REST.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/org/gcube/gcat/rest/REST.java b/src/main/java/org/gcube/gcat/rest/REST.java index bf9150a..110738b 100644 --- a/src/main/java/org/gcube/gcat/rest/REST.java +++ b/src/main/java/org/gcube/gcat/rest/REST.java @@ -9,12 +9,15 @@ import javax.ws.rs.core.Response.Status; import org.gcube.gcat.api.GCatConstants; import org.gcube.gcat.api.interfaces.CRUD; import org.gcube.gcat.persistence.ckan.CKAN; +import org.gcube.gcat.persistence.ckan.CKANPackage; /** * @author Luca Frosini (ISTI - CNR) */ public class REST extends BaseREST implements CRUD { + protected static final String CONTENT_LOCATION_HEADER = "Content-Location"; + protected final String COLLECTION_PARAMETER; protected final String ID_PARAMETER; protected final Class reference; @@ -43,6 +46,10 @@ public class REST extends BaseREST implements CRUD extends BaseREST implements CRUD