@Controller @RequestMapping(value="/plugin/ontologyservice") public class OntologyServiceController extends MolgenisPluginController
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
static String |
URI |
PLUGIN_URI_PREFIX| Constructor and Description |
|---|
OntologyServiceController() |
| Modifier and Type | Method and Description |
|---|---|
void |
download(javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model) |
String |
init(org.springframework.ui.Model model) |
String |
match(String ontologyUrl,
String inputTerms,
org.springframework.ui.Model model) |
EntityCollectionResponse |
matchResult(EntityPager entityPager) |
SearchResult |
query(OntologyServiceRequest ontologyTermRequest) |
String |
upload(String ontologyUrl,
javax.servlet.http.Part file,
org.springframework.ui.Model model) |
getId, getUripublic static final String ID
public static final String URI
@RequestMapping(method=GET) public String init(org.springframework.ui.Model model)
@RequestMapping(method=POST,
value="/match")
public String match(@RequestParam(value="selectOntologies",required=true)
String ontologyUrl,
@RequestParam(value="inputTerms",required=true)
String inputTerms,
org.springframework.ui.Model model)
@RequestMapping(method=POST,
value="/match/upload",
headers="Content-Type=multipart/form-data")
public String upload(@RequestParam(value="selectOntologies",required=true)
String ontologyUrl,
@RequestParam(value="file",required=true)
javax.servlet.http.Part file,
org.springframework.ui.Model model)
throws IOException
IOException@RequestMapping(method=GET,
value="/match/download")
public void download(javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model)
throws IOException
IOException@RequestMapping(method=POST,
value="/match/retrieve")
@ResponseBody
public EntityCollectionResponse matchResult(@RequestBody
EntityPager entityPager)
@RequestMapping(method=POST,
consumes="application/json",
produces="application/json")
@ResponseBody
public SearchResult query(@RequestBody
OntologyServiceRequest ontologyTermRequest)
Copyright © 2015. All Rights Reserved.