move rest api stuff into xos directory
diff --git a/planetstack/apigen/api.template.py b/planetstack/apigen/api.template.py
index ae67083..080beb7 100644
--- a/planetstack/apigen/api.template.py
+++ b/planetstack/apigen/api.template.py
@@ -11,7 +11,7 @@
from django.conf.urls import patterns, url
from rest_framework.exceptions import PermissionDenied as RestFrameworkPermissionDenied
from django.core.exceptions import PermissionDenied as DjangoPermissionDenied
-from xosapibase import XOSRetrieveUpdateDestroyAPIView, XOSListCreateAPIView, XOSNotAuthenticated
+from apibase import XOSRetrieveUpdateDestroyAPIView, XOSListCreateAPIView, XOSNotAuthenticated
if hasattr(serializers, "ReadOnlyField"):
# rest_framework 3.x
diff --git a/planetstack/core/xoslib/methods/plus.py b/planetstack/core/xoslib/methods/plus.py
index f753620..018f648 100644
--- a/planetstack/core/xoslib/methods/plus.py
+++ b/planetstack/core/xoslib/methods/plus.py
@@ -2,7 +2,7 @@
from rest_framework import serializers
from rest_framework.response import Response
from rest_framework import status
-from xosapibase import XOSRetrieveUpdateDestroyAPIView, XOSListCreateAPIView
+from xos.apibase import XOSRetrieveUpdateDestroyAPIView, XOSListCreateAPIView
""" PlusSerializerMixin
diff --git a/planetstack/core/xoslib/methods/sliceplus.py b/planetstack/core/xoslib/methods/sliceplus.py
index cdb2f73..4de2a6e 100644
--- a/planetstack/core/xoslib/methods/sliceplus.py
+++ b/planetstack/core/xoslib/methods/sliceplus.py
@@ -7,7 +7,7 @@
from django.forms import widgets
from core.xoslib.objects.sliceplus import SlicePlus
from plus import PlusSerializerMixin
-from xosapibase import XOSListCreateAPIView, XOSRetrieveUpdateDestroyAPIView, XOSPermissionDenied
+from xos.apibase import XOSListCreateAPIView, XOSRetrieveUpdateDestroyAPIView, XOSPermissionDenied
if hasattr(serializers, "ReadOnlyField"):
# rest_framework 3.x
diff --git a/planetstack/xosapibase.py b/planetstack/xos/apibase.py
similarity index 100%
rename from planetstack/xosapibase.py
rename to planetstack/xos/apibase.py
diff --git a/planetstack/xos/urls.py b/planetstack/xos/urls.py
index 386e0fc..0f55a25 100644
--- a/planetstack/xos/urls.py
+++ b/planetstack/xos/urls.py
@@ -4,7 +4,7 @@
from django.contrib import admin
# This is the generated API
-from genapi import *
+from xosapi import *
from core.views.legacyapi import LegacyXMLRPC
#from core.views.analytics import AnalyticsAjaxView
diff --git a/planetstack/genapi.py b/planetstack/xos/xosapi.py
similarity index 99%
rename from planetstack/genapi.py
rename to planetstack/xos/xosapi.py
index 493c04a..edf9206 100644
--- a/planetstack/genapi.py
+++ b/planetstack/xos/xosapi.py
@@ -11,7 +11,7 @@
from django.conf.urls import patterns, url
from rest_framework.exceptions import PermissionDenied as RestFrameworkPermissionDenied
from django.core.exceptions import PermissionDenied as DjangoPermissionDenied
-from xosapibase import XOSRetrieveUpdateDestroyAPIView, XOSListCreateAPIView, XOSNotAuthenticated
+from apibase import XOSRetrieveUpdateDestroyAPIView, XOSListCreateAPIView, XOSNotAuthenticated
if hasattr(serializers, "ReadOnlyField"):
# rest_framework 3.x