Spatial Analyst Utility SOE
This solution (developed in c#) creates a SOE Rest for arcgis server 10.7 for these operations:
Installation:
a) upload file Studioat.ArcGis.Soe.Rest.SAUtility.soe (see https://resources.arcgis.com/en/help/main/10.1/0154/0154000004sm000000.htm)
b) create a service map and enable the extension ‘Spatial Analyst Utility’ in capabilities.
c) Watershed operation
https://hostname/instanceags/rest/services/yourservice/MapServer/exts/SAUtility/watershed
Parameters:
In capabilities (operations allowed) you can allow these operations (Watershed).
I have added in file zip an example in api esri javascript to see how to use it.
You only need edit config.js. I have added data used for demo
The solutions are checked 100% with stylecop