httpbin icon indicating copy to clipboard operation
httpbin copied to clipboard

Support using httpbin without flasgger

Open mgorny opened this issue 1 year ago • 2 comments

Make the dependency on flasgger optional. The dependency has been added relatively recently (i.e. before the original package was abandoned but after its last release), and it is only used to provide a more dynamic landing page. This is unnecessary for use of httpbin for testing, and it introduces an indirect dependency on Rust that is problematic.

With this change, flasgger is no longer installed by default. It can be enabled via "[flasgger]" extra. When flasgger is not available, httpbin redirects to the "legacy" index page.

mgorny avatar Feb 03 '24 10:02 mgorny

Hmm, 302 response for / breaks the test suite of httpcore. I'm going to change this later today to instead serve the old index without the redirect.

mgorny avatar Feb 15 '24 04:02 mgorny

Seems to be a duplicate of #32 . But either way, would be great to see flasgger removed as dependency.

ml31415 avatar Apr 10 '24 09:04 ml31415