fix HttpApiServlet method deserialization