Commit 90357f9f authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

fixed miRnas API URL

parent e93926c2
......@@ -12,7 +12,7 @@ import lcsb.mapviewer.api.BaseController;
import lcsb.mapviewer.api.QueryException;
@RestController
@RequestMapping(value = "/projects/{projectId}/miRnas", produces = MediaType.APPLICATION_JSON_VALUE)
@RequestMapping(value = "/projects/{projectId}/", produces = MediaType.APPLICATION_JSON_VALUE)
public class MiRnaController extends BaseController {
private MiRnaRestImpl miRnaController;
......@@ -23,7 +23,7 @@ public class MiRnaController extends BaseController {
}
@PreAuthorize("hasAnyAuthority('IS_ADMIN', 'READ_PROJECT:' + #projectId)")
@GetMapping(value = ":search")
@GetMapping(value = "miRnas:search")
public List<Map<String, Object>> getMiRnasByQuery(
@PathVariable(value = "projectId") String projectId,
@RequestParam(value = "columns", defaultValue = "") String columns,
......@@ -41,7 +41,7 @@ public class MiRnaController extends BaseController {
}
@PreAuthorize("hasAnyAuthority('IS_ADMIN', 'READ_PROJECT:' + #projectId)")
@GetMapping(value = "/suggestedQueryList")
@GetMapping(value = "miRnas/suggestedQueryList")
public List<String> getSuggestedQueryList(@PathVariable(value = "projectId") String projectId)
throws MiRNASearchException {
return miRnaController.getSuggestedQueryList(projectId);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment