Integrated rest, case classes