microsoftgraph / microsoftgraph/msgraph-sdk-java

Question - Page through a collection using the Microsoft Graph SDKs - v6.29.0

未关闭
#2,391 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

status:waiting-for-triage
主要语言
Java
星标
444
派生
154
平均合并
18 小时 28 分钟
30 天内合并 PR
4

描述

When passing through collection and readding the header to requestConfigurator of PageIterator.Builder
Do I need to add the header as encoded key or not
For example readding the select header
requestInfo.addQueryParameter("%24select", new String[]{"name", "displayName", "id", "webUrl", "isPersonalSite"});
or
requestInfo.addQueryParameter("$select", new String[]{"name", "displayName", "id", "webUrl", "isPersonalSite"});

According to the documentation in
https://learn.microsoft.com/en-us/graph/sdks/paging?tabs=java
it appeared it's needed to encode the key

Thanks,
Itay

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 issue 中链接的 Microsoft Graph 分页文档和 Java PageIterator.Builder requestConfigurator 示例开始。比较用于 $select header 的两种 requestInfo.addQueryParameter 形式,然后记录正确的形式,并在需要时更新相关指导。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
api
Issue 类型
文档
难度
1/5
预计耗时
1 小时以内
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。