graph_rs_sdk/solutions/custom_questions/
request.rs

1// GENERATED CODE
2
3use crate::api_default_imports::*;
4
5api_client!(
6    CustomQuestionsApiClient,
7    CustomQuestionsIdApiClient,
8    ResourceIdentity::CustomQuestions
9);
10
11impl CustomQuestionsApiClient {
12    post!(
13        doc: "Create bookingCustomQuestion",
14        name: create_custom_questions,
15        path: "/customQuestions",
16        body: true
17    );
18    get!(
19        doc: "List customQuestions",
20        name: list_custom_questions,
21        path: "/customQuestions"
22    );
23    get!(
24        doc: "Get the number of the resource",
25        name: get_custom_questions_count,
26        path: "/customQuestions/$count"
27    );
28}
29
30impl CustomQuestionsIdApiClient {
31    delete!(
32        doc: "Delete bookingCustomQuestion",
33        name: delete_custom_questions,
34        path: "/customQuestions/{{RID}}"
35    );
36    get!(
37        doc: "Get bookingCustomQuestion",
38        name: get_custom_questions,
39        path: "/customQuestions/{{RID}}"
40    );
41    patch!(
42        doc: "Update bookingCustomQuestion",
43        name: update_custom_questions,
44        path: "/customQuestions/{{RID}}",
45        body: true
46    );
47}