@GET
    @Path("newContact")
    public Response newContact(@QueryParam("firstName")String firstName,
                               @QueryParam("lastName")String lastName,
                               @QueryParam("phone")String phone){
        WebResource contactResource = client.resource("http://localhost:8080/contact");
        ClientResponse response = contactResource.type(MediaType.APPLICATION_JSON)
                .post(ClientResponse.class, new Contact(0, firstName, lastName, phone));
        if(response.getStatus() == 201){
            return Response.status(302).entity("The contact was created successfully! The new contact can be found at" +
                    "" + response.getHeaders().getFirst("Location")).build();
        }else{
            return Response.status(422).entity(response.
                    getEntity(String.class)).build();
        }
    }