Commit 95174dbb authored by Andreas's avatar Andreas

Path fixes.

parent 7db1c130
......@@ -36,7 +36,7 @@ class WebarchivSession:
with a single positional format string placeholder
for the REST operation and parameters.
"""
return 'https://webarchiv.onb.ac.at/api/'
return 'https://webarchiv.onb.ac.at/api'
@property
def base_url(self):
......@@ -45,7 +45,7 @@ class WebarchivSession:
with a single positional format string placeholder
for the REST operation and parameters.
"""
return self.api_path + '/{}'
return self.api_path + '{}'
@property
def _error_template(self):
......@@ -80,7 +80,7 @@ class WebarchivSession:
else:
fingerprint = ''
r = requests.post(self.base_url.format('authentication'),
r = requests.post(self.base_url.format('/authentication'),
data='''{{
"apikey": "{api_key}",
"fingerprint": "{fingerprint}",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment