microsoftgraph / microsoftgraph/msgraph-sdk-php
Support nested expansion deserialization - ex Read SharePoint List
まだ誰も着手していません。
- 主要言語
- PHP
- スター
- 669
- フォーク
- 150
- 平均マージ
- 15時間 21分
- マージ済み PR(30日)
- 3
説明
Hi team,
I am a bit of a rookie but keen to see if this is an issue or if I am doing something wrong. I have searched everywhere but can't seem to find a solution so sorry if this is the wrong place to log this.
I am trying to read the data from a SharePoint list. It is working within the API explorer but not when I move it into PHP. In the API explorer I am hitting the below endpoint:
When I do the below code in PHP it brings back the columns but the items are coming back in an empty array:
$list = $graph->createRequest("GET", "/sites/{site-id}/lists/{list-id}/?expand=columns,items(expand=columns)")
->setReturnType(Model\Site::class)
->execute();
Any help would be really appreciated!
Thanks
Sam
AB#7976
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、Model\Site::class を戻り値の型として使用して、/sites/{site-id}/lists/{list-id}/?expand=columns,items(expand=columns) に対する PHP の createRequest 呼び出しを再現し、API Explorer のレスポンスと比較します。ネストされた items とその columns がどのようにデシリアライズされるかを追跡し、返された items に空の配列ではなく展開されたデータが含まれていることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- php
- 領域
- api
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 28/100