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

'/api/v1/' missing in Swagger-ui page URLs #46

Open
yogeek opened this issue Mar 17, 2020 · 1 comment
Open

'/api/v1/' missing in Swagger-ui page URLs #46

yogeek opened this issue Mar 17, 2020 · 1 comment

Comments

@yogeek
Copy link
Contributor

yogeek commented Mar 17, 2020

In the the Swagger UI page (at https://<MY_IP>/api/v1/swagger-ui.html), the URL used to test the endpoints (the one displayed in the curl command) is incorrect because it does not include /api/v1 subpath before the endpoint. Consequently, it is impossible to test the API with this Swagger page.

e.g. with the GET /applications in "application-controller" :

curl -X GET "https://<MY_IP>/applications" -H "accept: */*"

instead of

curl -X GET "https://<MY_IP>/api/v1/applications" -H "accept: */*"
@alchen99
Copy link
Contributor

alchen99 commented Aug 9, 2021

If using Halyard then add the following to gate-local.yml :

gate:
  swagger.basePath: /api/v1

If you are using Spinnaker Operator add the following to :

    profiles:
      gate:
        swagger.basePath: /api/v1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants