Add Graph API version to base URI
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- PHP
- Stelle
- 16
- Fork
- 8
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoftgraph/msgraph-sdk-php-core
-
status:waiting-for-triage type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
microsoftgraph/msgraph-sdk-php-core#230 · 1 commento ·
-
status:waiting-for-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
microsoftgraph/msgraph-sdk-php-core#227 · 2 commenti · 1 reazione ·
-
status:waiting-for-triage type:bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
-
Expose "isCaeEnabled" to customersForse di nuovo libera @agilan11 l’ha presa 625 giorni fa e non c’è nessuna pull request aperta. Apertaarea:authentication goodfirstissue type:enhancement
microsoftgraph/msgraph-sdk-php-core#202 · 4 commenti · 1 assegnatario ·
-
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 attachmentForse di nuovo libera @SilasKenneth l’ha presa 1152 giorni fa e non c’è nessuna pull request aperta. Aperta
microsoftgraph/msgraph-sdk-php-core#132 · 1 commento · 1 assegnatario ·
Tutte le issue di microsoftgraph/msgraph-sdk-php-core
Issue simili
-
type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
bug No Code Attached Yet
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
joomla/joomla-cms#48556 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
sync-en
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
I maintainer di solito rispondono entro 1 giorno
-
sync-en
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 3 giorni
-
Перевод устарел
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100