You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
http.py: Fix redirects, bugs, and SDK installation (#362)
This fixes the redirects from the AAS repository
paths to the Submodel repository paths to work
properly.
Furthermore, the installation of dependencies
inside the server Docker image was previously
using the latest release of the SDK. This means,
that we could not ensure that each commit in the
`main` branch of our monorepo would be
interoperable between SDK and server, as a PR
would have to be closed in order for the server CI
would not report any errors. In order to fix this,
issue in the development process, the server
Docker image now installs the SDK from the local
repository, rather than from GitHub.
Lastly, this fixes a wrong status code reported
when specifing a model that is malformed or
missing information. The specification expects a
400 (Bad Request) response, but the server sent a
422 (Unprocessable Content).
Fixes#315
@@ -46,17 +46,17 @@ The container can be configured via environment variables:
46
46
47
47
Putting it all together, the container can be started via the following command:
48
48
```
49
-
$ docker run -p 8080:80 -v ./storage:/storage basyx-python-sdk-http-server
49
+
$ docker run -p 8080:80 -v ./storage:/storage basyx-python-server
50
50
```
51
51
52
52
Since Windows uses backslashes instead of forward slashes in paths, you'll have to adjust the path to the storage directory there:
53
53
```
54
-
> docker run -p 8080:80 -v .\storage:/storage basyx-python-sdk-http-server
54
+
> docker run -p 8080:80 -v .\storage:/storage basyx-python-server
55
55
```
56
56
57
57
Per default, the server will use the `LOCAL_FILE_READ_ONLY` storage type and serve the API under `/api/v3.0` and read files from `/storage`. If you want to change this, you can do so like this:
0 commit comments