Revision 50686
Added by Panagiotis Kanakakis about 6 years ago
BrokerApi.java | ||
---|---|---|
19 | 19 |
public interface BrokerApi { |
20 | 20 |
|
21 | 21 |
@RequestMapping(value = "/getDatasourcesOfUser" , method = RequestMethod.POST,produces = MediaType.APPLICATION_JSON_VALUE) |
22 |
DatasourcesBroker getDatasourcesOfUser(@RequestBody String params) throws BrokerException, JSONException;
|
|
22 |
DatasourcesBroker getDatasourcesOfUser(String user,String includeShared,String includeByOthers) throws BrokerException, JSONException;
|
|
23 | 23 |
|
24 | 24 |
@RequestMapping(value = "/getTopicsForDatasource/{datasourceName}" , method = RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE) |
25 | 25 |
List<BrowseEntry> getTopicsForDatasource(String datasourceName) throws BrokerException; |
... | ... | |
36 | 36 |
|
37 | 37 |
@RequestMapping(value = "/getSimpleSubscriptionsOfUser/{userEmail}" , method = RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE) |
38 | 38 |
@ResponseBody |
39 |
Map<String, List<SimpleSubscriptionDesc>> getSimpleSubscriptionsOfUser(String userEmail) throws BrokerException; |
|
39 |
Map<String, List<SimpleSubscriptionDesc>> getSimpleSubscriptionsOfUser(@PathVariable("userEmail") String userEmail) throws BrokerException;
|
|
40 | 40 |
|
41 |
@RequestMapping(value = "/subscribe" , method = RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE) |
|
41 |
@RequestMapping(value = "/subscribe" , method = RequestMethod.POST,consumes = MediaType.APPLICATION_JSON_VALUE, |
|
42 |
produces = MediaType.APPLICATION_JSON_VALUE) |
|
42 | 43 |
@ResponseBody |
43 | 44 |
Subscription subscribe(@RequestBody OpenaireSubscription obj) throws BrokerException; |
44 | 45 |
|
45 |
@RequestMapping(value = "/unsubscribe/{subscriptionId}" , method = RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE) |
|
46 |
@RequestMapping(value = "/unsubscribe/{subscriptionId}" , method = RequestMethod.POST,consumes = MediaType.APPLICATION_JSON_VALUE, |
|
47 |
produces = MediaType.APPLICATION_JSON_VALUE) |
|
46 | 48 |
@ResponseBody |
47 | 49 |
void unsubscribe(String subscriptionId) throws BrokerException; |
48 | 50 |
|
Also available in: Unified diff
1. Add swagger explanation for broker/validator paramaters
2. Change subscribe/unsubcribe methods of broker from GET to POST