averbis / averbis-python-api

Conveniently access the REST API of Averbis products using Python
Apache License 2.0
12 stars 4 forks source link

Normalize URL in Client #139

Closed DavidHuebner closed 1 year ago

DavidHuebner commented 1 year ago

Is your feature request related to a problem? Please describe. When opening the HD, the link may be https://some-url.com/health-discovery/#/ where the #/ comes from the Angular Framework. In that case, users may copy the url with the trailing #/ when settings up the Client. This will cause an incorrectly configured Client and yield the following error message when performing an API request: requests.exceptions.RequestException: 405 Server Error: 'Method Not Allowed' for url:

Describe the solution you'd like The easiest solution is probably to strip #/ Client URL when initializing the Client.

Describe alternatives you've considered None

Additional context None