fini Restful API and add documentation