I am new to AWS. I have a scenario wherein I am supposed to write Lambda functions for different requests(POST, GET, PUT, DELETE).
As I am doing it in java, I implemented the interface "RequestHandler". I need to override a method "handleRequest".
My question is: Is it possible to write a single java class with different functions to handle different requests(POST, GETC, etc) because there is only one "handleRequest"? I tried with a different randomly named method "handleReques"(removed t to test) to test but that didn't work and I got an exception on AWS console
{
"errorMessage": "No public method named handleReques with appropriate method signature found on class
If possible can someone share how?
Or do I need to write different classes for different request types?
Thanks in advance