implemented csv format response for most paths on rest service