Closed HostenWang closed 2 years ago
My english suck
OS: Win10 Home 64bit Python: 3.10 64 geoserver-rest : 2.3.4 installed by pip
get_style can not return style with workspace
i found some confused code
https://github.com/gicait/geoserver-rest/blob/master/geo/Geoserver.py start at line number 910
def get_style(self, style_name, workspace: Optional[str] = None): // line 910 """ Returns the style by style name. """ try: url = "{}/rest/styles/{}.json".format(self.service_url, style_name) if workspace is not None: url = "{}/workspaces/{}/styles/{}.json".format( // line 917 self.service_url, workspace, style_name )
line 917 is
url = "{}/workspaces/{}/styles/{}.json".format(
is missing /rest/ ?
/rest/
Thank you for addressing this issue. Yes, you are right, the /rest/ is missing from URL. I solved this issue and this issue will be solved on version v3.2.5 onward.
v3.2.5
My english suck
Environment
OS: Win10 Home 64bit Python: 3.10 64 geoserver-rest : 2.3.4 installed by pip
behave
get_style can not return style with workspace
code
i found some confused code
https://github.com/gicait/geoserver-rest/blob/master/geo/Geoserver.py start at line number 910
line 917 is
is missing
/rest/
?