mnestix / mnestix-browser

Mnestix Browser is the Browser for AAS Dataspaces
https://xitaso.com/kompetenzen/mnestix/
MIT License
27 stars 4 forks source link

Bundled api returns 404 for all routes #22

Closed sheinze closed 3 months ago

sheinze commented 3 months ago

Hi,

Pretext

as stated in the Readme, i set up the Tool using docker-compose. All containers are up and the next step is to upload an aas using the provided api.

Problem

All routes for the api return 404 from the server side

Example

Simple GET request to /shells route

Docker Log:

2024-07-04 15_32_23-mnestix-api - Container - Docker Desktop

hofermo commented 3 months ago

Hi @sheinze,

thank you for your issue. It looks like the request is missing something. Due to the fact that our API encapsulates multiple BaSyx services (such as the repository and the registry) you have to specify where exactly you want to go. For accessing the repository the call to the API must start with /repo So when you want to get all shells of a repository try to call

http://localhost:5064/repo/shells

We tried explaining this behaviour in the DockerHub description of the API.

Could you try if this works and if the documentation is sufficient?

sheinze commented 3 months ago

Okay, error is on me, but in the readme, it is not clear, that the .../repo/... is needed:

grafik

The Swagger Description itself also has no information about needed suffixes.