RESTful api for files