feat(presentation): /federation/lookup and /federation/follow endpoints

This commit is contained in:
2026-05-14 20:06:55 +02:00
parent a08bb3d698
commit 31487882e0
5 changed files with 153 additions and 1 deletions

View File

@@ -80,3 +80,9 @@ pub struct SearchQuery {
pub page: Option<u64>,
pub per_page: Option<u64>,
}
#[derive(serde::Deserialize, utoipa::ToSchema)]
#[serde(rename_all = "camelCase")]
pub struct FollowRemoteRequest {
pub handle: String,
}

View File

@@ -87,3 +87,12 @@ pub struct CreatedApiKeyResponse {
/// Raw API key — shown only once at creation
pub key: String,
}
#[derive(Serialize, utoipa::ToSchema)]
#[serde(rename_all = "camelCase")]
pub struct RemoteActorResponse {
pub handle: String,
pub display_name: Option<String>,
pub avatar_url: Option<String>,
pub url: String,
}