Commit 41c1f1ba authored by Piotr Gawron's avatar Piotr Gawron
Browse files

api endpoints were exposed without api prefix

parent e78d2313
minerva (16.1.0~alpha.0) stable; urgency=medium
* Bug fix: api endpoints were exposed without 'api' prefix
minerva (16.0.0~beta.1) stable; urgency=medium minerva (16.0.0~beta.1) stable; urgency=medium
* Backward incompatibility: layout parameter in minerva url is not supported * Backward incompatibility: layout parameter in minerva url is not supported
anymore anymore
......
...@@ -23,7 +23,7 @@ import lcsb.mapviewer.services.QueryException; ...@@ -23,7 +23,7 @@ import lcsb.mapviewer.services.QueryException;
import lcsb.mapviewer.services.interfaces.IConfigurationService; import lcsb.mapviewer.services.interfaces.IConfigurationService;
@RestController @RestController
@RequestMapping(value = "/configuration", produces = MediaType.APPLICATION_JSON_VALUE) @RequestMapping(value = "/api/configuration", produces = MediaType.APPLICATION_JSON_VALUE)
public class ConfigurationController extends BaseController { public class ConfigurationController extends BaseController {
Logger logger = LogManager.getLogger(); Logger logger = LogManager.getLogger();
......
...@@ -20,7 +20,7 @@ import lcsb.mapviewer.model.map.InconsistentModelException; ...@@ -20,7 +20,7 @@ import lcsb.mapviewer.model.map.InconsistentModelException;
import lcsb.mapviewer.services.QueryException; import lcsb.mapviewer.services.QueryException;
@RestController @RestController
@RequestMapping(value = "/convert", produces = MediaType.APPLICATION_JSON_VALUE) @RequestMapping(value = "/api/convert", produces = MediaType.APPLICATION_JSON_VALUE)
public class ConvertController extends BaseController { public class ConvertController extends BaseController {
@SuppressWarnings("unused") @SuppressWarnings("unused")
private Logger logger = LogManager.getLogger(); private Logger logger = LogManager.getLogger();
......
...@@ -15,7 +15,7 @@ import lcsb.mapviewer.services.QueryException; ...@@ -15,7 +15,7 @@ import lcsb.mapviewer.services.QueryException;
import lcsb.mapviewer.services.interfaces.IUserService; import lcsb.mapviewer.services.interfaces.IUserService;
@RestController @RestController
@RequestMapping(value = "/files", produces = MediaType.APPLICATION_JSON_VALUE) @RequestMapping(value = "/api/files", produces = MediaType.APPLICATION_JSON_VALUE)
public class FileController extends BaseController { public class FileController extends BaseController {
private FileRestImpl fileRest; private FileRestImpl fileRest;
......
...@@ -16,7 +16,7 @@ import lcsb.mapviewer.services.ObjectNotFoundException; ...@@ -16,7 +16,7 @@ import lcsb.mapviewer.services.ObjectNotFoundException;
import lcsb.mapviewer.services.QueryException; import lcsb.mapviewer.services.QueryException;
@RestController @RestController
@RequestMapping(value = "/genomics", produces = MediaType.APPLICATION_JSON_VALUE) @RequestMapping(value = "/api/genomics", produces = MediaType.APPLICATION_JSON_VALUE)
public class ReferenceGenomeController extends BaseController { public class ReferenceGenomeController extends BaseController {
private ReferenceGenomeRestImpl referenceGenomeController; private ReferenceGenomeRestImpl referenceGenomeController;
......
...@@ -13,7 +13,7 @@ import lcsb.mapviewer.api.BaseController; ...@@ -13,7 +13,7 @@ import lcsb.mapviewer.api.BaseController;
import lcsb.mapviewer.services.ObjectNotFoundException; import lcsb.mapviewer.services.ObjectNotFoundException;
@RestController @RestController
@RequestMapping(value = "/mesh", produces = MediaType.APPLICATION_JSON_VALUE) @RequestMapping(value = "/api/mesh", produces = MediaType.APPLICATION_JSON_VALUE)
public class MeshController extends BaseController { public class MeshController extends BaseController {
/** /**
* Default class logger. * Default class logger.
......
...@@ -25,7 +25,7 @@ import lcsb.mapviewer.model.user.ConfigurationElementType; ...@@ -25,7 +25,7 @@ import lcsb.mapviewer.model.user.ConfigurationElementType;
import lcsb.mapviewer.services.interfaces.IConfigurationService; import lcsb.mapviewer.services.interfaces.IConfigurationService;
@RestController @RestController
@RequestMapping("/minervanet") @RequestMapping("/api/minervanet")
public class MinervaNetController extends BaseController { public class MinervaNetController extends BaseController {
private Logger logger = LogManager.getLogger(); private Logger logger = LogManager.getLogger();
......
...@@ -17,7 +17,7 @@ import lcsb.mapviewer.services.QueryException; ...@@ -17,7 +17,7 @@ import lcsb.mapviewer.services.QueryException;
import lcsb.mapviewer.services.interfaces.IUserService; import lcsb.mapviewer.services.interfaces.IUserService;
@RestController @RestController
@RequestMapping(value = "/plugins", produces = MediaType.APPLICATION_JSON_VALUE) @RequestMapping(value = "/api/plugins", produces = MediaType.APPLICATION_JSON_VALUE)
public class PluginController extends BaseController { public class PluginController extends BaseController {
/** /**
* Default class logger. * Default class logger.
......
...@@ -27,7 +27,7 @@ import lcsb.mapviewer.services.QueryException; ...@@ -27,7 +27,7 @@ import lcsb.mapviewer.services.QueryException;
import lcsb.mapviewer.services.interfaces.IUserService; import lcsb.mapviewer.services.interfaces.IUserService;
@RestController @RestController
@RequestMapping(value = "/projects", produces = MediaType.APPLICATION_JSON_VALUE) @RequestMapping(value = "/api/projects", produces = MediaType.APPLICATION_JSON_VALUE)
public class ProjectController extends BaseController { public class ProjectController extends BaseController {
private ServletContext context; private ServletContext context;
......
...@@ -13,7 +13,7 @@ import lcsb.mapviewer.services.ObjectNotFoundException; ...@@ -13,7 +13,7 @@ import lcsb.mapviewer.services.ObjectNotFoundException;
import lcsb.mapviewer.services.QueryException; import lcsb.mapviewer.services.QueryException;
@RestController @RestController
@RequestMapping(value = "/projects", produces = MediaType.APPLICATION_JSON_VALUE) @RequestMapping(value = "/api/projects", produces = MediaType.APPLICATION_JSON_VALUE)
public class ChemicalController extends BaseController { public class ChemicalController extends BaseController {
private ChemicalRestImpl chemicalController; private ChemicalRestImpl chemicalController;
......
...@@ -23,7 +23,7 @@ import lcsb.mapviewer.services.QueryException; ...@@ -23,7 +23,7 @@ import lcsb.mapviewer.services.QueryException;
import lcsb.mapviewer.services.interfaces.IUserService; import lcsb.mapviewer.services.interfaces.IUserService;
@RestController @RestController
@RequestMapping(value = "/projects/{projectId}/comments", produces = MediaType.APPLICATION_JSON_VALUE) @RequestMapping(value = "/api/projects/{projectId}/comments", produces = MediaType.APPLICATION_JSON_VALUE)
public class CommentController extends BaseController { public class CommentController extends BaseController {
Logger logger = LogManager.getLogger(); Logger logger = LogManager.getLogger();
......
...@@ -13,7 +13,7 @@ import lcsb.mapviewer.services.ObjectNotFoundException; ...@@ -13,7 +13,7 @@ import lcsb.mapviewer.services.ObjectNotFoundException;
import lcsb.mapviewer.services.QueryException; import lcsb.mapviewer.services.QueryException;
@RestController @RestController
@RequestMapping(value = "/projects/{projectId}/", produces = MediaType.APPLICATION_JSON_VALUE) @RequestMapping(value = "/api/projects/{projectId}/", produces = MediaType.APPLICATION_JSON_VALUE)
public class DrugController extends BaseController { public class DrugController extends BaseController {
private DrugRestImpl drugController; private DrugRestImpl drugController;
......
...@@ -13,7 +13,7 @@ import lcsb.mapviewer.services.ObjectNotFoundException; ...@@ -13,7 +13,7 @@ import lcsb.mapviewer.services.ObjectNotFoundException;
import lcsb.mapviewer.services.QueryException; import lcsb.mapviewer.services.QueryException;
@RestController @RestController
@RequestMapping(value = "/projects/{projectId}/", produces = MediaType.APPLICATION_JSON_VALUE) @RequestMapping(value = "/api/projects/{projectId}/", produces = MediaType.APPLICATION_JSON_VALUE)
public class MiRnaController extends BaseController { public class MiRnaController extends BaseController {
private MiRnaRestImpl miRnaController; private MiRnaRestImpl miRnaController;
......
...@@ -31,7 +31,7 @@ import lcsb.mapviewer.services.QueryException; ...@@ -31,7 +31,7 @@ import lcsb.mapviewer.services.QueryException;
import lcsb.mapviewer.services.interfaces.IUserService; import lcsb.mapviewer.services.interfaces.IUserService;
@RestController @RestController
@RequestMapping(value = "/projects/{projectId:.+}/models", produces = MediaType.APPLICATION_JSON_VALUE) @RequestMapping(value = "/api/projects/{projectId:.+}/models", produces = MediaType.APPLICATION_JSON_VALUE)
public class ModelController extends BaseController { public class ModelController extends BaseController {
Logger logger = LogManager.getLogger(); Logger logger = LogManager.getLogger();
......
...@@ -12,7 +12,7 @@ import lcsb.mapviewer.api.BaseController; ...@@ -12,7 +12,7 @@ import lcsb.mapviewer.api.BaseController;
import lcsb.mapviewer.services.QueryException; import lcsb.mapviewer.services.QueryException;
@RestController @RestController
@RequestMapping(value = "/projects/{projectId}/models/{modelId}/", produces = MediaType.APPLICATION_JSON_VALUE) @RequestMapping(value = "/api/projects/{projectId}/models/{modelId}/", produces = MediaType.APPLICATION_JSON_VALUE)
public class BioEntitiesController extends BaseController { public class BioEntitiesController extends BaseController {
private BioEntitiesRestImpl bioEntitiesRestImpl; private BioEntitiesRestImpl bioEntitiesRestImpl;
......
...@@ -12,7 +12,7 @@ import lcsb.mapviewer.api.BaseController; ...@@ -12,7 +12,7 @@ import lcsb.mapviewer.api.BaseController;
import lcsb.mapviewer.services.QueryException; import lcsb.mapviewer.services.QueryException;
@RestController @RestController
@RequestMapping(value = "/projects/{projectId}/models/{modelId}/bioEntities/elements", produces = MediaType.APPLICATION_JSON_VALUE) @RequestMapping(value = "/api/projects/{projectId}/models/{modelId}/bioEntities/elements", produces = MediaType.APPLICATION_JSON_VALUE)
public class ElementsController extends BaseController { public class ElementsController extends BaseController {
private ElementsRestImpl projectController; private ElementsRestImpl projectController;
......
...@@ -11,7 +11,7 @@ import lcsb.mapviewer.api.BaseController; ...@@ -11,7 +11,7 @@ import lcsb.mapviewer.api.BaseController;
import lcsb.mapviewer.services.QueryException; import lcsb.mapviewer.services.QueryException;
@RestController @RestController
@RequestMapping("/projects/{projectId}/models/{modelId}/bioEntities/reactions") @RequestMapping("/api/projects/{projectId}/models/{modelId}/bioEntities/reactions")
public class ReactionsController extends BaseController { public class ReactionsController extends BaseController {
private ReactionsRestImpl reactionController; private ReactionsRestImpl reactionController;
......
...@@ -12,7 +12,7 @@ import lcsb.mapviewer.api.BaseController; ...@@ -12,7 +12,7 @@ import lcsb.mapviewer.api.BaseController;
import lcsb.mapviewer.services.QueryException; import lcsb.mapviewer.services.QueryException;
@RestController @RestController
@RequestMapping(value = "/projects/{projectId}/models/{modelId}/functions", produces = MediaType.APPLICATION_JSON_VALUE) @RequestMapping(value = "/api/projects/{projectId}/models/{modelId}/functions", produces = MediaType.APPLICATION_JSON_VALUE)
public class FunctionsController extends BaseController { public class FunctionsController extends BaseController {
private FunctionsRestImpl functionController; private FunctionsRestImpl functionController;
......
...@@ -12,7 +12,7 @@ import lcsb.mapviewer.api.BaseController; ...@@ -12,7 +12,7 @@ import lcsb.mapviewer.api.BaseController;
import lcsb.mapviewer.services.QueryException; import lcsb.mapviewer.services.QueryException;
@RestController @RestController
@RequestMapping(value = "/projects/{projectId}/models/{modelId}/parameters", produces = MediaType.APPLICATION_JSON_VALUE) @RequestMapping(value = "/api/projects/{projectId}/models/{modelId}/parameters", produces = MediaType.APPLICATION_JSON_VALUE)
public class ParametersController extends BaseController { public class ParametersController extends BaseController {
private ParametersRestImpl parameterController; private ParametersRestImpl parameterController;
......
...@@ -11,7 +11,7 @@ import lcsb.mapviewer.api.BaseController; ...@@ -11,7 +11,7 @@ import lcsb.mapviewer.api.BaseController;
import lcsb.mapviewer.services.QueryException; import lcsb.mapviewer.services.QueryException;
@RestController @RestController
@RequestMapping(value = "/projects/{projectId}/models/{modelId}/publications", produces = MediaType.APPLICATION_JSON_VALUE) @RequestMapping(value = "/api/projects/{projectId}/models/{modelId}/publications", produces = MediaType.APPLICATION_JSON_VALUE)
public class PublicationsController extends BaseController { public class PublicationsController extends BaseController {
private PublicationsRestImpl projectController; private PublicationsRestImpl projectController;
......
Markdown is supported
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