Skip to content

Commit c6f84e2

Browse files
committed
fix: adds org contacts annotations
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
1 parent f02f974 commit c6f84e2

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

additions/main.tsp

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
11
import "@microsoft/typespec-msgraph";
22

3-
using Http;
4-
@service(#{ title: "Microsoft Graph" })
5-
namespace Microsoft.Graph;
3+
using MsGraph;
64

7-
@entity()
8-
model OrgContact {
9-
}
5+
@publicNamespace("microsoft.graph")
6+
@container("GraphService")
7+
namespace microsoft.graph {
8+
9+
@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

Comments
 (0)