diff --git a/dmp-backend/src/main/java/rest/entities/DataRepositories.java b/dmp-backend/src/main/java/rest/entities/DataRepositories.java index c4f26edd0..aeb790071 100644 --- a/dmp-backend/src/main/java/rest/entities/DataRepositories.java +++ b/dmp-backend/src/main/java/rest/entities/DataRepositories.java @@ -79,7 +79,7 @@ public class DataRepositories { - @RequestMapping(method = RequestMethod.GET, value = { "/externaldatarepo" }, produces="application/json") + @RequestMapping(method = RequestMethod.GET, value = { "/external/datarepos" }, produces="application/json") public @ResponseBody ResponseEntity listExternalDataRepositories(@RequestParam(value="query", required=false) String query ){ try { List> remoteRepos = remoteFetcher.getRepositories(query); diff --git a/dmp-backend/src/main/java/rest/entities/Organisations.java b/dmp-backend/src/main/java/rest/entities/Organisations.java index 8fdb38815..0aaf847a8 100644 --- a/dmp-backend/src/main/java/rest/entities/Organisations.java +++ b/dmp-backend/src/main/java/rest/entities/Organisations.java @@ -77,7 +77,7 @@ public class Organisations { @Autowired private RemoteFetcher remoteFetcher; - @RequestMapping(method = RequestMethod.GET, value = { "/externalorganisations" }, produces="application/json") + @RequestMapping(method = RequestMethod.GET, value = { "/external/organisations" }, produces="application/json") public @ResponseBody ResponseEntity listExternalOrganisations(@RequestParam(value="query", required=false) String query ){ try { List> remoteRepos = remoteFetcher.getOrganisations(query); diff --git a/dmp-backend/src/main/java/rest/entities/Projects.java b/dmp-backend/src/main/java/rest/entities/Projects.java index b71679efb..88101c696 100644 --- a/dmp-backend/src/main/java/rest/entities/Projects.java +++ b/dmp-backend/src/main/java/rest/entities/Projects.java @@ -88,7 +88,7 @@ public class Projects { @Autowired private RemoteFetcher remoteFetcher; - @RequestMapping(method = RequestMethod.GET, value = { "/externalprojects" }, produces="application/json") + @RequestMapping(method = RequestMethod.GET, value = { "/external/projects" }, produces="application/json") public @ResponseBody ResponseEntity listExternalProjects(@RequestParam(value="query", required=false) String query ){ try { List> remoteRepos = remoteFetcher.getProjects(query); diff --git a/dmp-backend/src/main/java/rest/entities/Registries.java b/dmp-backend/src/main/java/rest/entities/Registries.java index 5118a6e83..f9033fe97 100644 --- a/dmp-backend/src/main/java/rest/entities/Registries.java +++ b/dmp-backend/src/main/java/rest/entities/Registries.java @@ -76,7 +76,7 @@ public class Registries { @Autowired private RemoteFetcher remoteFetcher; - @RequestMapping(method = RequestMethod.GET, value = { "/externalregistries" }, produces="application/json") + @RequestMapping(method = RequestMethod.GET, value = { "/external/registries" }, produces="application/json") public @ResponseBody ResponseEntity listExternalRegistries(@RequestParam(value="query", required=false) String query ){ try { List> remoteRepos = remoteFetcher.getRegistries(query); diff --git a/dmp-backend/src/main/java/rest/entities/Researchers.java b/dmp-backend/src/main/java/rest/entities/Researchers.java index c8b2665ed..5da78e842 100644 --- a/dmp-backend/src/main/java/rest/entities/Researchers.java +++ b/dmp-backend/src/main/java/rest/entities/Researchers.java @@ -76,7 +76,7 @@ public class Researchers { @Autowired private RemoteFetcher remoteFetcher; - @RequestMapping(method = RequestMethod.GET, value = { "/externalresearchers" }, produces="application/json") + @RequestMapping(method = RequestMethod.GET, value = { "/external/researchers" }, produces="application/json") public @ResponseBody ResponseEntity listExternalResearchers(@RequestParam(value="query", required=false) String query ){ try { List> remoteRepos = remoteFetcher.getResearchers(query); diff --git a/dmp-backend/src/main/java/rest/entities/Services.java b/dmp-backend/src/main/java/rest/entities/Services.java index 2da33d7a5..f9538e1ea 100644 --- a/dmp-backend/src/main/java/rest/entities/Services.java +++ b/dmp-backend/src/main/java/rest/entities/Services.java @@ -77,7 +77,7 @@ public class Services { @Autowired private RemoteFetcher remoteFetcher; - @RequestMapping(method = RequestMethod.GET, value = { "/externalservices" }, produces="application/json") + @RequestMapping(method = RequestMethod.GET, value = { "/external/services" }, produces="application/json") public @ResponseBody ResponseEntity listExternalServices(@RequestParam(value="query", required=false) String query ){ try { List> remoteRepos = remoteFetcher.getServices(query);