package com.vogella.jersey.first;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

import com.vogella.jersey.first.response.Response;
import com.vogella.jersey.first.response.ResponseManager;

@Path("/login")
public class LoginService {

	@GET
	@Produces(MediaType.APPLICATION_JSON)
	public String service(@QueryParam("id")String id,@QueryParam("password")String password) {
		Response response = ResponseManager.getInstance().getLoginResponse(id,password);
		return response.toJson();
	}
	
} 