Moved API to correctly appear in the autogenerated documentation
Change-Id: I740d17ae4cf805b03d3a9f7cf8c5ff63ab6af35f
diff --git a/xos/api/service/metronetworkservice.py b/xos/api/service/metronetworkservice/metronetworkservice.py
similarity index 97%
rename from xos/api/service/metronetworkservice.py
rename to xos/api/service/metronetworkservice/metronetworkservice.py
index a7945fc..368e52f 100644
--- a/xos/api/service/metronetworkservice.py
+++ b/xos/api/service/metronetworkservice/metronetworkservice.py
@@ -22,7 +22,7 @@
class MetroNetworkServiceViewSet(XOSViewSet):
base_name = "metronetworkservice"
- method_name = "metronetworkservice/metronetwork"
+ method_name = "metronetwork"
method_kind = "viewset"
queryset = MetroNetworkService.get_service_objects().all()
serializer_class = MetroNetworkServiceSerializer
@@ -65,7 +65,7 @@
class NetworkEdgePortViewSet(XOSViewSet):
base_name = "SCA_ETH_FPP_UNI_N"
- method_name = "metronetworkservice/SCA_ETH_FPP_UNI_N"
+ method_name = "SCA_ETH_FPP_UNI_N"
method_kind = "viewset"
queryset = NetworkEdgePort.objects.all()
serializer_class = NetworkEdgePortSerializer
@@ -106,7 +106,7 @@
class NetworkEdgeToEdgePointConnectionViewSet(XOSViewSet):
base_name = "SCA_ETH_FDFr_EC"
- method_name = "metronetworkservice/SCA_ETH_FDFr_EC"
+ method_name = "SCA_ETH_FDFr_EC"
method_kind = "viewset"
queryset = NetworkEdgeToEdgePointConnection.objects.all()
serializer_class = NetworkEdgeToEdgePointConnectionSerializer
diff --git a/xos/metronetworkservice-onboard.yaml b/xos/metronetworkservice-onboard.yaml
index 985500d..2a522eb 100644
--- a/xos/metronetworkservice-onboard.yaml
+++ b/xos/metronetworkservice-onboard.yaml
@@ -15,7 +15,7 @@
# base_url is non-null.
models: models.py
admin: admin.py
- rest_service: api/service/metronetworkservice.py
+ rest_service: subdirectory:metronetworkservice api/service/metronetworkservice/metronetworkservice.py
synchronizer: synchronizer/manifest
synchronizer_run: metronetworkervice-synchronizer.py
tosca_resource: tosca/resources/metronetservice.py