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
// GENERATED CODE

use crate::api_default_imports::*;

resource_api_client!(
    InvitationsApiClient,
    InvitationsIdApiClient,
    ResourceIdentity::Invitations
);

impl InvitationsApiClient {
    post!(
        doc: "Create invitation",
        name: create_invitation,
        path: "/invitations",
        body: true
    );
    get!(
        doc: "Get entities from invitations",
        name: list_invitation,
        path: "/invitations"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_invitations_count,
        path: "/invitations/$count"
    );
}

impl InvitationsIdApiClient {
    delete!(
        doc: "Delete entity from invitations",
        name: delete_invitation,
        path: "/invitations/{{RID}}"
    );
    get!(
        doc: "Get entity from invitations by key",
        name: get_invitation,
        path: "/invitations/{{RID}}"
    );
    patch!(
        doc: "Update entity in invitations",
        name: update_invitation,
        path: "/invitations/{{RID}}",
        body: true
    );
    get!(
        doc: "Get invitedUser from invitations",
        name: get_invited_user,
        path: "/invitations/{{RID}}/invitedUser"
    );
}