1.Update API endpoint; 2. update swagger information.
[modeling/etsicatalog.git] / catalog / packages / const.py
index cd09b40..cc7dd2d 100644 (file)
@@ -39,6 +39,22 @@ NOTIFICATION_TYPES = [
     "VnfPackageOnboardingNotification",
     "VnfPackageChangeNotification"
 ]
+PKG_CHANGE_TYPE = enum(OP_STATE_CHANGE="OP_STATE_CHANGE", PKG_DELETE="PKG_DELETE")
+
+PKG_NOTIFICATION_TYPE = enum(ONBOARDING="VnfPackageOnboardingNotification",
+                             CHANGE="VnfPackageChangeNotification")
+
+NSD_NOTIFICATION_TYPE = enum(NSD_ONBOARDING="NsdOnBoardingNotification",
+                             NSD_ONBOARDING_FAILURE="NsdOnboardingFailureNotification",
+                             NSD_CHANGE="NsdChangeNotification",
+                             NSD_DELETION="NsdDeletionNotification",
+                             PNFD_ONBOARDING="PnfdOnBoardingNotification",
+                             PNFD_ONBOARDING_FAILURE="PnfdOnBoardingFailureNotification",
+                             PNFD_DELETION="PnfdDeletionNotification")
+
+PKG_URL_PREFIX = "api/vnfpkgm/v1"
+
+NSD_URL_PREFIX = "api/nsd/v1"
 
 VNFPKG_SUBSCRIPTION_ROOT_URI = "api/vnfpkgm/v1/subscriptions/"
 
@@ -76,3 +92,16 @@ NSDM_NOTIFICATION_TYPES = [
     "PnfdOnBoardingFailureNotification",
     "PnfdDeletionNotification"
 ]
+
+# API swagger tag
+TAG_CATALOG_API = "Catalog interface"
+
+TAG_PARSER_API = "Parser interface"
+
+TAG_NSD_API = "NSD Management interface"
+
+TAG_PNFD_API = "NSD Management interface"
+
+TAG_VNF_PACKAGE_API = "VNF Package Management interface"
+
+TAG_HEALTH_CHECK = "Health Check interface"