SAP / SAP/python-pyodata

href of entity set respected?

オープン
#161 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug
主要言語
Python
スター
268
フォーク
100
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

client.entity_sets.APIs.get_entities().execute() のエントリーポイントから始め、SAP OData service 用に生成される URL を追跡します。生成されたパスを collection href APIContent.APIs と比較します。href が尊重されるかどうかを判断するか、正しくサポートされる呼び出しを文書化すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
api
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。