rename identifier into primaryKey; fix #514

This commit is contained in:
qdequele
2020-03-09 18:40:49 +01:00
parent 8ffa80883a
commit c984d8d5a5
24 changed files with 142 additions and 142 deletions

View File

@ -285,8 +285,8 @@ impl Server {
self.delete_request_async(&url)
}
pub fn get_identifier(&mut self) -> (Value, StatusCode) {
let url = format!("/indexes/{}/settings/identifier", self.uid);
pub fn get_primary_key(&mut self) -> (Value, StatusCode) {
let url = format!("/indexes/{}/settings/primary_key", self.uid);
self.get_request(&url)
}
@ -394,7 +394,7 @@ impl Server {
pub fn populate_movies(&mut self) {
let body = json!({
"uid": "movies",
"identifier": "id",
"primaryKey": "id",
});
self.create_index(body);