summaryrefslogtreecommitdiffstats
path: root/services/activity-spec/swagger-ui/api-docs/api.json
diff options
context:
space:
mode:
authorsheetalm <sheetal.mudholkar@amdocs.com>2018-02-20 19:06:27 +0530
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2018-03-08 08:50:18 +0000
commit297209b45b403e9b314ebeb1140886e00ffd3f6d (patch)
treea8ba88380016fed0d1f28fbddfc4d4909ca22165 /services/activity-spec/swagger-ui/api-docs/api.json
parent2b60bd08c6b209c0817fac84970c35df4abca6ed (diff)
Activity Spec Service - Implementation
Correcting error message. InternalEmptyObject not required to be serializable. Fixed review comments on Patch Set 10. Not all fixed Adding services profile in main sdc pom.Moving Static imports at end. Patch Set 7 changes Patch Set 6 - Removing javax.inject. Remove user from interface and Changing scope to be singleton. Correcting error message Patch Set 4 Not fixing Spring related review comments in this patch set Patch Set 4 Fixed review comments related to unused dependency Fixed review comments for plugin version. Corrected License Adding Activity Spec Service Implementation Not adding to main sdc pom as of now Change-Id: I5285c0ab3b71b492d18ca442ebd52b59ab0eabdc Issue-ID: SDC-1048 Signed-off-by: sheetalm <sheetal.mudholkar@amdocs.com>
Diffstat (limited to 'services/activity-spec/swagger-ui/api-docs/api.json')
-rw-r--r--services/activity-spec/swagger-ui/api-docs/api.json239
1 files changed, 239 insertions, 0 deletions
diff --git a/services/activity-spec/swagger-ui/api-docs/api.json b/services/activity-spec/swagger-ui/api-docs/api.json
new file mode 100644
index 0000000000..7f99775fcd
--- /dev/null
+++ b/services/activity-spec/swagger-ui/api-docs/api.json
@@ -0,0 +1,239 @@
+{
+ "swagger" : "2.0",
+ "info" : {
+ "description" : "Rest API Documentation",
+ "version" : "v1.0, build #${buildNumber}",
+ "title" : "Rest API",
+ "termsOfService" : "http://www.github.com/kongchen/swagger-maven-plugin"
+ },
+ "basePath" : "/activityspec-api",
+ "tags" : [ {
+ "name" : "Activity Specs"
+ } ],
+ "schemes" : [ "http" ],
+ "paths" : {
+ "/v1.0/activity-spec" : {
+ "get" : {
+ "tags" : [ "Activity Specs" ],
+ "summary" : "Get list of activity specs ",
+ "description" : "",
+ "operationId" : "list",
+ "consumes" : [ "application/json" ],
+ "produces" : [ "application/json" ],
+ "parameters" : [ {
+ "name" : "status",
+ "in" : "query",
+ "description" : "Currently supported values: 'Certified' - only activity specs with Certified status",
+ "required" : false,
+ "type" : "string"
+ }, {
+ "name" : "USER_ID",
+ "in" : "header",
+ "required" : false,
+ "type" : "string",
+ "default" : ""
+ } ],
+ "responses" : {
+ "default" : {
+ "description" : "successful operation"
+ }
+ }
+ },
+ "post" : {
+ "tags" : [ "Activity Specs" ],
+ "summary" : "Create Activity Spec",
+ "description" : "",
+ "operationId" : "createActivitySpec",
+ "consumes" : [ "application/json" ],
+ "produces" : [ "application/json" ],
+ "parameters" : [ {
+ "in" : "body",
+ "name" : "body",
+ "required" : false,
+ "schema" : {
+ "$ref" : "#/definitions/ActivitySpecRequest"
+ }
+ }, {
+ "name" : "USER_ID",
+ "in" : "header",
+ "required" : false,
+ "type" : "string",
+ "default" : ""
+ } ],
+ "responses" : {
+ "default" : {
+ "description" : "successful operation"
+ }
+ }
+ }
+ },
+ "/v1.0/activity-spec/{id}/versions/{versionId}" : {
+ "get" : {
+ "tags" : [ "Activity Specs" ],
+ "summary" : "Get Activity Spec",
+ "description" : "",
+ "operationId" : "getActivitySpec",
+ "consumes" : [ "application/json" ],
+ "produces" : [ "application/json" ],
+ "parameters" : [ {
+ "name" : "id",
+ "in" : "path",
+ "description" : "Activity Spec Id",
+ "required" : true,
+ "type" : "string"
+ }, {
+ "name" : "versionId",
+ "in" : "path",
+ "description" : "Version Id",
+ "required" : true,
+ "type" : "string"
+ }, {
+ "name" : "USER_ID",
+ "in" : "header",
+ "required" : false,
+ "type" : "string",
+ "default" : ""
+ } ],
+ "responses" : {
+ "default" : {
+ "description" : "successful operation"
+ }
+ }
+ },
+ "put" : {
+ "tags" : [ "Activity Specs" ],
+ "summary" : "Update Activity Spec",
+ "description" : "",
+ "operationId" : "updateActivitySpec",
+ "consumes" : [ "application/json" ],
+ "produces" : [ "application/json" ],
+ "parameters" : [ {
+ "in" : "body",
+ "name" : "body",
+ "required" : false,
+ "schema" : {
+ "$ref" : "#/definitions/ActivitySpecRequest"
+ }
+ }, {
+ "name" : "id",
+ "in" : "path",
+ "description" : "Activity Spec Id",
+ "required" : true,
+ "type" : "string"
+ }, {
+ "name" : "versionId",
+ "in" : "path",
+ "description" : "Version Id",
+ "required" : true,
+ "type" : "string"
+ }, {
+ "name" : "USER_ID",
+ "in" : "header",
+ "required" : false,
+ "type" : "string",
+ "default" : ""
+ } ],
+ "responses" : {
+ "default" : {
+ "description" : "successful operation"
+ }
+ }
+ }
+ },
+ "/v1.0/activity-spec/{id}/versions/{versionId}/actions" : {
+ "put" : {
+ "tags" : [ "Activity Specs" ],
+ "summary" : "Actions on a activity spec",
+ "description" : "Performs one of the following actions on a activity spec: |Submit: Finalize its active version.|Deprecate: Deprecate activity spec.|",
+ "operationId" : "actOnActivitySpec",
+ "consumes" : [ "application/json" ],
+ "produces" : [ "application/json" ],
+ "parameters" : [ {
+ "in" : "body",
+ "name" : "body",
+ "required" : false,
+ "schema" : {
+ "$ref" : "#/definitions/ActivitySpecActionRequestDto"
+ }
+ }, {
+ "name" : "id",
+ "in" : "path",
+ "description" : "Activity Spec Id",
+ "required" : true,
+ "type" : "string"
+ }, {
+ "name" : "versionId",
+ "in" : "path",
+ "description" : "Version Id",
+ "required" : true,
+ "type" : "string"
+ }, {
+ "name" : "USER_ID",
+ "in" : "header",
+ "required" : false,
+ "type" : "string",
+ "default" : ""
+ } ],
+ "responses" : {
+ "default" : {
+ "description" : "successful operation"
+ }
+ }
+ }
+ }
+ },
+ "definitions" : {
+ "ActivitySpecActionRequestDto" : {
+ "type" : "object",
+ "properties" : {
+ "action" : {
+ "type" : "string",
+ "enum" : [ "Certify", "Deprecate", "Delete" ]
+ }
+ }
+ },
+ "ActivitySpecParameterDto" : {
+ "type" : "object",
+ "properties" : {
+ "name" : {
+ "type" : "string"
+ },
+ "type" : {
+ "type" : "string"
+ },
+ "value" : {
+ "type" : "string"
+ }
+ }
+ },
+ "ActivitySpecRequest" : {
+ "type" : "object",
+ "properties" : {
+ "name" : {
+ "type" : "string"
+ },
+ "description" : {
+ "type" : "string"
+ },
+ "categoryList" : {
+ "type" : "array",
+ "items" : {
+ "type" : "string"
+ }
+ },
+ "inputParameters" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/definitions/ActivitySpecParameterDto"
+ }
+ },
+ "outputParameters" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/definitions/ActivitySpecParameterDto"
+ }
+ }
+ }
+ }
+ }
+} \ No newline at end of file