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/08/13 13:47:13 UTC
svn commit: r1695684 -
/olingo/site/trunk/content/doc/odata4/tutorials/sqo_es/tutorial_sqo_es.mdtext
Author: mibo
Date: Thu Aug 13 11:47:12 2015
New Revision: 1695684
URL: http://svn.apache.org/r1695684
Log:
Fixed formatting issues
Modified:
olingo/site/trunk/content/doc/odata4/tutorials/sqo_es/tutorial_sqo_es.mdtext
Modified: olingo/site/trunk/content/doc/odata4/tutorials/sqo_es/tutorial_sqo_es.mdtext
URL: http://svn.apache.org/viewvc/olingo/site/trunk/content/doc/odata4/tutorials/sqo_es/tutorial_sqo_es.mdtext?rev=1695684&r1=1695683&r2=1695684&view=diff
==============================================================================
--- olingo/site/trunk/content/doc/odata4/tutorials/sqo_es/tutorial_sqo_es.mdtext (original)
+++ olingo/site/trunk/content/doc/odata4/tutorials/sqo_es/tutorial_sqo_es.mdtext Thu Aug 13 11:47:12 2015
@@ -205,14 +205,14 @@ In this tutorial we use the simple imple
In order to understand the `$expand` system query option, letâs first quickly recap what weâve learned in the navigation-tutorial:
- 1. In order to be able to navigate from one entity to another entity, we need at least 2 EntityTypes and at least one NavigationProperty
+ 1. In order to be able to navigate from one entity to another entity, we need at least 2 EntityTypes and at least one NavigationProperty
![Metadata](metadataNav.jpg "Declaring the navigation in the metadata")
- 1. We can invoke one single entity, e.g. display one product:
+ 1. We can invoke one single entity, e.g. display one product:
![Products(1)SingleRead](responseProducts_1.jpg "The result of a single read")
1. And we can follow the navigation to the second entity, by appending the navigation property name, e.g. invoke the category of that product.
- As weâve seen in the metadata above, the name of the navigation property is *Category*
+ As weâve seen in the metadata above, the name of the navigation property is *Category*
![Products(1)NavToCat](responseProducts_1_navCat.jpg "Navigating from a Product to its Category")
We have executed two requests to our OData service, in order to obtain the data for the product and for its related category.
@@ -409,8 +409,8 @@ Some samples:
* Expand an navigation with only the first entity:
* <http://localhost:8080/DemoService/DemoService.svc/Categories?$expand=Products($top=1)>
- **NOTE:** In current `4.0.0-beta-03` version of Olingo is a minor bug which prevents the expand of a navigation which has the same name as an EntitySet (see [OLINGO-741](https://issues.apache.org/jira/browse/OLINGO-741)).
- Hence above link will work with latest SNAPSHOT version or the final `4.0.0` release.
+ **NOTE:** In current `4.0.0-beta-03` version of Olingo is a minor bug which prevents the expand of a navigation which has the same name as an EntitySet (see [OLINGO-741](https://issues.apache.org/jira/browse/OLINGO-741)).
+ Hence above link will work with latest SNAPSHOT version or the final `4.0.0` release.
* A common use case would be the following request, where all products are displayed along with their corresponding category, but only the interesting properties:
* <http://localhost:8080/DemoService/DemoService.svc/Products?$select=Name,Description&$expand=Category($select=Name)>
@@ -452,9 +452,9 @@ After building and deploying your servic
* <http://localhost:8080/DemoService/DemoService.svc/Categories(1)?$select=Name>
* Using `$expand`
- * <http://localhost:8080/DemoService/DemoService.svc/Products(1)?$expand=Category>
- * <http://localhost:8080/DemoService/DemoService.svc/Products(1)?$expand=Category>
- * <http://localhost:8080/DemoService/DemoService.svc/Categories(1)?$expand=Products>
+ * <http://localhost:8080/DemoService/DemoService.svc/Products(1)?$expand=Category>
+ * <http://localhost:8080/DemoService/DemoService.svc/Products(1)?$expand=Category>
+ * <http://localhost:8080/DemoService/DemoService.svc/Categories(1)?$expand=Products>
**NOTE:** In current `4.0.0-beta-03` version of Olingo is a minor bug which prevents the expand of a navigation which has the same name as an EntitySet (see [OLINGO-741](https://issues.apache.org/jira/browse/OLINGO-741)).
Hence above link will work with latest SNAPSHOT version or the final `4.0.0` release.
* <http://localhost:8080/DemoService/DemoService.svc/Categories(1)?$expand=*>