Ns descriptor related stuffs. 65/61765/1
authorlaili <lai.li@zte.com.cn>
Wed, 22 Aug 2018 06:09:35 +0000 (14:09 +0800)
committerlaili <lai.li@zte.com.cn>
Wed, 22 Aug 2018 06:09:35 +0000 (14:09 +0800)
Add a nsd_infos serializer.

Change-Id: I722a2f48e06f4d7c394bb060313d09497102aea6
Issue-ID: VFC-1037
Signed-off-by: laili <lai.li@zte.com.cn>
catalog/packages/serializers/nsd_infos.py [new file with mode: 0644]

diff --git a/catalog/packages/serializers/nsd_infos.py b/catalog/packages/serializers/nsd_infos.py
new file mode 100644 (file)
index 0000000..b5055ec
--- /dev/null
@@ -0,0 +1,17 @@
+# 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 rest_framework import serializers
+from nsd_info import NsdInfoSerializer
+
+
+class NsdInfosSerializer(serializers.ListSerializer):
+    child = NsdInfoSerializer()