graph_rs_sdk/invitations/
request.rs1use crate::api_default_imports::*;
4
5api_client!(
6 InvitationsApiClient,
7 InvitationsIdApiClient,
8 ResourceIdentity::Invitations
9);
10
11impl InvitationsApiClient {
12 post!(
13 doc: "Create invitation",
14 name: create_invitation,
15 path: "/invitations",
16 body: true
17 );
18 get!(
19 doc: "Get entities from invitations",
20 name: list_invitation,
21 path: "/invitations"
22 );
23 get!(
24 doc: "Get the number of the resource",
25 name: get_invitations_count,
26 path: "/invitations/$count"
27 );
28}
29
30impl InvitationsIdApiClient {
31 delete!(
32 doc: "Delete entity from invitations",
33 name: delete_invitation,
34 path: "/invitations/{{RID}}"
35 );
36 get!(
37 doc: "Get entity from invitations by key",
38 name: get_invitation,
39 path: "/invitations/{{RID}}"
40 );
41 patch!(
42 doc: "Update entity in invitations",
43 name: update_invitation,
44 path: "/invitations/{{RID}}",
45 body: true
46 );
47 get!(
48 doc: "Get invitedUser from invitations",
49 name: get_invited_user,
50 path: "/invitations/{{RID}}/invitedUser"
51 );
52}