@@ -89,7 +89,7 @@ def get_all_stats(self):
89
89
stats: `dict`
90
90
Dictionnary containing stats about your MeiliSearch instance
91
91
"""
92
- return HttpRequests .get (self .config , self .config .stat_path )
92
+ return HttpRequests .get (self .config , self .config .paths . stat )
93
93
94
94
def health (self ):
95
95
"""Get health of meilisearch
@@ -101,7 +101,7 @@ def health(self):
101
101
HTTPError
102
102
If meilisearch is not healthy
103
103
"""
104
- return HttpRequests .get (self .config , self .config .health_path )
104
+ return HttpRequests .get (self .config , self .config .paths . health )
105
105
106
106
def update_health (self , health ):
107
107
"""Update health of meilisearch
@@ -113,7 +113,7 @@ def update_health(self, health):
113
113
health: bool
114
114
Boolean reprensenting the healthyness of meilisearch. True for healthy.
115
115
"""
116
- return HttpRequests .put (self .config , self .config .health_path , {'health' : health })
116
+ return HttpRequests .put (self .config , self .config .paths . health , {'health' : health })
117
117
118
118
def get_keys (self ):
119
119
"""Get all keys created
@@ -126,7 +126,7 @@ def get_keys(self):
126
126
List of keys and their information.
127
127
https://docs.meilisearch.com/references/keys.html#get-keys
128
128
"""
129
- return HttpRequests .get (self .config , self .config .key_path )
129
+ return HttpRequests .get (self .config , self .config .paths . keys )
130
130
131
131
def get_sys_info (self ):
132
132
"""Get system information of meilisearch
@@ -138,7 +138,7 @@ def get_sys_info(self):
138
138
sys_info: dict
139
139
Information about memory and processor usage.
140
140
"""
141
- return HttpRequests .get (self .config , self .config .sys_info_path )
141
+ return HttpRequests .get (self .config , self .config .paths . sys_info )
142
142
143
143
def get_version (self ):
144
144
"""Get version meilisearch
@@ -148,7 +148,7 @@ def get_version(self):
148
148
version: dict
149
149
Information about version of meilisearch.
150
150
"""
151
- return HttpRequests .get (self .config , self .config .version_path )
151
+ return HttpRequests .get (self .config , self .config .paths . version )
152
152
153
153
def version (self ):
154
154
"""Alias for get_version
0 commit comments