Send information to Rest and trigger notification

Asked

Viewed 84 times

0

I’m in doubt in the construction of a REST, not well in construction, but which way to go, what approach. See my business.

1) The customer asks for a discount.

2) As the seller is not allowed to grant certain discount margins, he amends a flag from the bank to 0(zero). At this point, you must send information to a REST service and this triggers a notification. The Notification code I already have. I just want to know if the REST is with the verb POST or not? We usually use the POST to record in the bank and this time not, I will use only to indicate to the service that it must trigger a Notification. How would that be?

What goes into service, could be anything, like, a OK or Shoots, doesn’t matter, what matters is that the service receives something and understands that it is to fire a PN(Push Notification)

  • have you considered instead of changing a flag, enter a record and keep the history of all authorization requests ?

  • @Rovannlinhalis, you can’t do that. It’s a client base, I don’t have access and they said it, because it already works like this, not with App, but on their Desktop it’s already like that. I just deselvovi the App for them(Android) and then IOS.

  • ok. in your case, if you are going to send some information to the server, use POST yes...

  • I’m used to (not much) using post with Insert. This time no and will work almost as a get, IE, I will take the parameter and when receiving, trigger the PN. There will be no persistence.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.