adding django rest swagger docs
also removing pointless admin views and models Change-Id: If1dd178cac9d54f1a81f816b77708482e4d909b1
This commit is contained in:
parent
572b22a1a8
commit
f6c49c20d9
|
@ -4,3 +4,4 @@
|
||||||
*.log
|
*.log
|
||||||
stacktask.egg-info/*
|
stacktask.egg-info/*
|
||||||
dist/*
|
dist/*
|
||||||
|
.tox/*
|
||||||
|
|
|
@ -5,3 +5,4 @@ keystonemiddleware>=1.3.1
|
||||||
python-keystoneclient>=1.0.0
|
python-keystoneclient>=1.0.0
|
||||||
python-neutronclient>=2.3.10
|
python-neutronclient>=2.3.10
|
||||||
jsonfield>=1.0.2
|
jsonfield>=1.0.2
|
||||||
|
django-rest-swagger>=0.3.3
|
||||||
|
|
3
setup.py
3
setup.py
|
@ -33,7 +33,8 @@ setup(
|
||||||
'keystonemiddleware>=1.3.1',
|
'keystonemiddleware>=1.3.1',
|
||||||
'python-keystoneclient>=1.0.0',
|
'python-keystoneclient>=1.0.0',
|
||||||
'python-neutronclient>=2.3.10',
|
'python-neutronclient>=2.3.10',
|
||||||
'pyyaml>=3.11'
|
'pyyaml>=3.11',
|
||||||
|
'django-rest-swagger>=0.3.3'
|
||||||
],
|
],
|
||||||
entry_points={
|
entry_points={
|
||||||
'console_scripts': [
|
'console_scripts': [
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
# Copyright (C) 2015 Catalyst IT Ltd
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
# not use this file except in compliance with the License. You may obtain
|
|
||||||
# a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
||||||
# License for the specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
from django.contrib import admin
|
|
||||||
from stacktask.api.models import Token, Registration
|
|
||||||
|
|
||||||
admin.site.register(Token)
|
|
||||||
admin.site.register(Registration)
|
|
|
@ -1,18 +0,0 @@
|
||||||
# Copyright (C) 2015 Catalyst IT Ltd
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
# not use this file except in compliance with the License. You may obtain
|
|
||||||
# a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
||||||
# License for the specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
from django.contrib import admin
|
|
||||||
from stacktask.base.models import Action
|
|
||||||
|
|
||||||
admin.site.register(Action)
|
|
|
@ -1,3 +0,0 @@
|
||||||
from django.contrib import admin
|
|
||||||
|
|
||||||
# Register your models here.
|
|
|
@ -50,6 +50,7 @@ INSTALLED_APPS = (
|
||||||
'django.contrib.messages',
|
'django.contrib.messages',
|
||||||
'django.contrib.staticfiles',
|
'django.contrib.staticfiles',
|
||||||
'rest_framework',
|
'rest_framework',
|
||||||
|
'rest_framework_swagger',
|
||||||
'stacktask.base',
|
'stacktask.base',
|
||||||
'stacktask.api',
|
'stacktask.api',
|
||||||
)
|
)
|
||||||
|
|
|
@ -13,10 +13,9 @@
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from django.conf.urls import patterns, include, url
|
from django.conf.urls import patterns, include, url
|
||||||
from django.contrib import admin
|
|
||||||
|
|
||||||
urlpatterns = patterns(
|
urlpatterns = patterns(
|
||||||
'',
|
'',
|
||||||
url(r'^admin/', include(admin.site.urls)),
|
url(r'^docs/', include('rest_framework_swagger.urls')),
|
||||||
url(r'^', include('stacktask.api.urls')),
|
url(r'^', include('stacktask.api.urls')),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue