sitecore8 - How can I wrap the Sitecore 8 itemWebApi to apply custom business logic to API responses? -


i have requirement build service endpoint provide specific sitecore 8.0 items (containing given field value in given branch of content tree) requesting mobile app clients. encapsulating logic (and perhaps other calculations, etc) means out-of-the-box api not suitable.

i'd mimic existing soap service exposed cms, i'm not above using modified version of restful itemwebapi if confers greater code reusability or upgrade-safety.

based on research thusfar, appear options build custom handler, separate asmx service (ala this approach), or build custom controller (similar this custom web api controller method).

overriding or replacing default pipeline processors itemwebapi not seem viable, don't want replace/modify oob api if can avoid it.

has same type of requirement sitecore 8 found better approach?

the approach chose create separate service "router" developed using adapter pattern consumed our mobile app clients. router in turn calls sitecore itemwebapi.

this fit needs best decoupled sitecore application , client can modified if necessary without impacting endpoint.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -