userlib::remote::user_remote

Function find_by_id

Source
pub fn find_by_id(
    id: Uuid,
    headers: HeaderMap,
) -> Result<ShortUserResponse, String>
Expand description

Returns a ShortUserResponse. Gives information about the provided user id.

§Example

§Data

URL: get - “user/{user_id}”

Required Role: Registered

§Caching

This is a cached function that uses the FIND_BY_ID cached static.