Skip to content
Snippets Groups Projects
Commit 28cdb377 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

unnecessary methods removed

parent 5e66cae7
No related branches found
No related tags found
1 merge request!11Resolve "Rest API should follow google guidlines"
package lcsb.mapviewer.api.configuration;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -13,30 +12,12 @@ import org.springframework.web.bind.annotation.RestController;
import lcsb.mapviewer.api.BaseController;
import lcsb.mapviewer.services.SecurityException;
import lcsb.mapviewer.services.view.ConfigurationView;
@RestController
public class ConfigurationController extends BaseController {
@Autowired
private ConfigurationRestImpl configurationController;
@RequestMapping(value = "/configuration/getAllValues", method = { RequestMethod.GET, RequestMethod.POST }, produces = { MediaType.APPLICATION_JSON_VALUE })
public List<ConfigurationView> getAllValues(@RequestParam(value = "token") String token) throws SecurityException {
return configurationController.getAllValues(token);
}
@RequestMapping(value = "/configuration/getImageFormats", method = { RequestMethod.GET, RequestMethod.POST },
produces = { MediaType.APPLICATION_JSON_VALUE })
public List<Map<String, Object>> getImageFormats(@RequestParam(value = "token") String token) throws SecurityException {
return configurationController.getImageFormats(token);
}
@RequestMapping(value = "/configuration/getModelFormats", method = { RequestMethod.GET, RequestMethod.POST },
produces = { MediaType.APPLICATION_JSON_VALUE })
public List<Map<String, Object>> getModelFormats(@RequestParam(value = "token") String token) throws SecurityException {
return configurationController.getModelFormats(token);
}
@RequestMapping(value = "/configuration/", method = { RequestMethod.GET }, produces = { MediaType.APPLICATION_JSON_VALUE })
public Map<String, Object> getOverlayTypes(@RequestParam(value = "token") String token) throws SecurityException {
Map<String, Object> result = new HashMap<>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment