Adding methods to get request parameters, return specific JSON responses, validation class