-
Hi, I'm following the How to create a custom Microsoft Graph Java client library tutorial by Maisa Rissi to generate only a subset of Graph definitions for my own purposes. Everything seems to work ok great with exception to generating API requests for fetching a ServicePrincipal's Endpoints. I really have tried all possible kiota generate --openapi https://raw.githubusercontent.com/microsoftgraph/msgraph-metadata/master/openapi/v1.0/openapi.yaml --language java \
--output lib/src/main/java/my/package/msgraph/apiclient --co --ebc \
--class-name GraphBaseServiceClient --namespace-name msgraph.apiclient --backing-store \
--include-path '/users*#GET' --include-path '/users/getByIds' --include-path '/users/**/memberOf' \
--include-path '/servicePrincipals**#GET' --include-path '/servicePrincipals/**#GET' --include-path '**endpoints**' --include-path '**servicePrincipals**' kiota --version
1.16.0+f7ce8b88eefa1c00cb6f87dd48335baac96d2cc9 Neither EndpointsRequestBuilder, nor ServicePrincipalItemRequestBuilder.java#endpoints() get generated. Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @petarov kiota generate --openapi https://raw.githubusercontent.com/microsoftgraph/msgraph-metadata/master/openapi/v1.0/openapi.yaml --language java --output lib --ebc --class-name GraphBaseServiceClient --namespace-name msgraph.apiclient --backing-store --include-path '/users*#GET' --include-path '/users/getByIds' --include-path '/users/**/memberOf' --include-path '/servicePrincipals/*/endpoints#GET' Let us know if you have further questions. |
Beta Was this translation helpful? Give feedback.
Hi @petarov
Thanks for reaching out and for using kiota.
Using this as the filter
/servicePrincipals/*/endpoints#GET
generated the endpoints section.The full command I used
Let us know if you have further questions.