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:
Costantino Perciante 2016-10-14 12:44:38 +00:00
parent ab5371f97d
commit 92d8d0bc47
2 changed files with 5 additions and 2 deletions

View File

@ -4,4 +4,6 @@
<version>1.0.0-SNAPSHOT</version>
<description>Data Catalogue Service</description>
<local-persistence location='target' />
<exclude>/rest/stock/hello</exclude>
<exclude>/rest/fishery/hello</exclude>
</application>

View File

@ -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.Status;
import org.gcube.data_catalogue.grsf_publish_ws.utils.groups.Type;
import org.junit.Test;
import com.fasterxml.jackson.databind.ObjectMapper;
@ -117,7 +118,7 @@ public class JTests {
//@Test
public void testJSONMapping() throws IOException{
StockRecord record = new StockRecord();
FisheryRecord record = new FisheryRecord();
// record.setType(Type.Assessment_Unit);
// record.setFisheryId("sajhdskajda");
// record.setScientificName("assadsadada");
@ -185,7 +186,7 @@ public class JTests {
ObjectMapper mapper = new ObjectMapper();
//Object to JSON in String
String jsonInString = mapper.writeValueAsString(new ResponseCreationBean());
String jsonInString = mapper.writeValueAsString(record);
System.out.println(jsonInString);