Skip to Content
0

SAP HANA REST API.

May 29, 2017 at 04:46 PM

185

avatar image
Former Member

Hi,I need to extract the metadata from SAP HANA Database using REST API.

I found this link : https://help.sap.com/doc/f32a797a5ec94d8ba4d7ed240d95bfae/2.0.01/en-US/tutorial-API___.html

Can you guys explain this link, i mean request parameters?

Thank you,

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Frank Schuler
May 29, 2017 at 04:59 PM
0

Please check the Using the SAP HANA REST API documentation.

Best regards

Frank

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

I find some code in Metadata API.

Which code it is ?

var strPayloadFromJava = "{}";
var strHeaderServiceName = "checkMetadataExistence";
var strSapBackPack = strPayloadFromJava;
var strAccessPath = cMetaDataAccessP + '/VIEW/RT/TABLES';  
var request = new $.net.http.Request($.net.http.GET, strAccessPath);  
request.headers.set('SapBackPack', strSapBackPack); 
request.headers.set('Service-Name', strHeaderServiceName);         
var response = client.request(request, destination).getResponse();


0
Thomas Jung
May 31, 2017 at 03:53 PM
0

A word of caution about using this REST API. It is implemented in XSC and reliant upon the HANA Repository - both things which are obsolete and will be removed in the future. XSA and HDI do not support this REST API. So before developing something new using this REST API, note the limited future it might have.

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Thanks Thomas,

Actually, i am using SAP HANA Studio is installed in Windows and HANA Database is installed in Linux.

My question's are,

1) Can i use this REST API's (https://help.sap.com/http.svc/rc/f32a797a5ec94d8ba4d7ed240d95bfae/2.0.01/en-US/tutorial-API___.html) for extract the metadata from HANA Database?

2)If not, how can i extract the metadata?I can see the metadata in SAP HANA Studio.

Please help me,

0

Yes this REST API exposes some metadata but with the warning I gave above.

0