cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How can we extend or customize non occ webservices like ordermanagementwebservices in 2211 version?

skotni
Explorer
0 Likes
906

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.

Accepted Solutions (1)

Accepted Solutions (1)

adamreisberg
Active Participant

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.

skotni
Explorer
0 Likes

Thank you Adam for taking your time to review and answer my question.
We will evaluate both the options and work on it accordingly.

Answers (0)