doubleo8 / coshed Goto Github PK
View Code? Open in Web Editor NEWProject deployment and distribution tools for lazy developers.
Home Page: https://coshed.sourceforge.io
License: GNU General Public License v2.0
Project deployment and distribution tools for lazy developers.
Home Page: https://coshed.sourceforge.io
License: GNU General Public License v2.0
Line 245 in 442b2ce
@app.route('/swagger.json')
def serve_swagger():
"""
Serve swagger specification.
Returns:
flask.Response: HTTP response with swagger specification payload
"""
if SWAGGER_IN is None:
abort(404)
if not os.path.isfile(SWAGGER_IN):
abort(404)
with open(SWAGGER_IN, "r") as src:
swagger_content = json.load(src)
p_url = urlparse.urlparse(get_request_url(cf_port))
doc_url = urlparse.urljoin(request.url, '/doc')
overrides = dict(
info=dict(
description="{app_name} Backend".format(app_name=APP_NAME),
version=API_VERSION,
title=APP_NAME,
contact=dict(
email="root@localhost"
),
license={
"name": "Apache 2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
}
),
host=p_url.hostname,
externalDocs={
"description": "the documentation",
"url": doc_url
}
)
swagger_content.update(overrides)
return jsonify(swagger_content)
Line 133 in 280bff5
Line 135 in 396b33a
Line 165 in 442b2ce
Line 147 in 442b2ce
not_to_be_exposed = ('assets', 'mobj', 'navigation', 'title', 'mayp',
'overridden_serial_number', 'ig',)
for d_key in not_to_be_exposed:
try:
del data[d_key]
except KeyError:
pass
Line 169 in 02282fa
In case app_name is given and a specification file wolfication_specification.$APP_NAME.json exists prefer that one
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.