package net.davidvoid.thor.lightning.webservice;

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() {
		return "hello world";
	}
}

@@ -43,16 +43,94 @@
 rvice;%0A%0A
+import java.util.Enumeration;%0A%0Aimport javax.servlet.http.HttpServletRequest;%0A%0A
 import o
@@ -184,16 +184,16 @@
 apping;%0A
-
 import o
@@ -493,34 +493,748 @@
 ome(
-) %7B%0A%09%09return %22hello world%22
+HttpServletRequest req) %7B%0A%09    Enumeration%3CString%3E it = req.getAttributeNames();%0A%09    while (it.hasMoreElements()) %7B%0A%09        String name = it.nextElement();%0A%09        System.out.println(name + %22 = %22 + req.getAttribute(name));%0A%09    %7D%0A%09%09return %22hello world%22;%0A%09%7D%0A%09%0A%09@RequestMapping(value = %22/%7Busername%7D%22, method = RequestMethod.PUT)%0A%09public String register() %7B%0A%09    return null;%0A%09%7D%0A%09%0A%09@RequestMapping(value = %22/%7Busername%7D/login%22, method = RequestMethod.POST)%0A%09public String login() %7B%0A%09    return null;%0A%09%7D%0A%09%0A%09@RequestMapping(value = %22/%7Busername%7D/logout%22, method = RequestMethod.POST)%0A%09public String logout() %7B%0A%09    return 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

add user services