adding django rest swagger docs

also removing pointless admin views and models

Change-Id: If1dd178cac9d54f1a81f816b77708482e4d909b1
This commit is contained in:
adriant 2015-08-05 14:48:00 +12:00
parent 572b22a1a8
commit f6c49c20d9
8 changed files with 6 additions and 43 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@
*.log
stacktask.egg-info/*
dist/*
.tox/*

View File

@ -5,3 +5,4 @@ keystonemiddleware>=1.3.1
python-keystoneclient>=1.0.0
python-neutronclient>=2.3.10
jsonfield>=1.0.2
django-rest-swagger>=0.3.3

View File

@ -33,7 +33,8 @@ setup(
'keystonemiddleware>=1.3.1',
'python-keystoneclient>=1.0.0',
'python-neutronclient>=2.3.10',
'pyyaml>=3.11'
'pyyaml>=3.11',
'django-rest-swagger>=0.3.3'
],
entry_points={
'console_scripts': [

View File

@ -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)

View File

@ -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)

View File

@ -1,3 +0,0 @@
from django.contrib import admin
# Register your models here.

View File

@ -50,6 +50,7 @@ INSTALLED_APPS = (
'django.contrib.messages',
'django.contrib.staticfiles',
'rest_framework',
'rest_framework_swagger',
'stacktask.base',
'stacktask.api',
)

View File

@ -13,10 +13,9 @@
# under the License.
from django.conf.urls import patterns, include, url
from django.contrib import admin
urlpatterns = patterns(
'',
url(r'^admin/', include(admin.site.urls)),
url(r'^docs/', include('rest_framework_swagger.urls')),
url(r'^', include('stacktask.api.urls')),
)