This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit ff78b3cf authored by Michael Breu's avatar Michael Breu :speech_balloon:
Browse files

First call back from Artemis

parent 11626d92
Branches
Tags
1 merge request!17Initial Merge to Prepare Release 1.0.0
...@@ -44,6 +44,10 @@ public class PluginManagementService { ...@@ -44,6 +44,10 @@ public class PluginManagementService {
public void registerPlugins() { public void registerPlugins() {
List<SharingPluginConfig> results = new ArrayList<>(); List<SharingPluginConfig> results = new ArrayList<>();
// TODO ensure a regular checkup
// i.e. when not available during startup, probe every 10 minutes
// if active, probe connectivity every 10 minutes
for(String registeredPlugin: registeredPlugins) { for(String registeredPlugin: registeredPlugins) {
ClientConfig restClientConfig = new ClientConfig(); ClientConfig restClientConfig = new ClientConfig();
restClientConfig.register(JacksonJsonProvider.class); restClientConfig.register(JacksonJsonProvider.class);
......
...@@ -52,11 +52,24 @@ public class PluginInterfaceResource { ...@@ -52,11 +52,24 @@ public class PluginInterfaceResource {
* @param query the query of the searchResult search. * @param query the query of the searchResult search.
* @return the result of the search. * @return the result of the search.
*/ */
@GetMapping("/pluginIF/getBasket/{basketToken}") @GetMapping("/pluginIF/basket/{basketToken}")
public ShoppingBasket searchPageDetails( public ShoppingBasket searchPageDetails(
@PathParam("basketToken") String basketToken) throws IOException { @PathParam("basketToken") String basketToken) throws IOException {
log.debug("REST request for basket {}", basketToken); log.debug("REST request for basket {}", basketToken);
return basketService.getBasket(basketToken); return basketService.getBasket(basketToken);
} }
/**
* {@code SEARCH /search/page-details} : search for the searchResults corresponding
* to the query.
*
* @param query the query of the searchResult search.
* @return the result of the search.
*/
@GetMapping("/pluginIF/basket/{basketToken}/repository/{exerciseId}")
public ShoppingBasket getRepositoryZip(
@PathParam("basketToken") String basketToken, @PathParam("exerciseId") String exerciseId) throws IOException {
log.debug("REST request for basket {}", basketToken);
return basketService.getBasket(basketToken);
}
} }
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