From 3964addb879687047f6ecd6a73edc1c04c42968c Mon Sep 17 00:00:00 2001 From: Bruno Rocha Date: Fri, 18 May 2018 15:00:38 -0300 Subject: [PATCH] Customized Swagger template --- httpbin/templates/flasgger/index.html | 162 ++++++++++++++++++++++++++ httpbin/templates/footer.html | 46 ++++++++ 2 files changed, 208 insertions(+) create mode 100644 httpbin/templates/flasgger/index.html create mode 100644 httpbin/templates/footer.html diff --git a/httpbin/templates/flasgger/index.html b/httpbin/templates/flasgger/index.html new file mode 100644 index 0000000..bde2af1 --- /dev/null +++ b/httpbin/templates/flasgger/index.html @@ -0,0 +1,162 @@ + + + + + {{ title }} + + + + + + + + + Fork me on GitHub + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+
+
+ + [Powered by Flasgger] +
+
+
+
+
+ + + + + + + + +{% if tracking_enabled %} + {% include 'trackingscripts.html' %} +{% endif %} + +{% include 'footer.html' %} + + diff --git a/httpbin/templates/footer.html b/httpbin/templates/footer.html new file mode 100644 index 0000000..f923957 --- /dev/null +++ b/httpbin/templates/footer.html @@ -0,0 +1,46 @@ +
+
+
+
+ +

Utilities

+ + + + +

Freely hosted in HTTP, HTTPS, & EU flavors by Kenneth Reitz & Heroku.

+ +

Installing and running from PyPI

+ +

You can install httpbin as a library from PyPI and run it as a WSGI app. For example, using Gunicorn:

+ +
$ pip install httpbin
+$ gunicorn httpbin:app
+
+ +

Running with docker

+$ docker run -p 80:80 kennethreitz/httpbin + + +

AUTHOR

+ +

A Kenneth Reitz project.

+

BTC: 1Me2iXTJ91FYZhrGvaGaRDCBtnZ4KdxCug

+ +

SEE ALSO

+ +

Hurl.it - Make HTTP requests.

+

RequestBin - Inspect HTTP requests.

+

http://python-requests.org

+ + +

Legacy httpbin website

+To access the old layout click here +

+
+
+
+