@Test void testGetRelationshipBetweenEntities() { assetCatalogRelationshipResource.getRelationshipBetweenEntities(SERVER_NAME, USER, FIST_END_GUID, SECOND_END_GUID, RELATIONSHIP_TYPE_NAME); verify(assetCatalogRelationshipService, atLeastOnce()).getRelationshipBetweenEntities(SERVER_NAME, USER, FIST_END_GUID, SECOND_END_GUID, RELATIONSHIP_TYPE_NAME); }
@GetMapping(path = "/relationship-between-entities/{entity1GUID}/{entity2GUID}", produces = org.springframework.http.MediaType.APPLICATION_JSON_VALUE) public RelationshipResponse getRelationshipBetweenEntities(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PathVariable("entity1GUID") String entity1GUID, @PathVariable("entity2GUID") String entity2GUID, @RequestParam(name = "relationshipType", required = false) String relationshipType) { return relationshipService.getRelationshipBetweenEntities(serverName, userId, entity1GUID, entity2GUID, relationshipType); }
AssetCatalogRelationshipResource { @GetMapping(path = "/relationship-between-entities/{entity1GUID}/{entity2GUID}", produces = org.springframework.http.MediaType.APPLICATION_JSON_VALUE) public RelationshipResponse getRelationshipBetweenEntities(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PathVariable("entity1GUID") String entity1GUID, @PathVariable("entity2GUID") String entity2GUID, @RequestParam(name = "relationshipType", required = false) String relationshipType) { return relationshipService.getRelationshipBetweenEntities(serverName, userId, entity1GUID, entity2GUID, relationshipType); } }
AssetCatalogRelationshipResource { @GetMapping(path = "/relationship-between-entities/{entity1GUID}/{entity2GUID}", produces = org.springframework.http.MediaType.APPLICATION_JSON_VALUE) public RelationshipResponse getRelationshipBetweenEntities(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PathVariable("entity1GUID") String entity1GUID, @PathVariable("entity2GUID") String entity2GUID, @RequestParam(name = "relationshipType", required = false) String relationshipType) { return relationshipService.getRelationshipBetweenEntities(serverName, userId, entity1GUID, entity2GUID, relationshipType); }  }
AssetCatalogRelationshipResource { @GetMapping(path = "/relationship-between-entities/{entity1GUID}/{entity2GUID}", produces = org.springframework.http.MediaType.APPLICATION_JSON_VALUE) public RelationshipResponse getRelationshipBetweenEntities(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PathVariable("entity1GUID") String entity1GUID, @PathVariable("entity2GUID") String entity2GUID, @RequestParam(name = "relationshipType", required = false) String relationshipType) { return relationshipService.getRelationshipBetweenEntities(serverName, userId, entity1GUID, entity2GUID, relationshipType); }  @GetMapping(path = "/relationship-between-entities/{entity1GUID}/{entity2GUID}", produces = org.springframework.http.MediaType.APPLICATION_JSON_VALUE) RelationshipResponse getRelationshipBetweenEntities(@PathVariable("serverName") String serverName,
                                                               @PathVariable("userId") String userId,
                                                               @PathVariable("entity1GUID") String entity1GUID,
                                                               @PathVariable("entity2GUID") String entity2GUID,
                                                               @RequestParam(name = "relationshipType", required = false) String relationshipType); }
AssetCatalogRelationshipResource { @GetMapping(path = "/relationship-between-entities/{entity1GUID}/{entity2GUID}", produces = org.springframework.http.MediaType.APPLICATION_JSON_VALUE) public RelationshipResponse getRelationshipBetweenEntities(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PathVariable("entity1GUID") String entity1GUID, @PathVariable("entity2GUID") String entity2GUID, @RequestParam(name = "relationshipType", required = false) String relationshipType) { return relationshipService.getRelationshipBetweenEntities(serverName, userId, entity1GUID, entity2GUID, relationshipType); }  @GetMapping(path = "/relationship-between-entities/{entity1GUID}/{entity2GUID}", produces = org.springframework.http.MediaType.APPLICATION_JSON_VALUE) RelationshipResponse getRelationshipBetweenEntities(@PathVariable("serverName") String serverName,
                                                               @PathVariable("userId") String userId,
                                                               @PathVariable("entity1GUID") String entity1GUID,
                                                               @PathVariable("entity2GUID") String entity2GUID,
                                                               @RequestParam(name = "relationshipType", required = false) String relationshipType);  }