Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Base url in openapi yaml #121

Open
DrDanielMetz opened this issue May 17, 2023 · 1 comment
Open

Base url in openapi yaml #121

DrDanielMetz opened this issue May 17, 2023 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@DrDanielMetz
Copy link
Contributor

I installed the registry following the INSTALL.md on minikube. After applying the change as stated in PR #118, I get it running and can also call the swagger ui on https://minikube/semantics/registry.

The registry also works. For example, I can test an API endpoint with curl:
curl -X 'GET' 'https://minikube/semantics/registry/registry/shell-descriptors?page=0&pageSize=10' -H 'accept: application/json' --insecure

However, if I do the same from the swagger ui, it fails as the base path (i.e., /semantics/registry) is not taken into account on the swagger ui.

So, I am wondering if it might be a solution to add the basePath to the backend/src/main/resources/static/aas-registry-openapi.yamlas described here: https://swagger.io/docs/specification/2-0/api-host-and-base-path/

The same issue also seems to be present on the CX INT registry: https://semantics.int.demo.catena-x.net/registry/swagger-ui/index.html. There, the basePath /registry is also not taken into account by the swagger ui (as it is not defined in the openapi.yaml).

If my thoughts are not correct, I appreciate any other help to set up the registry with a working swagger ui.

@DrDanielMetz DrDanielMetz added bug Something isn't working help wanted Extra attention is needed labels May 17, 2023
@agg3fe
Copy link
Contributor

agg3fe commented Jul 28, 2023

Hi,
This is a known issue for us and we are working on to resolve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants