Replies: 1 comment
-
That looks pretty well detailed to me and probably covering almost all the scenarios :) I adhere! Awesome thinking @jansenbe ! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Today we do make SharePoint REST and Microsoft Graph calls. For SharePoint REST the possible ODATA query options are consistent and things work fine, for Graph however there's a lot of inconsistency that today results in failing Graph queries. Adding additional attributes will further help to prevent bad queries and throw detailed exceptions instead. Below table defines possible extra metadata to collect:
Having this metadata in place will allow to throw meaningful exceptions when:
We could implement above via 3 new attributes (using 2 base class attributes):
SharePointPermissionsAttribute
andGraphPermissionsAttribute
for the app-only and scope related settings. This attribute must be applicable on the type but also on a method on the type. Method permissions would be added on top of a selected base type scopeGraphODataAttribute
for the odata related property settings for GraphSamples:
This applies to #38, #67 and #68.
Tagging @PaoloPia , @ypcode , @pkbullock and @JarbasHorst for awareness.
Beta Was this translation helpful? Give feedback.
All reactions