Function backend::routes::burrow::show_burrow [−][src]
pub async fn show_burrow(
db: Connection<PgDb>,
burrow_id: i64,
page: Option<usize>,
_auth: Auth
) -> (Status, Result<Json<BurrowShowResponse>, Json<ErrorResponse>>)Expand description
Show a Specific Burrow with Up to Ten Posts
Parameters
Auth: Authenticated userConnection<PgDb>: Postgres connectioni64: Burrow idOption<usize>: Page number for burrow
Returns
Status: HTTP statusBurrowShowResponse: Burrow detail information, including burrow information and up to 10 posts
Errors
ErrorResponse: Error messageErrorCode::BurrowNotExistErrorCode::DatabaseErr