java rest api post example with parameters