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/21 09:53:07 UTC
svn commit: r1709737 -
/olingo/site/trunk/content/doc/odata4/tutorials/action/tutorial_action.mdtext
Author: chrish
Date: Wed Oct 21 07:53:07 2015
New Revision: 1709737
URL: http://svn.apache.org/viewvc?rev=1709737&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=1709737&r1=1709736&r2=1709737&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 Wed Oct 21 07:53:07 2015
@@ -21,6 +21,12 @@ Notice: Licensed to the Apache Softwa
# Part 6: Action Imports and Function Imports
+**Table of Contents**
+
+[TOC]
+
+## 1. Introduction
+
In the present tutorial, weâll implement a function import and an action import as well.
**Note:**
@@ -28,13 +34,6 @@ The final source code can be found in th
A detailed description how to checkout the tutorials can be found [here](/doc/odata4/tutorials/prerequisites/prerequisites.html).
This tutorial can be found in subdirectory `/samples/tutorials/p9_action`
-
-**Table of Contents**
-
-[TOC]
-
-# 1. Introduction
-
The [OData V4 specification](http://docs.oasis-open.org/odata/odata/v4.0/errata02/os/complete/part1-protocol/odata-v4.0-errata02-os-part1-protocol-complete.html#_Toc406398201) gives us a definition what *Functions*, *Actions* are:
> Operations allow the execution of custom logic on parts of a data
@@ -122,7 +121,7 @@ As a shortcut you should checkout the pr
Afterwards do a Deploy and run: it should be working. At this state you can perform CRUD operations and do navigations between products and categories.
-# 3.1 Implementation
+## 3.1 Implementation
We will using the given data model you are familiar with. To keep things simple we implement one function import and one action import.
@@ -159,7 +158,7 @@ While actions are called by using HTTP M
* Extend the entity collection and the entity processor to handle function imports
* Implement an action processor
-## 3.1 Extend the Metadata model
+### 3.1 Extend the Metadata model
Create the following constants in the DemoEdmProvider. These constants are used to address the operations.
@@ -495,7 +494,7 @@ Next we will implement the processor to
}
-## 3.4 Implement an action processor
+### 3.4 Implement an action processor
Create a new class `DemoActionProcessor` make them implement the interface `ActionVoidProcessor`.
@@ -553,7 +552,7 @@ Execute the action and set the response
response.setStatusCode(HttpStatusCode.NO_CONTENT.getStatusCode());
}
-# 4. Run the implemented service
+## 4. Run the implemented service
After building and deploying your service to your server, you can try the following requests: