Skip to content

Commit

Permalink
Change default spec title and version
Browse files Browse the repository at this point in the history
  • Loading branch information
greyli committed Jan 17, 2021
1 parent d3d7cc2 commit 0953c31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apitoolkit/core.py
Expand Up @@ -35,8 +35,8 @@ def __init__(self, app=None):
self.init_app(app)

def init_app(self, app):
self.title = app.config.get('APITOOLKIT_TITLE', 'No title')
self.version = app.config.get('APITOOLKIT_VERSION', 'No version')
self.title = app.config.get('APITOOLKIT_TITLE', 'APIToolkit')
self.version = app.config.get('APITOOLKIT_VERSION', '1.0.0')
self.apispec_path = app.config.get('APITOOLKIT_APISPEC_PATH',
'/apispec.json')
self.ui = app.config.get('APITOOLKIT_UI', 'redoc')
Expand Down
4 changes: 2 additions & 2 deletions docs/intro.rst
Expand Up @@ -89,8 +89,8 @@ The available options are shown in the table below.
========================= ====== =============== ==============================================================================================
Name Type Default Description
========================= ====== =============== ==============================================================================================
``APITOOLKIT_TITLE`` String No title The API's title.
``APITOOLKIT_VERSION`` String No version The API's version.
``APITOOLKIT_TITLE`` String APIToolkit The API's title.
``APITOOLKIT_VERSION`` String 1.0.0 The API's version.
``APITOOLKIT_APISPEC_PATH`` String */apispec.json* The URL path where the JSON OpenAPI specification for this project is served.
``APITOOLKIT_UI`` String redoc The documentation format to use. Supported formats are "redoc" and "swagger_ui".
``APITOOLKIT_UI_PATH`` String */docs* The URL path where the documentation is served.
Expand Down

0 comments on commit 0953c31

Please sign in to comment.