You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by ch...@apache.org on 2015/10/06 13:50:54 UTC
svn commit: r1707014 -
/olingo/site/trunk/content/doc/odata4/tutorials/action/tutorial_action.mdtext
Author: chrish
Date: Tue Oct 6 11:50:54 2015
New Revision: 1707014
URL: http://svn.apache.org/viewvc?rev=1707014&view=rev
Log:
CMS commit to olingo by chrish
Modified:
olingo/site/trunk/content/doc/odata4/tutorials/action/tutorial_action.mdtext
Modified: olingo/site/trunk/content/doc/odata4/tutorials/action/tutorial_action.mdtext
URL: http://svn.apache.org/viewvc/olingo/site/trunk/content/doc/odata4/tutorials/action/tutorial_action.mdtext?rev=1707014&r1=1707013&r2=1707014&view=diff
==============================================================================
--- olingo/site/trunk/content/doc/odata4/tutorials/action/tutorial_action.mdtext (original)
+++ olingo/site/trunk/content/doc/odata4/tutorials/action/tutorial_action.mdtext Tue Oct 6 11:50:54 2015
@@ -560,6 +560,31 @@ Execute the action and set the response
# 4. Run the implemented service
+After building and deploying your service to your server, you can try the following requests:
+
+**Functions (Called via GET)**
+
+ * [http://localhost:8080/DemoService-Action/DemoService.svc/CountCategories(Amount=2)](http://localhost:8080/DemoService-Action/DemoService.svc/CountCategories(Amount=2))
+ * [http://localhost:8080/DemoService-Action/DemoService.svc/CountCategories(Amount=2)(0)](http://localhost:8080/DemoService-Action/DemoService.svc/CountCategories(Amount=2)(0))
+
+**Actions (Called via POST)**
+*Note:* Set the Content-Type header to: Content-Type: application/json
+
+* [http://localhost:8080/DemoService-Action/DemoService.svc/Reset](http://localhost:8080/DemoService-Action/DemoService.svc/Reset)
+ Content:
+
+ ::::json
+ { }
+
+* [http://localhost:8080/DemoService-Action/DemoService.svc/Reset](http://localhost:8080/DemoService-Action/DemoService.svc/Reset)
+ Content:
+
+ ::::json
+ { "Amount": 1 }
+
+To verify that the service has been reseted, you can request the collection of products
+
+* [http://localhost:8080/DemoService-Action/DemoService.svc/Products](http://localhost:8080/DemoService-Action/DemoService.svc/Products)
# 5. Links
### Tutorials