Start of group support.

This commit is contained in:
Michael DeHaan
2013-03-26 16:57:08 -04:00
parent 2d3ff081c1
commit 3625039d47
4 changed files with 145 additions and 26 deletions

View File

@@ -48,6 +48,8 @@ views_InventoryList = views.InventoryList.as_view()
views_InventoryDetail = views.InventoryDetail.as_view()
# group service
views_GroupsList = views.GroupsList.as_view()
views_GroupsDetail = views.GroupsDetail.as_view()
# host service
views_HostsList = views.HostsList.as_view()
@@ -99,6 +101,8 @@ urlpatterns = patterns('',
url(r'^api/v1/hosts/(?P<pk>[0-9]+)/$', views_HostsDetail),
# group service
url(r'^api/v1/groups/$', views_GroupsList),
url(r'^api/v1/groups/(?P<pk>[0-9]+)/$', views_GroupsDetail),
# inventory variable service