Connexion: /ui/ endpoint no longer available in Connexion 2.0

Created on 6 Nov 2018  路  4Comments  路  Source: zalando/connexion

Description

Connexion 2.0 seems to hide the /ui/ endpoint.

After upgrading from connexion 1.5.3 to connexion 2.0.0, I am no longer to see the SWAGGER interface in /ui/. I've tried both my own code and an example project

Expected behaviour

The swagger interface should show

Actual behaviour

404 error

Steps to reproduce

Run the sqlalchemy example, exactly as directed in the readme

Additional info:

  • python --version: Python 3.6.1
  • pip show connexion | grep "^Version\:": 2.0.0

Most helpful comment

Trying to do pip install connexion[swagger-ui] gets

connexion 2.0.1 does not provide the extra 'swagger-ui'

I was able to install using: pip install swagger_ui_bundle

All 4 comments

You need to install with connexion[swagger-ui] now as it no longer includes Swagger UI by default. See https://github.com/hjacobs/connexion-example/pull/11 as example.

I've updated the release notes to include this information.

Thanks for taking the time to file this ticket. If you're curious about the history of this issue, you can read up on the discussion in #406 .

Trying to do pip install connexion[swagger-ui] gets

connexion 2.0.1 does not provide the extra 'swagger-ui'

I was able to install using: pip install swagger_ui_bundle

@BLooperZ's hint was fundamental for Heroku. Besides, connexion[swagger-ui] uses version 0.0.2 of the bundle, while swagger_ui_bundle is at version 0.0.5.

Was this page helpful?
0 / 5 - 0 ratings