Add ping endpoint

This commit is contained in:
Andras Schmelczer 2024-12-10 21:36:32 +00:00
parent 66fbdbf368
commit a67bac63b6
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
3 changed files with 18 additions and 0 deletions

View file

@ -52,6 +52,12 @@ impl From<StoredDocumentVersion> for DocumentVersionWithoutContent {
}
}
#[derive(Debug, Clone, Serialize, JsonSchema)]
#[serde(rename_all = "camelCase")]
pub struct PingResponse {
pub server_version: String,
}
#[derive(Debug, Clone, Serialize, JsonSchema)]
#[serde(rename_all = "camelCase")]
pub struct DocumentVersion {