flasgger / flasgger

Easy OpenAPI specs and Swagger UI for your Flask API

Home Page:http://flasgger.pythonanywhere.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How To Change the Browser Tab Name from "Flasgger" to Something Else?

radiantone opened this issue · comments

How To Change the Browser Tab Name from "Flasgger" to Something Else?

Easy:

from flask import Flask, jsonify
from flasgger import Swagger

app = Flask(__name__)


swagger_config = Swagger.DEFAULT_CONFIG
swagger_config['title'] = 'GSP'    # Project name, Same as the Browser Tab Name.
swagger = Swagger(app)

Great. How do I also change this text on the UI?

[Terms of service]
the developer - Website
[Send email to the developer]