How to implement this callBackUrl parameter in my api call?

Viewed 24

I am working on an android application which will be used to send a robot to one location to another using android app. In my API documentation this new thing callBackUrl has come and I believe this callBackUrl will give me the status of my robot. I dont know how to implement this as before this I only integrated simple restApi with my android application.

enter image description here

callBackUrl is parameter and explanation is "The notification callback interface, which should use POST method. The latest task message is sent in body. The format of body is the same as the response body of Query remote call". I dont understand what is it trying to say.

here is another explanation: enter image description here

My question is "What should be the callbackurl?". I have my local Strapi server in my laptop. "shall I create a api url of type POST there and all my data of callback will be there?"

Kindly make me understand this concept how can I implement this step by step. As I am novice in the programming and Trying to learn the concepts.

NOte: The Create remote call api is used to send robot to a particular location. and generate a taskNo.

1 Answers

The callback url general used for the async task, when you commit a task the server can't process it immediately, so you need to give a callbackUrl to receive the message when the task is over.

You need to start a HTTP server to receive the msg of the task, such as "success","fail" ...

Related