Relative Content

Tag Archive for javaresttomcat

How to redirect post requests to another class in Tomcat

I am trying to integrate my java application (deployed on tomcat 9) to whatsapp, using the api provided by facebook without any partner (such as twilio). After reading the documentation provided by facebook, I understand that I need to develop a webhook rest service which will be called by facebook using get (for verification purpose) and post (for notification purpose) methods. The development is done using a low code platform which doesn’t allow the same class to be access trough post and get, so I must have two different rest services, each with its own behavior, lets call them webhooksget y webhookspost.