We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c67659 commit b13a4b0Copy full SHA for b13a4b0
1 file changed
src/qgis_geonode/apiclient/__init__.py
@@ -2,13 +2,14 @@
2
import importlib
3
import typing
4
5
+SUPPORTED_API_CLIENT = "/api/v2/"
6
+
7
8
def is_api_client_supported(base_url: str) -> bool:
9
"""
- Returns True if /api/v2/ endpoint provides a valid response.
- No version string involved.
10
+ Returns True if SUPPORTED_API_CLIENT endpoint provides a valid response.
11
- url = f"{base_url.rstrip('/')}/api/v2/"
12
+ url = f"{base_url.rstrip('/')}{SUPPORTED_API_CLIENT}"
13
try:
14
resp = requests.get(url, timeout=5)
15
resp.raise_for_status()
0 commit comments