1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// GENERATED CODE

use crate::api_default_imports::*;

api_client!(
    AppointmentsApiClient,
    AppointmentsIdApiClient,
    ResourceIdentity::Appointments
);

impl AppointmentsApiClient {
    post!(
        doc: "Create bookingAppointment",
        name: create_appointments,
        path: "/appointments",
        body: true
    );
    get!(
        doc: "List appointments",
        name: list_appointments,
        path: "/appointments"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_appointments_count,
        path: "/appointments/$count"
    );
}

impl AppointmentsIdApiClient {
    delete!(
        doc: "Delete bookingAppointment",
        name: delete_appointments,
        path: "/appointments/{{RID}}"
    );
    get!(
        doc: "Get bookingAppointment",
        name: get_appointments,
        path: "/appointments/{{RID}}"
    );
    patch!(
        doc: "Update bookingAppointment",
        name: update_appointments,
        path: "/appointments/{{RID}}",
        body: true
    );
    post!(
        doc: "Invoke action cancel",
        name: cancel,
        path: "/appointments/{{RID}}/cancel",
        body: true
    );
}