summaryrefslogtreecommitdiffstats
path: root/nokiav2/driver/src/main/resources
diff options
context:
space:
mode:
Diffstat (limited to 'nokiav2/driver/src/main/resources')
-rw-r--r--nokiav2/driver/src/main/resources/self.swagger.json8
-rw-r--r--nokiav2/driver/src/main/resources/upload.html7
2 files changed, 12 insertions, 3 deletions
diff --git a/nokiav2/driver/src/main/resources/self.swagger.json b/nokiav2/driver/src/main/resources/self.swagger.json
index 37da1b30..2645cd0e 100644
--- a/nokiav2/driver/src/main/resources/self.swagger.json
+++ b/nokiav2/driver/src/main/resources/self.swagger.json
@@ -1046,8 +1046,14 @@
{
"description": "The CBAM VNF package",
"in": "formData",
- "name": "upfile",
+ "name": "fileToUpload",
"type": "file"
+ },
+ {
+ "description": "ONAP version of the package",
+ "in": "formData",
+ "name": "version",
+ "type": "string"
}
],
"summary": "Converts the Nokia CBAM package to ONAP package",
diff --git a/nokiav2/driver/src/main/resources/upload.html b/nokiav2/driver/src/main/resources/upload.html
index a5c686f4..ace9d2e4 100644
--- a/nokiav2/driver/src/main/resources/upload.html
+++ b/nokiav2/driver/src/main/resources/upload.html
@@ -4,9 +4,12 @@
<form action="/api/NokiaSVNFM/v1/convert" method="post" enctype="multipart/form-data">
Select CBAM package to upload:
- <input type="file" name="fileToUpload" id="fileToUpload">
+ <input type="file" name="fileToUpload" id="fileToUpload"> ONAP package version:
+ <select name="version">
+ <option value="V1">V1</option>
+ <option value="V2" selected="selected">V2</option>
+ </select>
<input type="submit" value="Upload" name="submit">
</form>
-
</body>
</html> \ No newline at end of file