Skip to content

Commit

Permalink
Merge pull request #1788 from hotosm/update-swagger-ui
Browse files Browse the repository at this point in the history
update swagger ui
  • Loading branch information
pantierra authored Jul 29, 2019
2 parents aec2150 + a01bd06 commit c9fb32b
Show file tree
Hide file tree
Showing 45 changed files with 30 additions and 419 deletions.
11 changes: 5 additions & 6 deletions server/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ class EnvironmentConfig:

# The base url the application is reachable
APP_BASE_URL = os.getenv('TM_APP_BASE_URL', 'http://127.0.0.1:5000')

# The default tag used in the OSM changeset comment
DEFAULT_CHANGESET_COMMENT = os.getenv('TM_DEFAULT_CHANGESET_COMMENT', None)

# The address to use as the sender on auto generated emails
EMAIL_FROM_ADDRESS = os.getenv('TM_EMAIL_FROM_ADDRESS', None)

Expand All @@ -38,15 +38,15 @@ class EnvironmentConfig:
f'@{POSTGRES_ENDPOINT}:' + \
f'{POSTGRES_PORT}' + \
f'/{POSTGRES_DB}'

# Logging settings
LOG_LEVEL = os.getenv('TM_LOG_LEVEL', logging.DEBUG)
LOG_DIR = os.getenv('TM_LOG_DIR', 'logs')

# Mapper Level values represent number of OSM changesets
MAPPER_LEVEL_INTERMEDIATE = os.getenv('TM_MAPPER_LEVEL_INTERMEDIATE', 250)
MAPPER_LEVEL_ADVANCED = os.getenv('TM_MAPPER_LEVEL_ADVANCED', 500)

# Time to wait until task auto-unlock (e.g. '2h' or '7d' or '30m' or '1h30m')
TASK_AUTOUNLOCK_AFTER = os.getenv('TM_TASK_AUTOUNLOCK_AFTER', '2h')

Expand Down Expand Up @@ -76,8 +76,7 @@ class EnvironmentConfig:
}

# Some more definitions (not overridable)
API_DOCS_URL = f'{APP_BASE_URL}/api-docs/swagger-ui/index.html?' + \
f'url={APP_BASE_URL}/api/docs'
API_DOCS_URL = f'{APP_BASE_URL}/api/docs'
SEND_FILE_MAX_AGE_DEFAULT = 0
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_POOL_SIZE = 10
Expand Down
2 changes: 1 addition & 1 deletion server/web/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def api():
Route for API Docs welcome page
"""
api_url = current_app.config['API_DOCS_URL']
return render_template('welcome.html', doc_link=api_url)
return render_template('swagger.html', doc_link=api_url)


@main.route('/', defaults={'path': 'index.html'})
Expand Down
9 changes: 0 additions & 9 deletions server/web/static/swagger-ui/css/hot.css

This file was deleted.

1 change: 0 additions & 1 deletion server/web/static/swagger-ui/css/print.css

This file was deleted.

1 change: 0 additions & 1 deletion server/web/static/swagger-ui/css/reset.css

This file was deleted.

1 change: 0 additions & 1 deletion server/web/static/swagger-ui/css/screen.css

This file was deleted.

1 change: 0 additions & 1 deletion server/web/static/swagger-ui/css/style.css

This file was deleted.

Empty file.
Binary file not shown.
Binary file removed server/web/static/swagger-ui/fonts/DroidSans.ttf
Binary file not shown.
Binary file removed server/web/static/swagger-ui/images/collapse.gif
Binary file not shown.
Binary file removed server/web/static/swagger-ui/images/expand.gif
Binary file not shown.
Binary file not shown.
Binary file removed server/web/static/swagger-ui/images/favicon-16x16.png
Binary file not shown.
Binary file not shown.
Binary file removed server/web/static/swagger-ui/images/favicon.ico
Binary file not shown.
Binary file removed server/web/static/swagger-ui/images/hot-favicon.ico
Binary file not shown.
Loading

0 comments on commit c9fb32b

Please sign in to comment.