added version and title

This commit is contained in:
Jan Friedli 2020-07-13 08:42:30 +02:00
parent 06252d8ee4
commit b7415adfa3
No known key found for this signature in database
GPG key ID: F945FA2FCA30549D
2 changed files with 6 additions and 0 deletions

View file

@ -93,6 +93,8 @@ If you want to add/remove dependencies you have to rebuild the container.
# RESTful API
If you go to https://matweb.info/apidocs you can find a Swagger documentation.
## Upload Endpoint
**Endpoint:** `/api/upload`

View file

@ -14,6 +14,10 @@ def create_app(test_config=None):
app.config['UPLOAD_FOLDER'] = os.environ.get('MAT2_WEB_DOWNLOAD_FOLDER', './uploads/')
app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024 # 16MB
app.config['CUSTOM_TEMPLATES_DIR'] = 'custom_templates'
app.config['SWAGGER'] = {
'title': 'Mat2 Web API',
'version': '1.0.0',
}
# optionally load settings from config.py
app.config.from_object('config')