mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-28 01:01:00 +00:00
test index update
This commit is contained in:
@ -24,4 +24,13 @@ impl Index<'_> {
|
||||
});
|
||||
self.service.post("/indexes", body).await
|
||||
}
|
||||
|
||||
pub async fn update(&self, primary_key: Option<&str>) -> (Value, StatusCode) {
|
||||
let body = json!({
|
||||
"primaryKey": primary_key,
|
||||
});
|
||||
let url = format!("/indexes/{}", self.uid);
|
||||
|
||||
self.service.put(url, body).await
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user