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

use crate::api_default_imports::*;

api_client!(PhotosApiClient, PhotosIdApiClient, ResourceIdentity::Photos);

impl PhotosApiClient {
    get!(
        doc: "Get photos from users",
        name: list_photos,
        path: "/photos"
    );
    get!(
        doc: "Get the number of the resource",
        name: count,
        path: "/photos/$count"
    );
}

impl PhotosIdApiClient {
    get!(
        doc: "Get photos from users",
        name: get_photos,
        path: "/photos/{{RID}}"
    );
    get!(
        doc: "Get media content for the navigation property photos from users",
        name: get_photos_content,
        path: "/photos/{{RID}}/$value"
    );
    put!(
        doc: "Update media content for the navigation property photos in users",
        name: update_photos_content,
        path: "/photos/{{RID}}/$value",
        body: true
    );
}