Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
uhm....isnt that the entire premise of a REST Api ?
sysvinit8604yI mean he can response to my call for success or failure. Instead he will reply success for my every calls and want me to write another endpoint for him to call for actual response.
Simplicity is overrated!
Just say it's done automatically
@beggarboy the acknowledgement endpoint?
@AL1L No. Everything.
A Rest Api gets or sets some data on call
and then tells you "yeah that worked, or fuck off, or who are you even"
To me the entire problem should be able to be solved within having a standard issue REST Api.
That "acknowledgement" endpoint for the message, seems to me like the message a Rest Api likes to give you after every call by default.
@beggarboy one of the rules for a REST API is that communication is stateless, so an acknowledgement endpoint breaks that.
@AL1L not really. It depends on what that endpoint does.
@pokerface is his function synchronous? Perhaps it needs a callback URL to post the body if the finalized response.
linuxxx34*client calls in* Me: good morning, how can I help you? Client: my ip is blocked, could you unblock it for m...
DRSDavidSoft29Found this in our codebase, apparently one of my co-workers had written this
linuxxx23*client calls* "hello, we forgot the password to our WiFi router. Could you reset that for us?" 😐😶😮...
I built an api to sync data between two systems. It is simple, if I have new data to send, I call their api with data. If success, get Json response back or error if not.
Today the guy from other side asked me for "acknowledgement" endpoint. I was literally WTF?
He explained me very clear, when I call their api, it can be either success or fail, so for those success or fail, he will send the response to my "ACKNOWLEDGEMENT ENDPOINT" to tell me if success or not.