28.01.2013 Views

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Query Parameters<br />

$format<br />

This parameter controls the output format. The default format is ATOM. However, the other supported option is<br />

JSON, which can be triggered by setting the $format=json.<br />

● URI Construct:<br />

/.xsodata//$format=<br />

● Sample URI:<br />

http://hanaxs:8000/sample/hello/hello_odata.xsodata/Entries/$format=json<br />

● Sample Output:<br />

$filter<br />

A parameter that allows you to restrict the entities in the entity set. This option builds a dynamic WHERE condition<br />

into the underlying query.<br />

● URI Construct:<br />

/.xsodata//$filter = ''<br />

● Sample URI:<br />

http://hanaxs:8000/sample/hello/hello_odata.xsodata/Entries/?<br />

$filter=CREATED%20eq%20datetime'2012-05-14T08:28:44.405'<br />

● Sample ATOM Output:<br />

176<br />

P U B L I C<br />

© 2012 <strong>SAP</strong> AG. All rights reserved.<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Developer</strong> <strong>Guide</strong><br />

Defining Web-based Data Access

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!