SAP / SAP/python-pyodata

href of entity set respected?

Open
#161 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
268
Forks
100
PR merge metrics
No merged PRs in 30d

Description

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

APIs

However 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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the client.entity_sets.APIs.get_entities().execute() entry point and trace the URL it generates for the SAP OData service. Compare the generated path with the collection href APIContent.APIs; done means determining whether the href is respected or documenting the correct supported call.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.