Add Graph API version to base URI
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start by reading GraphClientFactory and the existing base_uri configuration, using the request examples in this issue as the expected entry points. The work is done when the factory uses Graph API version v1.0 by default, allows selecting beta, and requests no longer need a version prefix in their paths.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Is your feature request related to a problem? Please describe the problem.
Currently, the base URI only contains the national cloud host, meaning each request needs a Graph API version prefix:
$httpClient = GraphClientFactory::createWithConfig($config);
$response = $httpClient->get("/v1.0/me");
Current workaround is to override the base_uri via config:
$httpClient = GraphClientFactory::createWithConfig(['base_uri' => NationalCloud::Global + "/v1.0"]);
$response = $httpClient->get("/me");
This would be a breaking change.
Describe the solution you'd like.
Support setting the Graph API version via the factory & default to v1.0
(With default v1.0)
$httpClient = GraphClientFactory::create();
$response = $httpClient->get("/me");
Or to change to beta
$httpClient = GraphClientFactory::setApiVersion('beta')::create();
$response = $httpClient->get("/me");
Additional context?
No response
- Ngôn ngữ chính
- PHP
- Star
- 16
- Fork
- 8
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoftgraph/msgraph-sdk-php-core
-
status:waiting-for-triage type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
microsoftgraph/msgraph-sdk-php-core#230 · 1 bình luận ·
-
status:waiting-for-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
microsoftgraph/msgraph-sdk-php-core#227 · 2 bình luận · 1 reaction ·
-
status:waiting-for-triage type:bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
-
Expose "isCaeEnabled" to customersCó thể làm lại được @agilan11 đã nhận 629 ngày trước và không có pull request nào đang mở. Đang mởarea:authentication goodfirstissue type:enhancement
microsoftgraph/msgraph-sdk-php-core#202 · 4 bình luận · 1 người được giao ·
-
Outlook returns a 201 with no response body & no content-type header causing a deserialization error. Response contains a Location header with a URL to the attachmentCó thể làm lại được @SilasKenneth đã nhận 1155 ngày trước và không có pull request nào đang mở. Đang mở
microsoftgraph/msgraph-sdk-php-core#132 · 1 bình luận · 1 người được giao ·
Tất cả issue của microsoftgraph/msgraph-sdk-php-core
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Awaiting Triage bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
freshrss: Unable to update feedsCó thể đã có người làm @Stunkymonkey đã nhận hôm nay. Đang mở0.kind: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
NixOS/nixpkgs#571043 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
product / databases
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
VilnaCRM-Org/user-service#525 ·
Maintainer thường phản hồi trong vòng 21 ngày