add editFile

add rest method and setYear in the fileOperation