aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsheetalm <sheetal.mudholkar@amdocs.com>2018-03-29 15:48:04 +0530
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2018-03-29 14:31:52 +0000
commit8d74513329f8b6c6783024de866784f32c4b0f2c (patch)
treeb4410536487ac8cd290979f8d8dd737b179c550c
parenta26e2683d10fdd4484d67bb8b7d6a2e0a41ab753 (diff)
Activity Spec - Correct api-docs description
Correct api-docs description. New fields added to json for flow test Change-Id: I67de4c19055fb5e5456f2aa143285f88b7d8ce18 Issue-ID: SDC-1048 Signed-off-by: sheetalm <sheetal.mudholkar@amdocs.com>
-rw-r--r--openecomp-bdd/resources/json/createActivitySpec.json8
-rw-r--r--services/activity-spec/activity-spec-web/activity-spec-service/src/main/java/org/openecomp/activityspec/api/rest/ActivitySpecs.java7
2 files changed, 9 insertions, 6 deletions
diff --git a/openecomp-bdd/resources/json/createActivitySpec.json b/openecomp-bdd/resources/json/createActivitySpec.json
index 8d5fc16f72..29ad716834 100644
--- a/openecomp-bdd/resources/json/createActivitySpec.json
+++ b/openecomp-bdd/resources/json/createActivitySpec.json
@@ -4,14 +4,16 @@
"categoryList": [
"Server"
],
- "inputParameters": [{
+ "inputs": [{
"name": "host",
"type": "string",
"value": "10.1.2.3"
}],
- "outputParameters": [{
+ "outputs": [{
"name": "status",
"type": "string",
"value": "started"
- }]
+ }],
+ "type": "string",
+ "content": "test"
} \ No newline at end of file
diff --git a/services/activity-spec/activity-spec-web/activity-spec-service/src/main/java/org/openecomp/activityspec/api/rest/ActivitySpecs.java b/services/activity-spec/activity-spec-web/activity-spec-service/src/main/java/org/openecomp/activityspec/api/rest/ActivitySpecs.java
index f646a3b87a..ae9e1583fd 100644
--- a/services/activity-spec/activity-spec-web/activity-spec-service/src/main/java/org/openecomp/activityspec/api/rest/ActivitySpecs.java
+++ b/services/activity-spec/activity-spec-web/activity-spec-service/src/main/java/org/openecomp/activityspec/api/rest/ActivitySpecs.java
@@ -67,8 +67,9 @@ public interface ActivitySpecs {
@Path("/{id}/versions/{versionId}/actions")
@ApiOperation(value = "Actions on a activity spec",
notes = "Performs one of the following actions on a activity spec: |"
- + "Submit: Finalize its active version.|"
- + "Deprecate: Deprecate activity spec.|")
+ + "CERTIFY: Certifies activity spec.|"
+ + "DEPRECATE: Deprecates activity spec.|"
+ + "DELETE: Deletes activity spec.")
Response actOnActivitySpec(ActivitySpecActionRequestDto request,
@ApiParam(value = "Activity Spec Id") @PathParam("id") String id,
@ApiParam(value = "Version Id") @PathParam("versionId") String versionId);
@@ -78,6 +79,6 @@ public interface ActivitySpecs {
@ApiOperation(value = "Get list of activity specs ",
responseContainer = "List")
Response list(@ApiParam(
- value = "Currently supported values: 'Certified' - only activity specs with Certified status")
+ value = "List activity specs based on status filter")
@QueryParam("status") String versionStatus);
}