graph_rs_sdk/solutions/appointments/
request.rs

1// GENERATED CODE
2
3use crate::api_default_imports::*;
4
5api_client!(
6    AppointmentsApiClient,
7    AppointmentsIdApiClient,
8    ResourceIdentity::Appointments
9);
10
11impl AppointmentsApiClient {
12    post!(
13        doc: "Create bookingAppointment",
14        name: create_appointments,
15        path: "/appointments",
16        body: true
17    );
18    get!(
19        doc: "List appointments",
20        name: list_appointments,
21        path: "/appointments"
22    );
23    get!(
24        doc: "Get the number of the resource",
25        name: get_appointments_count,
26        path: "/appointments/$count"
27    );
28}
29
30impl AppointmentsIdApiClient {
31    delete!(
32        doc: "Delete bookingAppointment",
33        name: delete_appointments,
34        path: "/appointments/{{RID}}"
35    );
36    get!(
37        doc: "Get bookingAppointment",
38        name: get_appointments,
39        path: "/appointments/{{RID}}"
40    );
41    patch!(
42        doc: "Update bookingAppointment",
43        name: update_appointments,
44        path: "/appointments/{{RID}}",
45        body: true
46    );
47    post!(
48        doc: "Invoke action cancel",
49        name: cancel,
50        path: "/appointments/{{RID}}/cancel",
51        body: true
52    );
53}