You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by mi...@apache.org on 2015/04/28 13:36:17 UTC

svn commit: r1676495 - /olingo/site/trunk/content/doc/odata4/tutorials/read/tutorial_read.mdtext

Author: mibo
Date: Tue Apr 28 11:36:17 2015
New Revision: 1676495

URL: http://svn.apache.org/r1676495
Log:
CMS commit to olingo by mibo

Modified:
    olingo/site/trunk/content/doc/odata4/tutorials/read/tutorial_read.mdtext

Modified: olingo/site/trunk/content/doc/odata4/tutorials/read/tutorial_read.mdtext
URL: http://svn.apache.org/viewvc/olingo/site/trunk/content/doc/odata4/tutorials/read/tutorial_read.mdtext?rev=1676495&r1=1676494&r2=1676495&view=diff
==============================================================================
--- olingo/site/trunk/content/doc/odata4/tutorials/read/tutorial_read.mdtext (original)
+++ olingo/site/trunk/content/doc/odata4/tutorials/read/tutorial_read.mdtext Tue Apr 28 11:36:17 2015
@@ -52,12 +52,27 @@ At the end of this tutorial, you’ll
 http://localhost:8080/DemoService/DemoService.svc/Products
 
 And the browser will display the following little collection of data:
-![productCollection](productCollectionPayload.png "The product collection")
 
-
-```json
-{"@odata.context":"$metadata#Products","value":[{"ID":1,"Name":"Notebook Basic 15","Description":"Notebook Basic, 1.7GHz - 15 XGA - 1024MB DDR2 SDRAM - 40GB"},{"ID":2,"Name":"1UMTS PDA","Description":"Ultrafast 3G UMTS/HSDPA Pocket PC, supports GSM network"},{"ID":3,"Name":"Ergo Screen","Description":"17 Optimum Resolution 1024 x 768 @ 85Hz, resolution 1280 x 960"}]}
-```
+    {
+      "@odata.context": "$metadata#Products",
+      "value": [
+        {
+          "ID": 1,
+          "Name": "Notebook Basic 15",
+          "Description": "Notebook Basic, 1.7GHz - 15 XGA - 1024MB DDR2 SDRAM - 40GB"
+        },
+        {
+          "ID": 2,
+          "Name": "1UMTS PDA",
+          "Description": "Ultrafast 3G UMTS/HSDPA Pocket PC, supports GSM network"
+        },
+        {
+          "ID": 3,
+          "Name": "Ergo Screen",
+          "Description": "17 Optimum Resolution 1024 x 768 @ 85Hz, resolution 1280 x 960"
+        }
+      ]
+    }
 
 
 **Table of Contents**
@@ -148,63 +163,62 @@ Furthermore, the pom.xml file tells Mave
 
 In our example, the pom.xml file looks as follows:
 
-```xml
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-	<modelVersion>4.0.0</modelVersion>
-	<groupId>my.group.id</groupId>
-	<artifactId>DemoService</artifactId>
-	<packaging>war</packaging>
-	<version>0.0.1</version>
-
-	<name>DemoService Maven Webapp</name>
-
-	<properties>
-		<javax.version>2.5</javax.version>
-		<odata.version>4.0.0-beta-02</odata.version>
-		<slf4j.version>1.7.7</slf4j.version>
-	</properties>
-
-	<dependencies>
-		<dependency>
-			<groupId>javax.servlet</groupId>
-			<artifactId>servlet-api</artifactId>
-			<version>${javax.version}</version>
-			<scope>provided</scope>
-		</dependency>
-
-		<dependency>
-			<groupId>org.apache.olingo</groupId>
-			<artifactId>odata-server-api</artifactId>
-			<version>${odata.version}</version>
-		</dependency>
-		<dependency>
-			<groupId>org.apache.olingo</groupId>
-			<artifactId>odata-server-core</artifactId>
-			<version>${odata.version}</version>
-			<scope>runtime</scope>
-		</dependency>
-
-		<dependency>
-			<groupId>org.apache.olingo</groupId>
-			<artifactId>odata-commons-api</artifactId>
-			<version>${odata.version}</version>
-		</dependency>
-		<dependency>
-			<groupId>org.apache.olingo</groupId>
-			<artifactId>odata-commons-core</artifactId>
-			<version>${odata.version}</version>
-		</dependency>
-
-		<dependency>
-			<groupId>org.slf4j</groupId>
-			<artifactId>slf4j-simple</artifactId>
-			<version>${slf4j.version}</version>
-			<scope>runtime</scope>
-		</dependency>
-	</dependencies>
-</project>
-```
+    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    	<modelVersion>4.0.0</modelVersion>
+    	<groupId>my.group.id</groupId>
+    	<artifactId>DemoService</artifactId>
+    	<packaging>war</packaging>
+    	<version>0.0.1</version>
+
+    	<name>DemoService Maven Webapp</name>
+
+    	<properties>
+    		<javax.version>2.5</javax.version>
+    		<odata.version>4.0.0-beta-02</odata.version>
+    		<slf4j.version>1.7.7</slf4j.version>
+    	</properties>
+
+    	<dependencies>
+    		<dependency>
+    			<groupId>javax.servlet</groupId>
+    			<artifactId>servlet-api</artifactId>
+    			<version>${javax.version}</version>
+    			<scope>provided</scope>
+    		</dependency>
+
+    		<dependency>
+    			<groupId>org.apache.olingo</groupId>
+    			<artifactId>odata-server-api</artifactId>
+    			<version>${odata.version}</version>
+    		</dependency>
+    		<dependency>
+    			<groupId>org.apache.olingo</groupId>
+    			<artifactId>odata-server-core</artifactId>
+    			<version>${odata.version}</version>
+    			<scope>runtime</scope>
+    		</dependency>
+
+    		<dependency>
+    			<groupId>org.apache.olingo</groupId>
+    			<artifactId>odata-commons-api</artifactId>
+    			<version>${odata.version}</version>
+    		</dependency>
+    		<dependency>
+    			<groupId>org.apache.olingo</groupId>
+    			<artifactId>odata-commons-core</artifactId>
+    			<version>${odata.version}</version>
+    		</dependency>
+
+    		<dependency>
+    			<groupId>org.slf4j</groupId>
+    			<artifactId>slf4j-simple</artifactId>
+    			<version>${slf4j.version}</version>
+    			<scope>runtime</scope>
+    		</dependency>
+    	</dependencies>
+    </project>
+
 
 **Check Java build path**
 
@@ -273,9 +287,8 @@ This document defines the contract, such
 
 The metadata document can be invoked via the following URI:
 
-```html
- <serviceroot>/$metadata
-```
+    <serviceroot>/$metadata
+
 
 Furthermore, OData specifies the usage of the so-called service document
 Here, the user can see which Entity Collections are offered by an OData service.