lundi 20 juillet 2020

Using result of an API call to POST/PUT it into another API

Im quite new using api calls. I wonder if it is a proper programming design to use the result of a GET call to PUT or POST it into an other API.

Example: Server A has product datas. A script will do a GET call and save the product datas into arrays. After that a script will do a POST or PUT call to import these datas into Server B. The API structure of Server A and B is completly different. The script would be php or python. Server A has a PHP-API. Server B has a REST-API.

Is this a good way? If not what would be the recommended way of handling this scenario?

Aucun commentaire:

Enregistrer un commentaire