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.

○ Multiple Keys: http://hanaxs:8000/sap./sflight/spfli.xsodata/<br />

FLIGHTS(CARRID='AA',CONNID='0017')/CITYFROM<br />

● Sample URI:<br />

○ Single Key: http://hanaxs:8000/sample/hello/hello_odata.xsodata/Entries(1)/<br />

TEXT<br />

○ Multiple Key: http://hanaxs:8000/sap./sflight/spfli.xsodata/<br />

FLIGHTS(CARRID='AA',CONNID='0017')/CITYFROM<br />

● Sample ATOM Output:<br />

● Sample JSON Output:<br />

$metadata<br />

This parameter requests that the OData service return a special document that describes the structure of the<br />

service itself. All properties, their data types, and all associations and relationships are described in this<br />

document.<br />

● URI Construct:<br />

/.xsodata/$metadata<br />

● Sample URI:<br />

http://hanaxs:8000/sample/hello/hello_odata.xsodata/$metadata<br />

● Sample Output:<br />

172<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!