-1

I have generated a simple API server example using swaggerhub, and downloaded python-flask generated server locally.

Unfortunately, it seems to not work at all. Every time I try to access the indicated url, that is

http://localhost:8080/data/2.5//ui/

it returns me a 404 error.

I've tried all the solutions reported on:

Python connexion not displaying Swagger UI

but with no success. What am I missing?

Lore
  • 1,286
  • 1
  • 22
  • 57

1 Answers1

1

A very simple detail that made all work: after executing pip install 'connexion[swagger-ui]' and pip install pathlib swagger_ui_bundle (though I am not sure the last is strictly needed...), the server worked only with an invalidate cache and restart command on PyCharm.

Lore
  • 1,286
  • 1
  • 22
  • 57