package net.davidvoid.thor.lightning.webservice;

import java.util.Enumeration;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by david on 3/20/16.
 */
@RestController
@RequestMapping("/users")
public class UserService {
	
	@RequestMapping(method = RequestMethod.GET)
	public String welcome(HttpServletRequest req) {
		return "hello world";
	}
	
	@RequestMapping(value = "/{username}", method = RequestMethod.PUT)
	public String register() {
	    return null;
	}
	
	@RequestMapping(value = "/{username}/login", method = RequestMethod.POST)
	public String login() {
	    return null;
	}
	
	@RequestMapping(value = "/{username}/logout", method = RequestMethod.POST)
	public String logout() {
	    return null;
	}
	
	@RequestMapping(value = "/{username}", method = RequestMethod.GET)
	public String getUser() {
	    return null;
	}
}

@@ -47,39 +47,8 @@
 e;%0A%0A
-import java.util.Enumeration;%0A%0A
 impo
@@ -624,32 +624,149 @@
 turn null;%0A%09%7D%0A%09%0A
+%09@RequestMapping(value = %22/%7Busername%7D%22, method = RequestMethod.GET)%0A%09public String getUser() %7B%0A%09    return null;%0A%09%7D%0A%0A
 %09@RequestMapping
@@ -1001,122 +1001,6 @@
 %7D%0A%09%0A
-%09@RequestMapping(value = %22/%7Busername%7D%22, method = RequestMethod.GET)%0A%09public String getUser() %7B%0A%09    return null;%0A%09%7D%0A
 %7D%0A

remove unused import