Skip to content
Snippets Groups Projects
Commit 4c6f9c77 authored by Baptiste Toulemonde's avatar Baptiste Toulemonde
Browse files

wip

parent 8118ae7d
No related branches found
No related tags found
1 merge request!11Feature/get values
......@@ -42,17 +42,15 @@ public class SmartHarvesterMappingController {
}
@PostMapping
public ResponseEntity<String> map(@RequestBody Path[] paths, @RequestBody List<String> urlRepos, @RequestParam String catalogId, @RequestParam String fdpUrl) {
urlRepos.stream().forEach(url -> {
public void map(@RequestBody Path[] paths, @RequestBody List<String> urlRepos, @RequestParam String catalogId, @RequestParam String fdpUrl) {
for (String url: urlRepos) {
try {
String dataset = this.mappingService.createRDF(url, paths, catalogId, fdpUrl);
return ResponseEntity.ok().body(url);
ResponseEntity.ok().body(url);
} catch (JSONException e) {
return ResponseEntity.badRequest().body("ERROR " + e.getMessage());
ResponseEntity.badRequest().body("ERROR " + e.getMessage());
}
});
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment