aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfengyuanxing <feng.yuanxing@zte.com.cn>2018-01-25 10:57:38 +0800
committerfengyuanxing <feng.yuanxing@zte.com.cn>2018-01-25 10:57:38 +0800
commitaedda94ebf9c4b3d048be997c42dea943f2428d3 (patch)
treebcb4335303bf9ec056baa63a5a93b60d52b87dd9
parenta051c26a2abfec55a271eb6d661accb0ee36eb6c (diff)
Modify the help text of swagger
Change-Id: Ifd895dcf3d735d0f54c87db71cc42a61c87dacba Issue-ID: VFC-677 Signed-off-by: fengyuanxing <feng.yuanxing@zte.com.cn>
-rw-r--r--catalog/serializers.py36
1 files changed, 18 insertions, 18 deletions
diff --git a/catalog/serializers.py b/catalog/serializers.py
index 2e3dd634..25cf7986 100644
--- a/catalog/serializers.py
+++ b/catalog/serializers.py
@@ -19,42 +19,42 @@ from catalog.pub.utils.toscaparser.vnfdmodel import EtsiVnfdInfoModel
class JobResponseSerializer(serializers.Serializer):
- progress = serializers.CharField(help_text="progress", required=False)
- desc = serializers.CharField(help_text="desc", required=False)
- errcode = serializers.CharField(help_text="errcode", required=False)
+ progress = serializers.CharField(help_text="Job Progress", required=False)
+ desc = serializers.CharField(help_text="Description", required=False)
+ errcode = serializers.CharField(help_text="Error Code", required=False)
class JobResponseHistoryListSerializer(serializers.Serializer):
- status = serializers.CharField(help_text="status", required=False)
- progress = serializers.CharField(help_text="progress", required=False)
+ status = serializers.CharField(help_text="Status", required=False)
+ progress = serializers.CharField(help_text="Job Progress", required=False)
statusDescription = serializers.CharField(
- help_text="statusDescription", required=False)
- errorCode = serializers.CharField(help_text="errcode", required=False)
- responseId = serializers.CharField(help_text="responseId", required=False)
+ help_text="Status Description", required=False)
+ errorCode = serializers.CharField(help_text="Error Code", required=False)
+ responseId = serializers.CharField(help_text="Response Id", required=False)
class JobResponseDescriptorSerializer(serializers.Serializer):
- status = serializers.CharField(help_text="status", required=False)
- progress = serializers.CharField(help_text="progress", required=False)
+ status = serializers.CharField(help_text="Status", required=False)
+ progress = serializers.CharField(help_text="Job Progress", required=False)
statusDescription = serializers.CharField(
- help_text="statusDescription", required=False)
- errorCode = serializers.CharField(help_text="errcode", required=False)
- responseId = serializers.CharField(help_text="responseId", required=False)
+ help_text="Status Description", required=False)
+ errorCode = serializers.CharField(help_text="Error Code", required=False)
+ responseId = serializers.CharField(help_text="Response Id", required=False)
responseHistoryList = JobResponseHistoryListSerializer(
- many=True, help_text="responseHistoryList", required=False)
+ many=True, help_text="Response History List", required=False)
class JobRequestSerializer(serializers.Serializer):
jobId = serializers.CharField(
- help_text="this field is generated from a query_serializer",
+ help_text="Job Id",
required=False)
responseDescriptor = JobResponseDescriptorSerializer(
- help_text="this one too!", required=False)
+ help_text="Job Response Descriptor", required=False)
class PostJobResponseResultSerializer(serializers.Serializer):
- result = serializers.CharField(help_text="result", required=True)
- msg = serializers.CharField(help_text="msg", required=False)
+ result = serializers.CharField(help_text="Result", required=True)
+ msg = serializers.CharField(help_text="Message", required=False)
class NsPackageDistributeRequestSerializer(serializers.Serializer):