added failure controller

added "GET" api for failure types
separated get all types from report repo.