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

com.capitalone.dashboard.rest.UserInfoController Maven / Gradle / Ivy

There is a newer version: 3.4.53
Show newest version
package com.capitalone.dashboard.rest;

import java.util.Collection;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.capitalone.dashboard.model.UserInfo;
import com.capitalone.dashboard.service.UserInfoService;

@RestController
@RequestMapping("/users")
public class UserInfoController {
    
	private UserInfoService userInfoService;
	
	@Autowired
	public UserInfoController(UserInfoService userInfoService) {
		this.userInfoService = userInfoService;
	}
	
	@RequestMapping(method = RequestMethod.GET)
    public Collection getUsers() {
        return userInfoService.getUsers();
    }
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy