From: laili Date: Wed, 22 Aug 2018 06:09:35 +0000 (+0800) Subject: Ns descriptor related stuffs. X-Git-Tag: 1.2.0~111^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F65%2F61765%2F1;p=vfc%2Fnfvo%2Fcatalog.git Ns descriptor related stuffs. Add a nsd_infos serializer. Change-Id: I722a2f48e06f4d7c394bb060313d09497102aea6 Issue-ID: VFC-1037 Signed-off-by: laili --- 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()