add the restful api to download & fix the details bug