implement get index meta

This commit is contained in:
mpostma 2021-02-04 12:34:12 +01:00
parent 8d462afb79
commit f1c09a54be
No known key found for this signature in database
GPG key ID: CBC8A7C1D7A28C3A
4 changed files with 26 additions and 12 deletions

View file

@ -83,15 +83,6 @@ async fn get_all_documents(
todo!()
}
//fn find_primary_key(document: &IndexMap<String, Value>) -> Option<String> {
//for key in document.keys() {
//if key.to_lowercase().contains("id") {
//return Some(key.to_string());
//}
//}
//None
//}
#[derive(Deserialize)]
#[serde(rename_all = "camelCase", deny_unknown_fields)]
struct UpdateDocumentsQuery {
@ -150,6 +141,7 @@ async fn add_documents_default(
_params: web::Query<UpdateDocumentsQuery>,
_body: web::Json<Vec<Document>>,
) -> Result<HttpResponse, ResponseError> {
error!("Unknown document type");
todo!()
}