All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.mosip.kernel.masterdata.controller.ApplicationConfigController Maven / Gradle / Ivy

There is a newer version: 1.2.1.0
Show newest version
package io.mosip.kernel.masterdata.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import io.mosip.kernel.core.http.ResponseFilter;
import io.mosip.kernel.core.http.ResponseWrapper;
import io.mosip.kernel.masterdata.dto.getresponse.ApplicationConfigResponseDto;
import io.mosip.kernel.masterdata.service.ApplicationConfigService;
import io.swagger.annotations.Api;

@Api(tags = { "Application Configs" })
@RestController
@RequestMapping("/applicationconfigs")
public class ApplicationConfigController {

	@Autowired
	private ApplicationConfigService applicationService;
	
	@PreAuthorize("hasAnyRole('GLOBAL_ADMIN','ZONAL_ADMIN')")
	@ResponseFilter
	@GetMapping
	public ResponseWrapper getAllApplication() {
		ResponseWrapper responseWrapper = new ResponseWrapper<>();
		responseWrapper.setResponse(applicationService.getLanguageConfigDetails());
		return responseWrapper;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy