Revision 50614
Added by Panagiotis Kanakakis about 6 years ago
BrokerApi.java | ||
---|---|---|
4 | 4 |
import eu.dnetlib.repo.manager.shared.Term; |
5 | 5 |
import eu.dnetlib.repo.manager.shared.broker.*; |
6 | 6 |
import io.swagger.annotations.Api; |
7 |
import io.swagger.annotations.ApiParam; |
|
7 | 8 |
import org.json.JSONException; |
8 | 9 |
import org.springframework.http.MediaType; |
9 | 10 |
import org.springframework.web.bind.annotation.*; |
... | ... | |
23 | 24 |
@RequestMapping(value = "/getTopicsForDatasource/{datasourceName}" , method = RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE) |
24 | 25 |
List<BrowseEntry> getTopicsForDatasource(String datasourceName) throws BrokerException; |
25 | 26 |
|
26 |
@RequestMapping(value = "/advancedShowEvents" , method = RequestMethod.POST,produces = MediaType.APPLICATION_JSON_VALUE) |
|
27 |
EventsPage advancedShowEvents(@RequestBody String params) throws BrokerException, JSONException ,IOException; |
|
27 |
@RequestMapping(value = "/advancedShowEvents/{page}/{size}" , method = RequestMethod.POST,produces = MediaType.APPLICATION_JSON_VALUE) |
|
28 |
EventsPage advancedShowEvents(@PathVariable("page") String page, |
|
29 |
@PathVariable("size") String size, |
|
30 |
@RequestBody AdvQueryObject advQueryObject) throws BrokerException, JSONException ,IOException; |
|
28 | 31 |
|
29 |
@RequestMapping(value = "/showEvents" , method = RequestMethod.POST,produces = MediaType.APPLICATION_JSON_VALUE) |
|
30 |
EventsPage showEvents(@RequestBody String params) throws BrokerException, JSONException; |
|
32 |
@RequestMapping(value = "/showEvents/{datasourceName}/{topic}/{page}" , method = RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE) |
|
33 |
EventsPage showEvents(@PathVariable("datasourceName") String datasourceName, |
|
34 |
@PathVariable("topic") String topic, |
|
35 |
@PathVariable("page") String page) throws BrokerException, JSONException; |
|
31 | 36 |
|
32 | 37 |
@RequestMapping(value = "/getSimpleSubscriptionsOfUser/{userEmail}" , method = RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE) |
33 | 38 |
@ResponseBody |
Also available in: Unified diff
1. New rest api
2. Cors filter on web.xml
3. Remove aai