diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/resources/EntityManager.java b/src/main/java/org/gcube/informationsystem/resourceregistry/resources/EntityManager.java index e177348..1d82ead 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/resources/EntityManager.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/resources/EntityManager.java @@ -169,13 +169,12 @@ public class EntityManager { @PUT @Path(EntityPath.CONSISTS_OF_PATH_PART + "/" + EntityPath.SOURCE_PATH_PART + "/{" + SOURCE_ID_PATH_PARAM + "}/" + EntityPath.TARGET_PATH_PART - + "/{" + TARGET_ID_PATH_PARAM + "}/{" + EntityPath.TYPE_PATH_PARAM - + "}") + + "/{" + TARGET_ID_PATH_PARAM + "}/{" + TYPE_PATH_PARAM + "}") @Produces(MediaType.APPLICATION_JSON) public String attachFacet( @PathParam(SOURCE_ID_PATH_PARAM) String resourceUUID, @PathParam(TARGET_ID_PATH_PARAM) String facetUUID, - @PathParam(EntityPath.TYPE_PATH_PARAM) String type, String json) + @PathParam(TYPE_PATH_PARAM) String type, String json) throws FacetNotFoundException, ResourceNotFoundException, ResourceRegistryException { logger.info( @@ -221,13 +220,13 @@ public class EntityManager { @Path(EntityPath.IS_RELATED_TO_PATH_PART + "/" + EntityPath.SOURCE_PATH_PART + "/{" + SOURCE_ID_PATH_PARAM + "}/" + EntityPath.TARGET_PATH_PART + "/{" + TARGET_ID_PATH_PARAM + "}/{" - + EntityPath.TYPE_PATH_PARAM + "}") + + TYPE_PATH_PARAM + "}") @Consumes({ MediaType.TEXT_PLAIN, MediaType.APPLICATION_JSON }) @Produces(MediaType.APPLICATION_JSON) public String attachResource( @PathParam(SOURCE_ID_PATH_PARAM) String sourceResourceUUID, @PathParam(TARGET_ID_PATH_PARAM) String targetResourceUUID, - @PathParam(EntityPath.TYPE_PATH_PARAM) String type, String json) + @PathParam(TYPE_PATH_PARAM) String type, String json) throws ResourceNotFoundException, ResourceRegistryException { logger.info( "requested to attach source {} {} and target {} {} ({} Type {}) with properties {}", @@ -276,7 +275,6 @@ public class EntityManager { return entityManager.addResourceToContext(UUID.fromString(uuid)); } - /** * e.g POST * /resource-registry/add/facet/f6931232-c034-4979-9b2f-7193d3fba7df