0

I have to design a REST API which accepts few query parameters, fetches a template from database and then sends the whatsapp message to a particular user.

My question is which API method is most suitable and should be used for sending notifications to users?

Should it be GET method, POST method or any other method?

In response, it just sends a success message or error message.

Aditya
  • 362
  • 2
  • 12
  • Does this answer your question? [When should I use GET or POST method? What's the difference between them?](https://stackoverflow.com/questions/504947/when-should-i-use-get-or-post-method-whats-the-difference-between-them) – derpirscher Apr 06 '22 at 10:53
  • No, I have searched everywhere and haven't got any answer as to which method should be used since neither am I retrieving data and sending it in response nor am I updating something in database. – Aditya Apr 06 '22 at 11:06
  • Is the question what request method _your_ API endpoint should use - or is this about the WhatsApp API? – CBroe Apr 06 '22 at 11:16
  • Yes, the question is what request method API endpoint should use? – Aditya Apr 06 '22 at 12:20

0 Answers0