-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
href of entity set respected? #161
Comments
Hi @rene312, could you please enable logging and provide the request and the response: https://pyodata.readthedocs.io/en/latest/usage/advanced.html#enable-logging If from logging will be apparent that it is certificate problem (just a guess from the info so far), check https://pyodata.readthedocs.io/en/latest/usage/initialization.html |
py_odata_trace.txt |
Hi Phanak, Search through the trace, I see that we have Though client.entity_sets.APIs exists as method. Rene. |
Ooops, PyOData supports only 1 schema per Metadata: python-pyodata/pyodata/v2/model.py Line 2601 in 3975ed5
|
I am not so familiar with oData or Python, but the following worked in my case. Don't know if it breaks other cases: I added the lines
to method def init of class EntitySetProxy as shown below. class EntitySetProxy:
|
Hello,
I am trying to access the entity set “APIs” of https://api.sap.com/odata/1.0/catalog.svc/
If I execute https://api.sap.com/odata/1.0/catalog.svc/ in the browser I get
APIsHowever if I execute
client.entity_sets.APIs.get_entities().execute()
in python while tracing the url’s I see:
https://api.sap.com:443 "GET /odata/1.0/catalog.svc/APIs HTTP/1.1" 200 None
this naturally does not work as the URL path should be https://api.sap.com/odata/1.0/catalog.svc/APIContent.APIs/ (which does work in the browser).
Am I using the API wrong? What should I be executing instead of client.entity_sets.APIs.get_entities().execute() ?
Best regards,
Rene.
The text was updated successfully, but these errors were encountered: