Initial revision of RestAPI server