Skip to content

Latest commit

 

History

History
79 lines (49 loc) · 3.68 KB

PersonsApi.md

File metadata and controls

79 lines (49 loc) · 3.68 KB

\PersonsApi

All URIs are relative to http://localhost

Method HTTP request Description
get_person GET /Persons/{name} Get person by name.
get_persons GET /Persons Gets all persons.

get_person

crate::models::BaseItemDto get_person(name, user_id) Get person by name.

Parameters

Name Type Description Required Notes
name String Person name. [required]
user_id Option<uuid::Uuid> Optional. Filter by user id, and attach user data.

Return type

crate::models::BaseItemDto

Authorization

CustomAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/json; profile=CamelCase, application/json; profile=PascalCase

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_persons

crate::models::BaseItemDtoQueryResult get_persons(limit, search_term, fields, filters, is_favorite, enable_user_data, image_type_limit, enable_image_types, exclude_person_types, person_types, appears_in_item_id, user_id, enable_images) Gets all persons.

Parameters

Name Type Description Required Notes
limit Option<i32> Optional. The maximum number of records to return.
search_term Option<String> The search term.
fields Option<Veccrate::models::ItemFields> Optional. Specify additional fields of information to return in the output.
filters Option<Veccrate::models::ItemFilter> Optional. Specify additional filters to apply.
is_favorite Option<bool> Optional filter by items that are marked as favorite, or not. userId is required.
enable_user_data Option<bool> Optional, include user data.
image_type_limit Option<i32> Optional, the max number of images to return, per image type.
enable_image_types Option<Veccrate::models::ImageType> Optional. The image types to include in the output.
exclude_person_types Option<Vec> Optional. If specified results will be filtered to exclude those containing the specified PersonType. Allows multiple, comma-delimited.
person_types Option<Vec> Optional. If specified results will be filtered to include only those containing the specified PersonType. Allows multiple, comma-delimited.
appears_in_item_id Option<uuid::Uuid> Optional. If specified, person results will be filtered on items related to said persons.
user_id Option<uuid::Uuid> User id.
enable_images Option<bool> Optional, include image information in output. [default to true]

Return type

crate::models::BaseItemDtoQueryResult

Authorization

CustomAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/json; profile=CamelCase, application/json; profile=PascalCase

[Back to top] [Back to API list] [Back to Model list] [Back to README]