cancel
Showing results for 
Search instead for 
Did you mean: 

API from OData service

b_deterd2
Active Contributor

Has anyone succeeded in creating an API from an on-premise odata service ?

Seems not possible with API Management Cloud Edition. I am getting the error:

Uncaught SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse (<anonymous>) at constructor.eval (apiProxy.controller.js:2076) at p (sap-ui-core.js:115) at k (library-preload.js:1991) at library-preload.js:2035 at XMLHttpRequest.p9 (datajs.js:17)

Accepted Solutions (0)

Answers (2)

Answers (2)

ElijahM
Advisor
Advisor
0 Kudos

This topic has not been addressed in some time, but I will mention that the migration for Trial users to having the OnPrem connector has been completed. I have verified with Development and also personally tested on my own Trial account that it is working.

Please reach out in case you still are having issues to sapapimanagementinfo@sap.com .

Regards,
Elijah

svenhuberti
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Bert,

API Management is agnostic in regards to what format the REST API is. It may be OData, JSON, XML, ....
To answer your primary question: yes, I have succeeded several times to create an API from an OData API.
It should not matter if your API is implemented in the cloud or on-premises. However, I highly recommend using the cloud connector to simplify things.

On what environment are you working? Is your tenant enabled to have the API calls over the cloud connector? AFAIK, this must be enabled for trial tenants.

Cheers,
Sven

0 Kudos

Hello Sven,

I am not sure, which environment does Bert use, but I am using a trial account at hanatrial.ondemand.com with an active Cloud Connector. The problem is actually that I cannot save (even a draft of) my API and no matter how do I define it. After I press save the cockpit just "hangs" showing the bubbles for ever. The Developer tools show the same error as for Bert. Any ideas?

Thanks and best regards,

Denis

ElijahM
Advisor
Advisor
0 Kudos

This should have been resolved. Can you let us know if this is still an issue for you guys? If so, perhaps we can take a look at your specific landscapes.