From e92269e2d88be6eb14c2f9c4707f329db117f409 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sun, 6 Sep 2015 01:03:06 -0400 Subject: [PATCH] Improve API documentation's initial text. --- mayan/settings/base.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/mayan/settings/base.py b/mayan/settings/base.py index 84bf33ca76..e3cbad0d54 100644 --- a/mayan/settings/base.py +++ b/mayan/settings/base.py @@ -13,7 +13,7 @@ from __future__ import unicode_literals import os import sys -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import ugettext_lazy as _, ugettext _file_path = os.path.abspath(os.path.dirname(__file__)).split('/') @@ -269,7 +269,15 @@ TEST_RUNNER = 'djcelery.contrib.test_runner.CeleryTestSuiteRunner' CORS_ORIGIN_ALLOW_ALL = True # ------ Django REST Swagger ----- SWAGGER_SETTINGS = { - 'api_version': '1', # Specify your API's version + 'api_version': '1', + 'info': { + 'title': _('Mayan EDMS API Documentation'), + 'description': _('Free Open Source Document Management System.'), + 'contact': 'roberto.rosario@mayan-edms.com', + 'license': 'Apache 2.0', + 'licenseUrl': 'http://www.apache.org/licenses/LICENSE-2.0.html' + } + } # ------ Timezone -------- TIMEZONE_COOKIE_NAME = 'django_timezone'