[Python-modules-commits] [python-flask-restful-swagger] 01/03: import python-flask-restful-swagger_0.19.orig.tar.gz
Adrian Alves
alvesadrian-guest at moszumanska.debian.org
Sun Jul 3 02:40:31 UTC 2016
This is an automated email from the git hooks/post-receive script.
alvesadrian-guest pushed a commit to branch master
in repository python-flask-restful-swagger.
commit efc9a3a67fbf45b7d4e0234db760e939937f03ae
Author: Adrian Alves <aalves at gmail.com>
Date: Sat Jul 2 23:35:42 2016 -0300
import python-flask-restful-swagger_0.19.orig.tar.gz
---
MANIFEST.in | 2 +
PKG-INFO | 10 +
README | 1 +
README.md | 336 +++
flask_restful_swagger.egg-info/PKG-INFO | 10 +
flask_restful_swagger.egg-info/SOURCES.txt | 38 +
.../dependency_links.txt | 1 +
flask_restful_swagger.egg-info/not-zip-safe | 1 +
flask_restful_swagger.egg-info/requires.txt | 1 +
flask_restful_swagger.egg-info/top_level.txt | 1 +
flask_restful_swagger/__init__.py | 5 +
flask_restful_swagger/static/.gitignore | 1 +
.../static/css/highlight.default.css | 135 +
.../static/css/hightlight.default.css | 135 +
flask_restful_swagger/static/css/screen.css | 1224 +++++++++
flask_restful_swagger/static/endpoint.html | 77 +
.../static/images/explorer_icons.png | Bin 0 -> 5763 bytes
flask_restful_swagger/static/images/logo_small.png | Bin 0 -> 770 bytes
.../static/images/pet_store_api.png | Bin 0 -> 824 bytes
flask_restful_swagger/static/images/throbber.gif | Bin 0 -> 9257 bytes
.../static/images/wordnik_api.png | Bin 0 -> 980 bytes
flask_restful_swagger/static/index.html | 85 +
flask_restful_swagger/static/lib/backbone-min.js | 38 +
.../static/lib/handlebars-1.0.0.js | 2278 ++++++++++++++++
.../static/lib/highlight.7.3.pack.js | 1 +
.../static/lib/jquery-1.8.0.min.js | 2 +
.../static/lib/jquery.ba-bbq.min.js | 18 +
.../static/lib/jquery.slideto.min.js | 1 +
.../static/lib/jquery.wiggle.min.js | 8 +
flask_restful_swagger/static/lib/shred.bundle.js | 2765 ++++++++++++++++++++
flask_restful_swagger/static/lib/shred/content.js | 193 ++
flask_restful_swagger/static/lib/swagger-oauth.js | 211 ++
flask_restful_swagger/static/lib/swagger.js | 1417 ++++++++++
flask_restful_swagger/static/lib/underscore-min.js | 32 +
flask_restful_swagger/static/o2c.html | 15 +
flask_restful_swagger/static/swagger-ui.js | 2247 ++++++++++++++++
flask_restful_swagger/static/swagger-ui.min.js | 1 +
flask_restful_swagger/swagger.py | 540 ++++
setup.cfg | 5 +
setup.py | 28 +
40 files changed, 11863 insertions(+)
diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 0000000..eeb2e44
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1,2 @@
+include README*
+recursive-include flask_restful_swagger/static *
diff --git a/PKG-INFO b/PKG-INFO
new file mode 100644
index 0000000..a14d868
--- /dev/null
+++ b/PKG-INFO
@@ -0,0 +1,10 @@
+Metadata-Version: 1.0
+Name: flask-restful-swagger
+Version: 0.19
+Summary: Extrarct swagger specs from your flast-restful project
+Home-page: https://github.com/rantav/flask-restful-swagger
+Author: Ran Tavory
+Author-email: UNKNOWN
+License: MIT
+Description: Please see documentation here: https://github.com/rantav/flask-restful-swagger
+Platform: UNKNOWN
diff --git a/README b/README
new file mode 100644
index 0000000..3185c78
--- /dev/null
+++ b/README
@@ -0,0 +1 @@
+Please see documentation here: https://github.com/rantav/flask-restful-swagger
\ No newline at end of file
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..c94f85f
--- /dev/null
+++ b/README.md
@@ -0,0 +1,336 @@
+# flask-restful-swagger
+
+flask-restful-swagger is a wrapper for [flask-restful](http://flask-restful.readthedocs.org/en/latest/) which enables [swagger](https://developers.helloreverb.com/swagger/) support.
+
+In essense, you just need to wrap the Api instance and add a few python decorators to get full swagger support.
+
+Install:
+
+```
+pip install flask-restful-swagger
+```
+(This installs flask-restful as well)
+
+
+And in your program, where you'd usually just use flask-restful, add just a little bit of sauce and get a swagger spec out.
+
+
+```
+from flask import Flask
+from flask.ext.restful import Api
+from flask_restful_swagger import swagger
+
+app = Flask(__name__)
+
+###################################
+# Wrap the Api with swagger.docs. It is a thin wrapper around the Api class that adds some swagger smarts
+api = swagger.docs(Api(app), apiVersion='0.1')
+###################################
+
+
+# You may decorate your operation with @swagger.operation
+class Todo(Resource):
+ "Describing elephants"
+ @swagger.operation(
+ notes='some really good notes',
+ responseClass=ModelClass.__name__,
+ nickname='upload',
+ parameters=[
+ {
+ "name": "body",
+ "description": "blueprint object that needs to be added. YAML.",
+ "required": True,
+ "allowMultiple": False,
+ "dataType": ModelClass2.__name__,
+ "paramType": "body"
+ }
+ ],
+ responseMessages=[
+ {
+ "code": 201,
+ "message": "Created. The URL of the created blueprint should be in the Location header"
+ },
+ {
+ "code": 405,
+ "message": "Invalid input"
+ }
+ ]
+ )
+ def get(self, todo_id):
+
+# Operations not decorated with @swagger.operation do not get added to the swagger docs
+
+class Todo(Resource):
+ def options(self, todo_id):
+ """
+ I'm not visible in the swagger docs
+ """
+ pass
+
+
+# Then you add_resource as you usually would
+
+api.add_resource(TodoList, '/todos')
+api.add_resource(Todo, '/todos/<string:todo_id>')
+
+# You define models like this:
+ at swagger.model
+class TodoItem:
+ "A description ..."
+ pass
+
+# Swagger json:
+ "models": {
+ "TodoItemWithArgs": {
+ "description": "A description...",
+ "id": "TodoItem",
+ },
+
+# If you declare an __init__ method with meaningful arguments then those args could be used to deduce the swagger model fields.
+ at swagger.model
+class TodoItemWithArgs:
+ "A description ..."
+ def __init__(self, arg1, arg2, arg3='123'):
+ pass
+
+# Swagger json:
+ "models": {
+ "TodoItemWithArgs": {
+ "description": "A description...",
+ "id": "TodoItem",
+ "properties": {
+ "arg1": {
+ "type": "string"
+ },
+ "arg2": {
+ "type": "string"
+ },
+ "arg3": {
+ "default": "123",
+ "type": "string"
+ }
+ },
+ "required": [
+ "arg1",
+ "arg2"
+ ]
+ },
+
+
+# Additionally, if the model class has a `resource_fields` class member then flask-restful-swagger is able to deduce the swagger spec by this list of fields.
+
+ at swagger.model
+class TodoItemWithResourceFields:
+ resource_fields = {
+ 'a_string': fields.String
+ }
+
+# Swagger json:
+ "models": {
+ "TodoItemWithResourceFields": {
+ "id": "TodoItemWithResourceFields",
+ "properties": {
+ "a_string": {
+ "type": "string"
+ },
+ }
+ }
+
+# And in order to close the loop with flask-restify you'd also need to tell flask-restify to @marshal_with the same list of fields when defining your methods.
+# Example:
+
+ at marshal_with(TodoItemWithResourceFields.resource_fields)
+def get()
+ return ...
+
+```
+
+# Using @marshal_with
+Let us recap usage of @marshal_with.
+flask-restful has a decorator `@marshal_with`. With the following setup it's possible to define the swagger model types with the same logic as `@marshal_with`.
+
+You have to:
+
+```
+# Define your model with resource_fields
+ at swagger.model
+class TodoItemWithResourceFields:
+ resource_fields = {
+ 'a_string': fields.String,
+ 'a_second_string': fields.String(attribute='a_second_string_field_name')
+ }
+
+# And use @marshal_with(YourClass.resource_fields):
+ at marshal_with(TodoItemWithResourceFields.resource_fields)
+def get()
+ return ...
+```
+
+
+# Running and testing
+
+Now run your flask app
+
+```
+python example.py
+```
+
+And visit:
+
+```
+curl http://localhost:5000/api/spec.json
+```
+
+# Passing more metadata to swagger
+When creating the `swagger.docs` object you may pass additional arguments, such as the following:
+
+```
+api_spec_url - where to serve the swagger spec from. Default is /api/spec. This will make the json
+available at /api/spec as well as /api/spec.json and will also present a nice interactive
+HTML interface at /api/spec.html
+
+apiVersion - passed directly to swagger as the apiVersion attribute. Default: 0.0
+
+basePath - passed directly to swagger as the basePath attribute. Default: 'http://localhost:5000' (do not include a slash at the end)
+
+resourcePath - same as before. default: '/'
+
+produces - same as before, passed directly to swagger. The default is ["application/json"]
+
+swaggerVersion - passed directly to swagger. Default: 1.2
+
+description - description of this API endpoint. Defaults to 'Auto generated API docs by flask-restful-swagger'
+```
+
+# Accessing the result json spec and an Interactive HTML interface
+Assuming you provided `swagger.docs` with a parameter `api_spec_url='/api/spec'` (or left out in which case the default is '/api/spec') you may access the resulting json at /api/spec.json.
+You may also access /api/spec.html where you'd find an interactive HTML page that lets you play with the API to some extent.
+
+Here's how this HTML page would look like:
+
+![An example /api/spec.html page](http://cl.ly/image/312Q2u091u24/Screen%20Shot%202013-12-17%20at%2012.26.02%20PM.png)
+
+# Accessing individual endpoints (.help.json)
+flask-restful-swagger adds some useful help pages (well, json documents) to each of your resources. This isn't part of the swagger spec, but could be useful anyhow.
+With each endpoint you register, there's also an automatically registered help endpoint which ends with a .help.json extension.
+So for example when registering the resource `api.add_resource(TodoList, '/todos')` you may access the actual api through the url `/todos` and you may also access the help page at `/todos.help.json`. This help page spits out the relevant json content only for this endpoint (as opposed to `/api/spec.json` which spits out the entire swagger document, which could be daunting)
+
+Example:
+
+```
+### python:
+
+> api.add_resource(TodoList, '/todos')
+
+### Shell:
+
+$ curl localhost:5000/todos.help.json
+{
+ "description": null,
+ "operations": [
+ {
+ "method": "GET",
+ "nickname": "nickname",
+ "parameters": [],
+ "summary": null
+ },
+ {
+ "method": "POST",
+ "nickname": "create",
+ "notes": "Creates a new TODO item",
+ "parameters": [
+ {
+ "allowMultiple": false,
+ "dataType": "TodoItem",
+ "description": "A TODO item",
+ "name": "body",
+ "paramType": "body",
+ "required": true
+ }
+ ],
+ "responseClass": "TodoItem",
+ "responseMessages": [
+ {
+ "code": 201,
+ "message": "Created. The URL of the created blueprint should be in the Location header"
+ },
+ {
+ "code": 405,
+ "message": "Invalid input"
+ }
+ ],
+ "summary": null
+ }
+ ],
+ "path": "/todos"
+}
+```
+When registering an endpoint with path parameters (e.g. `/todos/<string:id>`) then the .help url is may be found at the swagger path, e.g. `/todos/{id}.help.json` where {id} is just that - a literal string "{id}"
+
+Example:
+
+```
+### Python:
+> api.add_resource(Todo, '/todos/<string:todo_id>')
+
+### Shell:
+ # You might need to quote and escape to prevent the shell from messing around
+
+curl 'localhost:5000/todos/\{todo_id\}.help.json'
+{
+ "description": "My TODO API",
+ "operations": [
+ {
+ "method": "DELETE",
+ "nickname": "nickname",
+ "parameters": [
+ {
+ "dataType": "string",
+ "name": "todo_id"
+ }
+ ],
+ "summary": null
+ },
+ {
+ "method": "GET",
+ "nickname": "get",
+ "notes": "get a todo item by ID",
+ "parameters": [
+ {
+ "allowMultiple": false,
+ "dataType": "string",
+ "description": "The ID of the TODO item",
+ "name": "todo_id_x",
+ "paramType": "path",
+ "required": true
+ }
+ ],
+ "responseClass": "TodoItemWithResourceFields",
+ "summary": "Get a todo task"
+ },
+ {
+ "method": "PUT",
+ "nickname": "nickname",
+ "parameters": [
+ {
+ "dataType": "string",
+ "name": "todo_id"
+ }
+ ],
+ "summary": null
+ }
+ ],
+ "path": "/todos/{todo_id}"
+}
+```
+
+
+# Accessing individual endpoints as HTML (.help.html)
+Similarly to the `.help.json` URLs we have `.help.html` pages which are static HTML pages to document your APIs.
+Here's a screenshot to illustrate:
+![An example .help.html page](http://cl.ly/image/160E3G2F2B3u/Screen%20Shot%202013-12-10%20at%209.49.37%20PM.png)
+
+
+
+
+__This project is part of the [Cloudify Cosmo project](https://github.com/CloudifySource/)__
diff --git a/flask_restful_swagger.egg-info/PKG-INFO b/flask_restful_swagger.egg-info/PKG-INFO
new file mode 100644
index 0000000..a14d868
--- /dev/null
+++ b/flask_restful_swagger.egg-info/PKG-INFO
@@ -0,0 +1,10 @@
+Metadata-Version: 1.0
+Name: flask-restful-swagger
+Version: 0.19
+Summary: Extrarct swagger specs from your flast-restful project
+Home-page: https://github.com/rantav/flask-restful-swagger
+Author: Ran Tavory
+Author-email: UNKNOWN
+License: MIT
+Description: Please see documentation here: https://github.com/rantav/flask-restful-swagger
+Platform: UNKNOWN
diff --git a/flask_restful_swagger.egg-info/SOURCES.txt b/flask_restful_swagger.egg-info/SOURCES.txt
new file mode 100644
index 0000000..5fbb9d5
--- /dev/null
+++ b/flask_restful_swagger.egg-info/SOURCES.txt
@@ -0,0 +1,38 @@
+MANIFEST.in
+README
+README.md
+setup.py
+flask_restful_swagger/__init__.py
+flask_restful_swagger/swagger.py
+flask_restful_swagger.egg-info/PKG-INFO
+flask_restful_swagger.egg-info/SOURCES.txt
+flask_restful_swagger.egg-info/dependency_links.txt
+flask_restful_swagger.egg-info/not-zip-safe
+flask_restful_swagger.egg-info/requires.txt
+flask_restful_swagger.egg-info/top_level.txt
+flask_restful_swagger/static/.gitignore
+flask_restful_swagger/static/endpoint.html
+flask_restful_swagger/static/index.html
+flask_restful_swagger/static/o2c.html
+flask_restful_swagger/static/swagger-ui.js
+flask_restful_swagger/static/swagger-ui.min.js
+flask_restful_swagger/static/css/highlight.default.css
+flask_restful_swagger/static/css/hightlight.default.css
+flask_restful_swagger/static/css/screen.css
+flask_restful_swagger/static/images/explorer_icons.png
+flask_restful_swagger/static/images/logo_small.png
+flask_restful_swagger/static/images/pet_store_api.png
+flask_restful_swagger/static/images/throbber.gif
+flask_restful_swagger/static/images/wordnik_api.png
+flask_restful_swagger/static/lib/backbone-min.js
+flask_restful_swagger/static/lib/handlebars-1.0.0.js
+flask_restful_swagger/static/lib/highlight.7.3.pack.js
+flask_restful_swagger/static/lib/jquery-1.8.0.min.js
+flask_restful_swagger/static/lib/jquery.ba-bbq.min.js
+flask_restful_swagger/static/lib/jquery.slideto.min.js
+flask_restful_swagger/static/lib/jquery.wiggle.min.js
+flask_restful_swagger/static/lib/shred.bundle.js
+flask_restful_swagger/static/lib/swagger-oauth.js
+flask_restful_swagger/static/lib/swagger.js
+flask_restful_swagger/static/lib/underscore-min.js
+flask_restful_swagger/static/lib/shred/content.js
\ No newline at end of file
diff --git a/flask_restful_swagger.egg-info/dependency_links.txt b/flask_restful_swagger.egg-info/dependency_links.txt
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/flask_restful_swagger.egg-info/dependency_links.txt
@@ -0,0 +1 @@
+
diff --git a/flask_restful_swagger.egg-info/not-zip-safe b/flask_restful_swagger.egg-info/not-zip-safe
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/flask_restful_swagger.egg-info/not-zip-safe
@@ -0,0 +1 @@
+
diff --git a/flask_restful_swagger.egg-info/requires.txt b/flask_restful_swagger.egg-info/requires.txt
new file mode 100644
index 0000000..2cff2f2
--- /dev/null
+++ b/flask_restful_swagger.egg-info/requires.txt
@@ -0,0 +1 @@
+Flask-RESTful>=0.2.12
\ No newline at end of file
diff --git a/flask_restful_swagger.egg-info/top_level.txt b/flask_restful_swagger.egg-info/top_level.txt
new file mode 100644
index 0000000..cbcf9ff
--- /dev/null
+++ b/flask_restful_swagger.egg-info/top_level.txt
@@ -0,0 +1 @@
+flask_restful_swagger
diff --git a/flask_restful_swagger/__init__.py b/flask_restful_swagger/__init__.py
new file mode 100644
index 0000000..5a3a67a
--- /dev/null
+++ b/flask_restful_swagger/__init__.py
@@ -0,0 +1,5 @@
+registry = {
+ 'models': {}
+}
+
+api_spec_static = ''
diff --git a/flask_restful_swagger/static/.gitignore b/flask_restful_swagger/static/.gitignore
new file mode 100644
index 0000000..ebf4281
--- /dev/null
+++ b/flask_restful_swagger/static/.gitignore
@@ -0,0 +1 @@
+!lib
diff --git a/flask_restful_swagger/static/css/highlight.default.css b/flask_restful_swagger/static/css/highlight.default.css
new file mode 100644
index 0000000..e417fc1
--- /dev/null
+++ b/flask_restful_swagger/static/css/highlight.default.css
@@ -0,0 +1,135 @@
+/*
+
+Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac at SoftwareManiacs.Org>
+
+*/
+
+pre code {
+ display: block; padding: 0.5em;
+ background: #F0F0F0;
+}
+
+pre code,
+pre .subst,
+pre .tag .title,
+pre .lisp .title,
+pre .clojure .built_in,
+pre .nginx .title {
+ color: black;
+}
+
+pre .string,
+pre .title,
+pre .constant,
+pre .parent,
+pre .tag .value,
+pre .rules .value,
+pre .rules .value .number,
+pre .preprocessor,
+pre .ruby .symbol,
+pre .ruby .symbol .string,
+pre .aggregate,
+pre .template_tag,
+pre .django .variable,
+pre .smalltalk .class,
+pre .addition,
+pre .flow,
+pre .stream,
+pre .bash .variable,
+pre .apache .tag,
+pre .apache .cbracket,
+pre .tex .command,
+pre .tex .special,
+pre .erlang_repl .function_or_atom,
+pre .markdown .header {
+ color: #800;
+}
+
+pre .comment,
+pre .annotation,
+pre .template_comment,
+pre .diff .header,
+pre .chunk,
+pre .markdown .blockquote {
+ color: #888;
+}
+
+pre .number,
+pre .date,
+pre .regexp,
+pre .literal,
+pre .smalltalk .symbol,
+pre .smalltalk .char,
+pre .go .constant,
+pre .change,
+pre .markdown .bullet,
+pre .markdown .link_url {
+ color: #080;
+}
+
+pre .label,
+pre .javadoc,
+pre .ruby .string,
+pre .decorator,
+pre .filter .argument,
+pre .localvars,
+pre .array,
+pre .attr_selector,
+pre .important,
+pre .pseudo,
+pre .pi,
+pre .doctype,
+pre .deletion,
+pre .envvar,
+pre .shebang,
+pre .apache .sqbracket,
+pre .nginx .built_in,
+pre .tex .formula,
+pre .erlang_repl .reserved,
+pre .prompt,
+pre .markdown .link_label,
+pre .vhdl .attribute,
+pre .clojure .attribute,
+pre .coffeescript .property {
+ color: #88F
+}
+
+pre .keyword,
+pre .id,
+pre .phpdoc,
+pre .title,
+pre .built_in,
+pre .aggregate,
+pre .css .tag,
+pre .javadoctag,
+pre .phpdoc,
+pre .yardoctag,
+pre .smalltalk .class,
+pre .winutils,
+pre .bash .variable,
+pre .apache .tag,
+pre .go .typename,
+pre .tex .command,
+pre .markdown .strong,
+pre .request,
+pre .status {
+ font-weight: bold;
+}
+
+pre .markdown .emphasis {
+ font-style: italic;
+}
+
+pre .nginx .built_in {
+ font-weight: normal;
+}
+
+pre .coffeescript .javascript,
+pre .javascript .xml,
+pre .tex .formula,
+pre .xml .javascript,
+pre .xml .vbscript,
+pre .xml .css,
+pre .xml .cdata {
+ opacity: 0.5;
+}
diff --git a/flask_restful_swagger/static/css/hightlight.default.css b/flask_restful_swagger/static/css/hightlight.default.css
new file mode 100644
index 0000000..e417fc1
--- /dev/null
+++ b/flask_restful_swagger/static/css/hightlight.default.css
@@ -0,0 +1,135 @@
+/*
+
+Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac at SoftwareManiacs.Org>
+
+*/
+
+pre code {
+ display: block; padding: 0.5em;
+ background: #F0F0F0;
+}
+
+pre code,
+pre .subst,
+pre .tag .title,
+pre .lisp .title,
+pre .clojure .built_in,
+pre .nginx .title {
+ color: black;
+}
+
+pre .string,
+pre .title,
+pre .constant,
+pre .parent,
+pre .tag .value,
+pre .rules .value,
+pre .rules .value .number,
+pre .preprocessor,
+pre .ruby .symbol,
+pre .ruby .symbol .string,
+pre .aggregate,
+pre .template_tag,
+pre .django .variable,
+pre .smalltalk .class,
+pre .addition,
+pre .flow,
+pre .stream,
+pre .bash .variable,
+pre .apache .tag,
+pre .apache .cbracket,
+pre .tex .command,
+pre .tex .special,
+pre .erlang_repl .function_or_atom,
+pre .markdown .header {
+ color: #800;
+}
+
+pre .comment,
+pre .annotation,
+pre .template_comment,
+pre .diff .header,
+pre .chunk,
+pre .markdown .blockquote {
+ color: #888;
+}
+
+pre .number,
+pre .date,
+pre .regexp,
+pre .literal,
+pre .smalltalk .symbol,
+pre .smalltalk .char,
+pre .go .constant,
+pre .change,
+pre .markdown .bullet,
+pre .markdown .link_url {
+ color: #080;
+}
+
+pre .label,
+pre .javadoc,
+pre .ruby .string,
+pre .decorator,
+pre .filter .argument,
+pre .localvars,
+pre .array,
+pre .attr_selector,
+pre .important,
+pre .pseudo,
+pre .pi,
+pre .doctype,
+pre .deletion,
+pre .envvar,
+pre .shebang,
+pre .apache .sqbracket,
+pre .nginx .built_in,
+pre .tex .formula,
+pre .erlang_repl .reserved,
+pre .prompt,
+pre .markdown .link_label,
+pre .vhdl .attribute,
+pre .clojure .attribute,
+pre .coffeescript .property {
+ color: #88F
+}
+
+pre .keyword,
+pre .id,
+pre .phpdoc,
+pre .title,
+pre .built_in,
+pre .aggregate,
+pre .css .tag,
+pre .javadoctag,
+pre .phpdoc,
+pre .yardoctag,
+pre .smalltalk .class,
+pre .winutils,
+pre .bash .variable,
+pre .apache .tag,
+pre .go .typename,
+pre .tex .command,
+pre .markdown .strong,
+pre .request,
+pre .status {
+ font-weight: bold;
+}
+
+pre .markdown .emphasis {
+ font-style: italic;
+}
+
+pre .nginx .built_in {
+ font-weight: normal;
+}
+
+pre .coffeescript .javascript,
+pre .javascript .xml,
+pre .tex .formula,
+pre .xml .javascript,
+pre .xml .vbscript,
+pre .xml .css,
+pre .xml .cdata {
+ opacity: 0.5;
+}
diff --git a/flask_restful_swagger/static/css/screen.css b/flask_restful_swagger/static/css/screen.css
new file mode 100644
index 0000000..2882b8d
--- /dev/null
+++ b/flask_restful_swagger/static/css/screen.css
@@ -0,0 +1,1224 @@
+/* http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 */
+html,
+body,
+div,
+span,
+applet,
+object,
+iframe,
+h1,
+h2,
+h3,
+h4,
+h5,
+h6,
+p,
+blockquote,
+pre,
+a,
+abbr,
+acronym,
+address,
+big,
+cite,
+code,
+del,
+dfn,
+em,
+img,
+ins,
+kbd,
+q,
+s,
+samp,
+small,
+strike,
+strong,
+sub,
+sup,
+tt,
+var,
+b,
+u,
+i,
+center,
+dl,
+dt,
+dd,
+ol,
+ul,
+li,
+fieldset,
+form,
+label,
+legend,
+table,
+caption,
+tbody,
+tfoot,
+thead,
+tr,
+th,
+td,
+article,
+aside,
+canvas,
+details,
+embed,
+figure,
+figcaption,
+footer,
+header,
+hgroup,
+menu,
+nav,
+output,
+ruby,
+section,
+summary,
+time,
+mark,
+audio,
+video {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ font-size: 100%;
+ font: inherit;
+ vertical-align: baseline;
+}
+/* HTML5 display-role reset for older browsers */
+article,
+aside,
+details,
+figcaption,
+figure,
+footer,
+header,
+hgroup,
+menu,
+nav,
+section {
+ display: block;
+}
+body {
+ line-height: 1;
+}
+ol,
+ul {
+ list-style: none;
+}
+blockquote,
+q {
+ quotes: none;
+}
+blockquote:before,
+blockquote:after,
+q:before,
+q:after {
+ content: '';
+ content: none;
+}
+table {
+ border-collapse: collapse;
+ border-spacing: 0;
+}
+.swagger-ui-wrap {
+ line-height: 1;
+ font-family: "Droid Sans", sans-serif;
+ max-width: 960px;
+ margin-left: auto;
+ margin-right: auto;
+}
+.swagger-ui-wrap b,
+.swagger-ui-wrap strong {
+ font-family: "Droid Sans", sans-serif;
+ font-weight: bold;
+}
+.swagger-ui-wrap q,
+.swagger-ui-wrap blockquote {
+ quotes: none;
+}
+.swagger-ui-wrap p {
+ line-height: 1.4em;
+ padding: 0 0 10px;
+ color: #333333;
+}
+.swagger-ui-wrap q:before,
+.swagger-ui-wrap q:after,
+.swagger-ui-wrap blockquote:before,
+.swagger-ui-wrap blockquote:after {
+ content: none;
+}
+.swagger-ui-wrap .heading_with_menu h1,
+.swagger-ui-wrap .heading_with_menu h2,
+.swagger-ui-wrap .heading_with_menu h3,
+.swagger-ui-wrap .heading_with_menu h4,
+.swagger-ui-wrap .heading_with_menu h5,
+.swagger-ui-wrap .heading_with_menu h6 {
+ display: block;
+ clear: none;
+ float: left;
+ -moz-box-sizing: border-box;
+ -webkit-box-sizing: border-box;
+ -ms-box-sizing: border-box;
+ box-sizing: border-box;
+ width: 60%;
+}
+.swagger-ui-wrap table {
+ border-collapse: collapse;
+ border-spacing: 0;
+}
+.swagger-ui-wrap table thead tr th {
+ padding: 5px;
+ font-size: 0.9em;
+ color: #666666;
+ border-bottom: 1px solid #999999;
+}
+.swagger-ui-wrap table tbody tr:last-child td {
+ border-bottom: none;
+}
+.swagger-ui-wrap table tbody tr.offset {
+ background-color: #f0f0f0;
... 11153 lines suppressed ...
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-flask-restful-swagger.git
More information about the Python-modules-commits
mailing list