Revision 49362
Added by Panagiotis Kanakakis over 6 years ago
BrokerApi.java | ||
---|---|---|
1 |
package eu.dnetlib.repo.manager.service.rest;
|
|
1 |
package eu.dnetlib.repo.manager.service.controllers;
|
|
2 | 2 |
|
3 | 3 |
import eu.dnetlib.repo.manager.service.shared.BrokerException; |
4 | 4 |
import eu.dnetlib.repo.manager.service.shared.broker.BrowseEntry; |
5 | 5 |
import eu.dnetlib.repo.manager.service.shared.broker.DatasourcesBroker; |
6 | 6 |
import eu.dnetlib.repo.manager.service.shared.broker.EventsPage; |
7 |
import org.json.JSONException; |
|
7 | 8 |
import org.springframework.http.MediaType; |
8 | 9 |
import org.springframework.web.bind.annotation.RequestBody; |
9 | 10 |
import org.springframework.web.bind.annotation.RequestMapping; |
... | ... | |
17 | 18 |
public interface BrokerApi { |
18 | 19 |
|
19 | 20 |
@RequestMapping(value = "/getDatasourcesOfUser" , method = RequestMethod.POST,produces = MediaType.APPLICATION_JSON_VALUE) |
20 |
DatasourcesBroker getDatasourcesOfUser(@RequestBody String params) throws BrokerException; |
|
21 |
DatasourcesBroker getDatasourcesOfUser(@RequestBody String params) throws BrokerException, JSONException;
|
|
21 | 22 |
|
22 | 23 |
@RequestMapping(value = "/getTopicsForDatasource/{datasourceName}" , method = RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE) |
23 | 24 |
List<BrowseEntry> getTopicsForDatasource(String datasourceName) throws BrokerException; |
24 | 25 |
|
25 | 26 |
@RequestMapping(value = "/advancedShowEvents" , method = RequestMethod.POST,produces = MediaType.APPLICATION_JSON_VALUE) |
26 |
EventsPage advancedShowEvents(@RequestBody String params) throws BrokerException; |
|
27 |
EventsPage advancedShowEvents(@RequestBody String params) throws BrokerException, JSONException;
|
|
27 | 28 |
} |
Also available in: Unified diff
Configuration