Loading src/main/java/es/redmic/api/maintenance/administrative/controller/ResourceTypeController.java 0 → 100644 +43 −0 Original line number Diff line number Diff line package es.redmic.api.maintenance.administrative.controller; /*- * #%L * API * %% * Copyright (C) 2019 REDMIC Project / Server * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import es.redmic.api.maintenance.common.controller.RWDomainController; import es.redmic.db.maintenance.administrative.model.ResourceType; import es.redmic.db.maintenance.administrative.service.ResourceTypeService; import es.redmic.es.maintenance.domain.administrative.service.ResourceTypeESService; import es.redmic.models.es.common.query.dto.SimpleQueryDTO; import es.redmic.models.es.maintenance.administrative.dto.ResourceTypeDTO; @RestController @RequestMapping(value = "${controller.mapping.RESOURCE_TYPE}") public class ResourceTypeController extends RWDomainController<ResourceType, es.redmic.models.es.maintenance.administrative.model.ResourceType, ResourceTypeDTO, SimpleQueryDTO> { @Autowired public ResourceTypeController(ResourceTypeService service, ResourceTypeESService serviceES) { super(service, serviceES); } } src/main/resources/application.properties +1 −0 Original line number Diff line number Diff line Loading @@ -194,6 +194,7 @@ controller.mapping.PROJECT_GROUPS=/projectgroups controller.mapping.SCOPES=/scopes controller.mapping.COUNTRIES=/countries controller.mapping.THEME_INSPIRE=/themeinspire controller.mapping.RESOURCE_TYPE=/resourcetypes controller.mapping.ORGANISATION_CONTACT_AND_ROLE=/organisationcontactrole controller.mapping.ORGANISATION_AND_ROLE=/organisationrole Loading Loading
src/main/java/es/redmic/api/maintenance/administrative/controller/ResourceTypeController.java 0 → 100644 +43 −0 Original line number Diff line number Diff line package es.redmic.api.maintenance.administrative.controller; /*- * #%L * API * %% * Copyright (C) 2019 REDMIC Project / Server * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import es.redmic.api.maintenance.common.controller.RWDomainController; import es.redmic.db.maintenance.administrative.model.ResourceType; import es.redmic.db.maintenance.administrative.service.ResourceTypeService; import es.redmic.es.maintenance.domain.administrative.service.ResourceTypeESService; import es.redmic.models.es.common.query.dto.SimpleQueryDTO; import es.redmic.models.es.maintenance.administrative.dto.ResourceTypeDTO; @RestController @RequestMapping(value = "${controller.mapping.RESOURCE_TYPE}") public class ResourceTypeController extends RWDomainController<ResourceType, es.redmic.models.es.maintenance.administrative.model.ResourceType, ResourceTypeDTO, SimpleQueryDTO> { @Autowired public ResourceTypeController(ResourceTypeService service, ResourceTypeESService serviceES) { super(service, serviceES); } }
src/main/resources/application.properties +1 −0 Original line number Diff line number Diff line Loading @@ -194,6 +194,7 @@ controller.mapping.PROJECT_GROUPS=/projectgroups controller.mapping.SCOPES=/scopes controller.mapping.COUNTRIES=/countries controller.mapping.THEME_INSPIRE=/themeinspire controller.mapping.RESOURCE_TYPE=/resourcetypes controller.mapping.ORGANISATION_CONTACT_AND_ROLE=/organisationcontactrole controller.mapping.ORGANISATION_AND_ROLE=/organisationrole Loading