Hi Expert,
As a background, I'm used to developing web service/customer proxy using SOAP as the protocol.
However, in this occasion, the other system (let's say system A) requested us to use REST since they already have the API.
The interaction is quite simple, whenever user create or update BP, our SAP system will send this information to system A through REST protocol.
The issue here is the entity does not have MODIFY operation that can Update or Create based on whether the BP already exist or not in system A.
The system A REST API itself has SEARCH operation but cannot search based on SAP BP number.
Due to this limitation, the other party suggested that SAP call the search functionality to get all BP in system A and scanned entire result in SAP to identify whether the entries already exist or not in system A. If entry exist, call UPDATE operation, if not, call CREATE operation.
Coming from conventional developer background, I found that this approach is not the one that I would normally recommended considering the data flow of the entire BP records from/to SAP and system A. My preference is the scanning to be done in their system and SAP only send CREATE or UPDATE operation based on the result of scanning in system A.
Since I never develop REST interface before, is it common in REST to use this kind of approach?
Thank you.
Cheers,
Abraham