on ‎2023 Nov 17 10:40 AM
Hi Team,
We have a requirement to create new endpoint in ordermanagement webservices i.e. for example '/ordermanagemenwebservices/newapi'.
Lets say this endpoint is not available in out of the box SAP Commerce cloud platform code and we want to create it now with the webroot as /ordermanagementwebservices only.
As we no longer use yoccaddon(deprecated) template in 2211 version and order management webservices is not an occ extension, we are looking for ways to extend / customize non occ webservices.
Looking forward to some help and information around this.
Request clarification before answering.
Hi saiksbece
The short answer is that you cannot customize the "ordermanagementwebservices" endpoint (there is a longer answer). The extension "ordermanagementwebservices" is part of the managed code offering for SAP Commerce Cloud; extending the endpoint might increase the effort for upgrades in the future.
Now for the longer answer...
Recommended Approach - Utilize ywebservices
Utilize the ywebservices extension to create a custom webservice endpoint only for the new API endpoint. With the new endpoint, don't replicate endpoints from "ordermanagementwebservices" unless exactly needed. Using this method keeps the "ordermanagementwebservices" free from customizations, which should help with upgradability in the future.
The downside to this method is that your new endpoint won't share the same "webroot" as the rest of the "ordermenagementwebservices".
Less optimal approach - Create a custom extension based off of "ordermanagementwebservices"
You would utilize the codebase from "ordermanagementwebservices" in order to create a new "customordermanagementwebservices" (changing the name as necessary). This ensures that the API is able to work within the "ordermanagementwebservices" webroot (different from the ywebservices)
This method is not great for upgradeability, because you would need to backport any changes from the "ordermanagementwebservices" to the "customordermanagementwebservices" upon any Update Releases, potentially increasing the level of effort for upgrades.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.