1. Oracle ATG Commerce
Demonstrate OOTB Rest Services
on
Commerce Reference Store
Sham Gatupa & Dheeraj Sharma
McFadyen Solutions
2. SOFEA & SOUI
• What is Web Application Architecture in
future?
• Is MVC slowly dying?
• SOFEA : Service-Oriented Front End
Architecture
• SOUI : Service-Oriented User Interface
• JSON : JavaScript Object Notation
3. Rest Calls (against CRS application)
• Target URL from CAS to Desktop version:
– http://localhost:8080/crs/init.html
• Login URL:
– http://localhost:8080/rest/bean/atg/userprofiling/ProfileServices/loginUser
– (Post method with arguments: arg1=stuart@example.com arg2=password)
– Instead of loginUser we will change to loginWithCAS(input will be CAS Ticket and source
• Get Current Shopping cart:
– http://localhost:8080/rest/bean/atg/commerce/ShoppingCart/current
• Get Current Order Id:
– http://localhost:8080/rest/bean/atg/commerce/order/OrderServices/getCurrentOrderId
• Add item to Cart:
– http://localhost:8080/rest/bean/atg/commerce/order/OrderServices/addItemToOrder
• Submit Order:
– http://localhost:8080/rest/bean/atg/commerce/order/OrderServices/submitOrderWith
Reprice
• Create new Order(because previous order is submitted):
– http://localhost:8080/rest/bean/atg/commerce/ShoppingCart/current (New order with
state INCOMPLETE is created)