graph_rs_sdk/agreements/
request.rs1use crate::api_default_imports::*;
4
5api_client!(
6 AgreementsApiClient,
7 AgreementsIdApiClient,
8 ResourceIdentity::Agreements
9);
10
11impl AgreementsApiClient {
12 post!(
13 doc: "Add new entity to agreements",
14 name: create_agreement,
15 path: "/agreements",
16 body: true
17 );
18 get!(
19 doc: "Get entities from agreements",
20 name: list_agreement,
21 path: "/agreements"
22 );
23}
24
25impl AgreementsIdApiClient {
26 delete!(
27 doc: "Delete entity from agreements",
28 name: delete_agreement,
29 path: "/agreements/{{RID}}"
30 );
31 get!(
32 doc: "Get entity from agreements by key",
33 name: get_agreement,
34 path: "/agreements/{{RID}}"
35 );
36 patch!(
37 doc: "Update entity in agreements",
38 name: update_agreement,
39 path: "/agreements/{{RID}}",
40 body: true
41 );
42 post!(
43 doc: "Create new navigation property to acceptances for agreements",
44 name: create_acceptances,
45 path: "/agreements/{{RID}}/acceptances",
46 body: true
47 );
48 get!(
49 doc: "List acceptances",
50 name: list_acceptances,
51 path: "/agreements/{{RID}}/acceptances"
52 );
53 get!(
54 doc: "Get the number of the resource",
55 name: get_acceptances_count,
56 path: "/agreements/{{RID}}/acceptances/$count"
57 );
58 delete!(
59 doc: "Delete navigation property acceptances for agreements",
60 name: delete_acceptances,
61 path: "/agreements/{{RID}}/acceptances/{{id}}",
62 params: agreement_acceptance_id
63 );
64 get!(
65 doc: "Get acceptances from agreements",
66 name: get_acceptances,
67 path: "/agreements/{{RID}}/acceptances/{{id}}",
68 params: agreement_acceptance_id
69 );
70 patch!(
71 doc: "Update the navigation property acceptances in agreements",
72 name: update_acceptances,
73 path: "/agreements/{{RID}}/acceptances/{{id}}",
74 body: true,
75 params: agreement_acceptance_id
76 );
77}