Subversion Repositories SmartDukaan

Rev

Rev 23273 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23273 Rev 23568
Line 1... Line 1...
1
package com.spice.profitmandi.web.controller;
1
package com.spice.profitmandi.web.controller;
2
 
2
 
3
import javax.servlet.http.HttpServletRequest;
3
import javax.servlet.http.HttpServletRequest;
4
 
4
 
5
import org.slf4j.Logger;
5
import org.apache.logging.log4j.Logger;
6
import org.slf4j.LoggerFactory;
6
import org.apache.logging.log4j.LogManager;
7
import org.springframework.beans.factory.annotation.Autowired;
7
import org.springframework.beans.factory.annotation.Autowired;
8
import org.springframework.http.ResponseEntity;
8
import org.springframework.http.ResponseEntity;
9
import org.springframework.stereotype.Controller;
9
import org.springframework.stereotype.Controller;
10
import org.springframework.transaction.annotation.Transactional;
10
import org.springframework.transaction.annotation.Transactional;
11
import org.springframework.web.bind.annotation.RequestMapping;
11
import org.springframework.web.bind.annotation.RequestMapping;
Line 24... Line 24...
24
public class ApiController {
24
public class ApiController {
25
	
25
	
26
	@Autowired
26
	@Autowired
27
	private ResponseSender<?> responseSender;
27
	private ResponseSender<?> responseSender;
28
	
28
	
29
	private static final Logger LOGGER=LoggerFactory.getLogger(ApiController.class);
29
	private static final Logger LOGGER=LogManager.getLogger(ApiController.class);
30
	
30
	
31
	@Autowired
31
	@Autowired
32
	private ApiRepository apiRepository;
32
	private ApiRepository apiRepository;
33
	
33
	
34
	@RequestMapping(value = ProfitMandiConstants.URL_API, method=RequestMethod.POST)
34
	@RequestMapping(value = ProfitMandiConstants.URL_API, method=RequestMethod.POST)