microsoftgraph / microsoftgraph/msgraph-sdk-java
PostRequestConfiguration doesn't allow setting of query parameters
Nessuno ha ancora preso questa issue.
- Lingua principale
- Java
- Stelle
- 444
- Fork
- 154
- Merge medio
- 18h 28m
- PR unite (30g)
- 4
Descrizione
Describe the bug
When getting a list of users by IDs it is possible to filter and select further with the use of query paramters (same as the get request for all / one user). Unfornuately the Java SDK doesn't allow that. The PostRequestConfiguration only allows to modify the headers of the request.
Expected behavior
Same as the get request:
List<DirectoryObject> page = graphServiceClient.users().getByIds().post(body, config -> {
config.queryParameters.select = new String[] {"onPremisesSamAccountName", "userPrincipalName",
"department"};
}).getValue();
How to reproduce
see above
SDK Version
6.36.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Configuration
No response
Other information
No response
Guida per i contributori
Apri 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.
Direzione di ricerca
Inizia individuando il PostRequestConfiguration dell'Java SDK e il percorso della richiesta users().getByIds().post. Confronta la gestione della configurazione con quella della richiesta GET corrispondente, quindi aggiungi test che dimostrino che è possibile fornire parametri di query come select e applicarli alla richiesta.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- api
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 55/100