Update restapi.java