I have a Get request: \allTopic
It inputs a filterCriteria
custom object which contains multiple fields and one of those is an Enum called Role
, which is either student or teacher
And there are many more different API calls with different Enums. So I want to create @controllerAdvice that can handle all these.
I need help with
- Annotations to put in the Get API controller function header
- Annotations to put in the filterCriteria class
- What particular exception to handle in @exceptionHandler in @controlleradvice