added <exclude> elements for hello methods (i.e. they no longer require the token to be used)
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/grsf-publisher-ws@133198 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
ab5371f97d
commit
92d8d0bc47
|
@ -4,4 +4,6 @@
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
<version>1.0.0-SNAPSHOT</version>
|
||||||
<description>Data Catalogue Service</description>
|
<description>Data Catalogue Service</description>
|
||||||
<local-persistence location='target' />
|
<local-persistence location='target' />
|
||||||
|
<exclude>/rest/stock/hello</exclude>
|
||||||
|
<exclude>/rest/fishery/hello</exclude>
|
||||||
</application>
|
</application>
|
|
@ -23,6 +23,7 @@ import org.gcube.data_catalogue.grsf_publish_ws.utils.HelperMethods;
|
||||||
import org.gcube.data_catalogue.grsf_publish_ws.utils.groups.Abundance_Level;
|
import org.gcube.data_catalogue.grsf_publish_ws.utils.groups.Abundance_Level;
|
||||||
import org.gcube.data_catalogue.grsf_publish_ws.utils.groups.Status;
|
import org.gcube.data_catalogue.grsf_publish_ws.utils.groups.Status;
|
||||||
import org.gcube.data_catalogue.grsf_publish_ws.utils.groups.Type;
|
import org.gcube.data_catalogue.grsf_publish_ws.utils.groups.Type;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
|
|
||||||
|
@ -117,7 +118,7 @@ public class JTests {
|
||||||
//@Test
|
//@Test
|
||||||
public void testJSONMapping() throws IOException{
|
public void testJSONMapping() throws IOException{
|
||||||
|
|
||||||
StockRecord record = new StockRecord();
|
FisheryRecord record = new FisheryRecord();
|
||||||
// record.setType(Type.Assessment_Unit);
|
// record.setType(Type.Assessment_Unit);
|
||||||
// record.setFisheryId("sajhdskajda");
|
// record.setFisheryId("sajhdskajda");
|
||||||
// record.setScientificName("assadsadada");
|
// record.setScientificName("assadsadada");
|
||||||
|
@ -185,7 +186,7 @@ public class JTests {
|
||||||
ObjectMapper mapper = new ObjectMapper();
|
ObjectMapper mapper = new ObjectMapper();
|
||||||
|
|
||||||
//Object to JSON in String
|
//Object to JSON in String
|
||||||
String jsonInString = mapper.writeValueAsString(new ResponseCreationBean());
|
String jsonInString = mapper.writeValueAsString(record);
|
||||||
System.out.println(jsonInString);
|
System.out.println(jsonInString);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue