mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 01:28:09 -03:30
get organizations API working, hello REST world!
This commit is contained in:
1
lib/api/resources/__init__.py
Normal file
1
lib/api/resources/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from organizations import *
|
||||
@@ -1,6 +1,12 @@
|
||||
from django.conf import settings
|
||||
from django.conf.urls import *
|
||||
from tastypie.api import Api
|
||||
from lib.api.resources import Organizations
|
||||
|
||||
v1_api = Api(api_name='v1')
|
||||
v1_api.register(Organizations())
|
||||
|
||||
|
||||
urlpatterns = patterns('',
|
||||
# (r'^', fooooooo),
|
||||
(r'', include(v1_api.urls)),
|
||||
)
|
||||
|
||||
@@ -114,6 +114,7 @@ INSTALLED_APPS = (
|
||||
'django.contrib.sites',
|
||||
'django.contrib.staticfiles',
|
||||
'lib.main',
|
||||
'lib.api',
|
||||
'south',
|
||||
# not yet compatible with Django 1.5 unless using version from github
|
||||
# 'devserver',
|
||||
|
||||
Reference in New Issue
Block a user