We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f02f974 commit c6f84e2Copy full SHA for c6f84e2
1 file changed
additions/main.tsp
@@ -1,9 +1,21 @@
1
import "@microsoft/typespec-msgraph";
2
3
-using Http;
4
-@service(#{ title: "Microsoft Graph" })
5
-namespace Microsoft.Graph;
+using MsGraph;
6
7
-@entity()
8
-model OrgContact {
9
-}
+@publicNamespace("microsoft.graph")
+@container("GraphService")
+namespace microsoft.graph {
+
+ @entity()
10
+ model OrgContact extends SharedModels.entity {
11
+ displayName: string | null
12
+ }
13
+ @graphRoute("contacts/{id}")
14
+ interface OrgContactsById extends Resource<OrgContact> {
15
+ @select GetResource is GraphOps.GetResource;
16
17
+ @graphRoute("contacts")
18
+ interface OrgContacts extends Collection<OrgContact> {
19
+ @orderBy("displayName") @filter("*") @search @count @select @top GetCollection is GraphOps.GetPagedCollection;
20
21
+}
0 commit comments