From 181b28af707150cdacf4710027bacea7ef5cc13f Mon Sep 17 00:00:00 2001 From: laili Date: Wed, 22 Aug 2018 14:09:35 +0800 Subject: [PATCH] Ns descriptor related stuffs. Add a nsd_infos serializer. Change-Id: I722a2f48e06f4d7c394bb060313d09497102aea6 Issue-ID: VFC-1037 Signed-off-by: laili --- catalog/packages/serializers/nsd_infos.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 catalog/packages/serializers/nsd_infos.py diff --git a/catalog/packages/serializers/nsd_infos.py b/catalog/packages/serializers/nsd_infos.py new file mode 100644 index 00000000..b5055ecf --- /dev/null +++ b/catalog/packages/serializers/nsd_infos.py @@ -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() -- 2.16.6