CDS add Postman collection for Resource, Template, Dictionary and Config API 57/116357/5
authorPiotr Stanior <piotr.stanior@t-mobile.pl>
Tue, 15 Dec 2020 09:13:34 +0000 (10:13 +0100)
committerKAPIL SINGAL <ks220y@att.com>
Tue, 15 Dec 2020 20:13:07 +0000 (20:13 +0000)
Issue-ID: CCSDK-3014
Change-Id: Ic9892c035067064fd612f2781507a36072e4e712
Signed-off-by: Piotr Stanior <piotr.stanior@t-mobile.pl>
docs/api-reference/bp-processor.rst
docs/api-reference/media/bp-processor.postman_collection.json
docs/api-reference/media/cds-bp-processor-api-swagger.json
ms/blueprintsprocessor/application/pom.xml
ms/blueprintsprocessor/modules/inbounds/configs-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/configs/api/ResourceConfigSnapshotController.kt
ms/blueprintsprocessor/modules/inbounds/designer-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/designer/api/BlueprintModelController.kt
ms/blueprintsprocessor/modules/inbounds/designer-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/designer/api/ResourceDictionaryController.kt
ms/blueprintsprocessor/modules/inbounds/resource-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/resource/api/ResourceController.kt
ms/blueprintsprocessor/modules/inbounds/resource-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/resource/api/TemplateController.kt

index ea88801..c4694c0 100644 (file)
@@ -13,10 +13,10 @@ which is automatically created during CDS build process by Swagger Maven Plugin.
 also included. Endpoints can also be described using this template
 :download:`api-doc-template.rst <api-doc-template.rst>` but this is not the prefered way to describe the CDS API.
 
-Authentification
+Authorization
 -----------------
 
-Use Basic athentification with `ccsdkapps` as a username and password, in Header ``Authorization: Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==``.
+Use Basic authorization with `ccsdkapps` as a username and password, in Header ``Authorization: Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==``.
 
 Download
 ------------
index 0e62117..2aabe13 100644 (file)
@@ -7,7 +7,7 @@
        },
        "item": [
                {
-                       "name": "Blueprint Model Catalog API",
+                       "name": "Blueprint Model Catalog",
                        "item": [
                                {
                                        "name": "List all Blueprint Models",
                        "description": "Manages all blueprint models which are available in CDS",
                        "protocolProfileBehavior": {}
                },
+               {
+                       "name": "Resource configuration",
+                       "item": [
+                               {
+                                       "name": "Retrieve a resource configuration snapshot",
+                                       "request": {
+                                               "auth": {
+                                                       "type": "basic",
+                                                       "basic": [
+                                                               {
+                                                                       "key": "username",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "password",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "showPassword",
+                                                                       "value": false,
+                                                                       "type": "boolean"
+                                                               }
+                                                       ]
+                                               },
+                                               "method": "GET",
+                                               "header": [],
+                                               "url": {
+                                                       "raw": "http://{{host}}:{{port}}/api/v1/configs",
+                                                       "protocol": "http",
+                                                       "host": [
+                                                               "{{host}}"
+                                                       ],
+                                                       "port": "{{port}}",
+                                                       "path": [
+                                                               "api",
+                                                               "v1",
+                                                               "configs"
+                                                       ]
+                                               },
+                                               "description": "Retrieve a config snapshot, identified by its Resource Id and Type. An extra 'format' parameter can be passed to tell what content-type is expected."
+                                       },
+                                       "response": []
+                               },
+                               {
+                                       "name": "Retrieve all resource configuration snapshots identified by a given resource_id",
+                                       "request": {
+                                               "auth": {
+                                                       "type": "basic",
+                                                       "basic": [
+                                                               {
+                                                                       "key": "username",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "password",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "showPassword",
+                                                                       "value": false,
+                                                                       "type": "boolean"
+                                                               }
+                                                       ]
+                                               },
+                                               "method": "GET",
+                                               "header": [],
+                                               "url": {
+                                                       "raw": "http://{{host}}:{{port}}/api/v1/configs/allByID",
+                                                       "protocol": "http",
+                                                       "host": [
+                                                               "{{host}}"
+                                                       ],
+                                                       "port": "{{port}}",
+                                                       "path": [
+                                                               "api",
+                                                               "v1",
+                                                               "configs",
+                                                               "allByID"
+                                                       ]
+                                               },
+                                               "description": "Retrieve all config snapshots, identified by its Resource Id, ordered by most recently created/modified date."
+                                       },
+                                       "response": []
+                               },
+                               {
+                                       "name": "Retrieve all resource configuration snapshots for a given resource type",
+                                       "request": {
+                                               "auth": {
+                                                       "type": "basic",
+                                                       "basic": [
+                                                               {
+                                                                       "key": "username",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "password",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "showPassword",
+                                                                       "value": false,
+                                                                       "type": "boolean"
+                                                               }
+                                                       ]
+                                               },
+                                               "method": "GET",
+                                               "header": [],
+                                               "url": {
+                                                       "raw": "http://{{host}}:{{port}}/api/v1/configs/allByType",
+                                                       "protocol": "http",
+                                                       "host": [
+                                                               "{{host}}"
+                                                       ],
+                                                       "port": "{{port}}",
+                                                       "path": [
+                                                               "api",
+                                                               "v1",
+                                                               "configs",
+                                                               "allByType"
+                                                       ]
+                                               },
+                                               "description": "Retrieve all config snapshots matching a specified Resource Type, ordered by most recently created/modified date."
+                                       },
+                                       "response": []
+                               },
+                               {
+                                       "name": "Store a resource configuration snapshot identified by resourceId, resourceType, status",
+                                       "request": {
+                                               "auth": {
+                                                       "type": "basic",
+                                                       "basic": [
+                                                               {
+                                                                       "key": "username",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "password",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "showPassword",
+                                                                       "value": false,
+                                                                       "type": "boolean"
+                                                               }
+                                                       ]
+                                               },
+                                               "method": "POST",
+                                               "header": [],
+                                               "body": {
+                                                       "mode": "formdata",
+                                                       "formdata": []
+                                               },
+                                               "url": {
+                                                       "raw": "http://{{host}}:{{port}}/api/v1/configs/PNF/1/RUNNING",
+                                                       "protocol": "http",
+                                                       "host": [
+                                                               "{{host}}"
+                                                       ],
+                                                       "port": "{{port}}",
+                                                       "path": [
+                                                               "api",
+                                                               "v1",
+                                                               "configs",
+                                                               "PNF",
+                                                               "1",
+                                                               "RUNNING"
+                                                       ]
+                                               },
+                                               "description": "Store a resource configuration snapshot, identified by its resourceId and resourceType, and optionally its status, either RUNNING or CANDIDATE."
+                                       },
+                                       "response": []
+                               }
+                       ],
+                       "description": "Interaction with stored configurations",
+                       "protocolProfileBehavior": {}
+               },
+               {
+                       "name": "Resource dictionary",
+                       "item": [
+                               {
+                                       "name": "Save a resource dictionary",
+                                       "request": {
+                                               "auth": {
+                                                       "type": "basic",
+                                                       "basic": [
+                                                               {
+                                                                       "key": "username",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "password",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "showPassword",
+                                                                       "value": false,
+                                                                       "type": "boolean"
+                                                               }
+                                                       ]
+                                               },
+                                               "method": "POST",
+                                               "header": [],
+                                               "body": {
+                                                       "mode": "raw",
+                                                       "raw": "{\r\n    \"name\": \"test-source\",\r\n    \"dataType\": \"string\",\r\n    \"entrySchema\": null,\r\n    \"resourceDictionaryGroup\": \"default\",\r\n    \"definition\": {\r\n        \"tags\": \"oam-local-ipv4-address\",\r\n        \"name\": \"test-source\",\r\n        \"property\": {\r\n            \"description\": \"test\",\r\n            \"required\": null,\r\n            \"type\": \"string\",\r\n            \"status\": null,\r\n            \"constraints\": null,\r\n            \"metadata\": null,\r\n            \"value\": null,\r\n            \"input-param\": null,\r\n            \"default\": null,\r\n            \"entry_schema\": null,\r\n            \"external-schema\": null\r\n        },\r\n        \"group\": \"default\",\r\n        \"updated-by\": \"sample@onap.com\",\r\n        \"sources\": {\r\n            \"sdnc\": {\r\n                \"description\": null,\r\n                \"type\": \"source-rest\",\r\n                \"metadata\": null,\r\n                \"directives\": null,\r\n                \"properties\": {\r\n                    \"type\": \"JSON\",\r\n                    \"endpoint-selector\": \"\",\r\n                    \"url-path\": \"test\",\r\n                    \"path\": \"/v4-assigned-ip-list/0/v4-ip-prefix\",\r\n                    \"input-key-mapping\": {\r\n                        \"service-instance-id\": \"service-instance-id\",\r\n                        \"network-role\": \"network-role\",\r\n                        \"v4-ip-type\": \"v4-ip-type\",\r\n                        \"vm-type\": \"vm-type\"\r\n                    },\r\n                    \"output-key-mapping\": {\r\n                        \"oam-local-ipv4-address\": \"v4-ip-prefix\"\r\n                    },\r\n                    \"key-dependencies\": [\r\n                        \"service-instance-id\",\r\n                        \"network-role\",\r\n                        \"v4-ip-type\",\r\n                        \"vm-type\"\r\n                    ]\r\n                },\r\n                \"attributes\": null,\r\n                \"capabilities\": null,\r\n                \"requirements\": null,\r\n                \"interfaces\": null,\r\n                \"artifacts\": null,\r\n                \"copy\": null,\r\n                \"node_filter\": null\r\n            }\r\n        }\r\n    },\r\n    \"description\": \"test\",\r\n    \"tags\": \"oam-local-ipv4-address\",\r\n    \"updatedBy\": \"sample@onap.com\"\r\n}",
+                                                       "options": {
+                                                               "raw": {
+                                                                       "language": "json"
+                                                               }
+                                                       }
+                                               },
+                                               "url": {
+                                                       "raw": "http://{{host}}:{{port}}/api/v1/dictionary",
+                                                       "protocol": "http",
+                                                       "host": [
+                                                               "{{host}}"
+                                                       ],
+                                                       "port": "{{port}}",
+                                                       "path": [
+                                                               "api",
+                                                               "v1",
+                                                               "dictionary"
+                                                       ]
+                                               },
+                                               "description": "Save a resource dictionary by dictionary provided."
+                                       },
+                                       "response": []
+                               },
+                               {
+                                       "name": "Search for a resource dictionary",
+                                       "request": {
+                                               "auth": {
+                                                       "type": "basic",
+                                                       "basic": [
+                                                               {
+                                                                       "key": "username",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "password",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "showPassword",
+                                                                       "value": false,
+                                                                       "type": "boolean"
+                                                               }
+                                                       ]
+                                               },
+                                               "method": "POST",
+                                               "header": [],
+                                               "body": {
+                                                       "mode": "raw",
+                                                       "raw": "[\r\n  \"pub_key\",\r\n  \"hostname\"\r\n]",
+                                                       "options": {
+                                                               "raw": {
+                                                                       "language": "json"
+                                                               }
+                                                       }
+                                               },
+                                               "url": {
+                                                       "raw": "http://{{host}}:{{port}}/api/v1/dictionary/by-names",
+                                                       "protocol": "http",
+                                                       "host": [
+                                                               "{{host}}"
+                                                       ],
+                                                       "port": "{{port}}",
+                                                       "path": [
+                                                               "api",
+                                                               "v1",
+                                                               "dictionary",
+                                                               "by-names"
+                                                       ]
+                                               },
+                                               "description": "Search for a resource dictionary by names provided."
+                                       },
+                                       "response": []
+                               },
+                               {
+                                       "name": "Save a resource dictionary",
+                                       "request": {
+                                               "auth": {
+                                                       "type": "basic",
+                                                       "basic": [
+                                                               {
+                                                                       "key": "username",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "password",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "showPassword",
+                                                                       "value": false,
+                                                                       "type": "boolean"
+                                                               }
+                                                       ]
+                                               },
+                                               "method": "POST",
+                                               "header": [],
+                                               "body": {
+                                                       "mode": "raw",
+                                                       "raw": "{\r\n  \"tags\": \"v4-ip-type, tosca.datatypes.Root, data_type\",\r\n  \"name\": \"test-source\",\r\n  \"group\":\"test\",\r\n  \"property\" :{\r\n    \"description\": \"test\",\r\n    \"type\": \"string\"\r\n  },\r\n  \"updated-by\": \"sample@onap.com\",\r\n  \"sources\": {\r\n    \"default\": {\r\n      \"type\": \"source-default\",\r\n      \"properties\": {\r\n      }\r\n    }\r\n  }\r\n}",
+                                                       "options": {
+                                                               "raw": {
+                                                                       "language": "json"
+                                                               }
+                                                       }
+                                               },
+                                               "url": {
+                                                       "raw": "http://{{host}}:{{port}}/api/v1/dictionary/api/v1/dictionary/definition",
+                                                       "protocol": "http",
+                                                       "host": [
+                                                               "{{host}}"
+                                                       ],
+                                                       "port": "{{port}}",
+                                                       "path": [
+                                                               "api",
+                                                               "v1",
+                                                               "dictionary",
+                                                               "api",
+                                                               "v1",
+                                                               "dictionary",
+                                                               "definition"
+                                                       ]
+                                               },
+                                               "description": "Save a resource dictionary by dictionary provided."
+                                       },
+                                       "response": []
+                               },
+                               {
+                                       "name": "Retrieve all resource dictionary groups",
+                                       "request": {
+                                               "auth": {
+                                                       "type": "basic",
+                                                       "basic": [
+                                                               {
+                                                                       "key": "username",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "password",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "showPassword",
+                                                                       "value": false,
+                                                                       "type": "boolean"
+                                                               }
+                                                       ]
+                                               },
+                                               "method": "GET",
+                                               "header": [],
+                                               "url": {
+                                                       "raw": "http://{{host}}:{{port}}/api/v1/dictionary/resource_dictionary_group",
+                                                       "protocol": "http",
+                                                       "host": [
+                                                               "{{host}}"
+                                                       ],
+                                                       "port": "{{port}}",
+                                                       "path": [
+                                                               "api",
+                                                               "v1",
+                                                               "dictionary",
+                                                               "resource_dictionary_group"
+                                                       ]
+                                               },
+                                               "description": "Retrieve all config snapshots matching a specified Resource Type, ordered by most recently created/modified date."
+                                       },
+                                       "response": []
+                               },
+                               {
+                                       "name": "Search for a resource dictionary",
+                                       "request": {
+                                               "auth": {
+                                                       "type": "basic",
+                                                       "basic": [
+                                                               {
+                                                                       "key": "username",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "password",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "showPassword",
+                                                                       "value": false,
+                                                                       "type": "boolean"
+                                                               }
+                                                       ]
+                                               },
+                                               "method": "GET",
+                                               "header": [],
+                                               "url": {
+                                                       "raw": "http://{{host}}:{{port}}/api/v1/dictionary/search/hostname",
+                                                       "protocol": "http",
+                                                       "host": [
+                                                               "{{host}}"
+                                                       ],
+                                                       "port": "{{port}}",
+                                                       "path": [
+                                                               "api",
+                                                               "v1",
+                                                               "dictionary",
+                                                               "search",
+                                                               "hostname"
+                                                       ]
+                                               },
+                                               "description": "Retrieve all config snapshots matching a specified Resource Type, ordered by most recently created/modified date."
+                                       },
+                                       "response": []
+                               },
+                               {
+                                       "name": "Search for a source mapping",
+                                       "request": {
+                                               "auth": {
+                                                       "type": "basic",
+                                                       "basic": [
+                                                               {
+                                                                       "key": "username",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "password",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "showPassword",
+                                                                       "value": false,
+                                                                       "type": "boolean"
+                                                               }
+                                                       ]
+                                               },
+                                               "method": "GET",
+                                               "header": [],
+                                               "url": {
+                                                       "raw": "http://{{host}}:{{port}}/api/v1/dictionary/search/hostname",
+                                                       "protocol": "http",
+                                                       "host": [
+                                                               "{{host}}"
+                                                       ],
+                                                       "port": "{{port}}",
+                                                       "path": [
+                                                               "api",
+                                                               "v1",
+                                                               "dictionary",
+                                                               "search",
+                                                               "hostname"
+                                                       ]
+                                               },
+                                               "description": "Search for a source mapping."
+                                       },
+                                       "response": []
+                               },
+                               {
+                                       "name": "Retrieve a resource dictionary",
+                                       "request": {
+                                               "auth": {
+                                                       "type": "basic",
+                                                       "basic": [
+                                                               {
+                                                                       "key": "username",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "password",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "showPassword",
+                                                                       "value": false,
+                                                                       "type": "boolean"
+                                                               }
+                                                       ]
+                                               },
+                                               "method": "GET",
+                                               "header": [],
+                                               "url": {
+                                                       "raw": "http://{{host}}:{{port}}/api/v1/dictionary/active-streams",
+                                                       "protocol": "http",
+                                                       "host": [
+                                                               "{{host}}"
+                                                       ],
+                                                       "port": "{{port}}",
+                                                       "path": [
+                                                               "api",
+                                                               "v1",
+                                                               "dictionary",
+                                                               "active-streams"
+                                                       ]
+                                               },
+                                               "description": "Retrieve a resource dictionary by name provided."
+                                       },
+                                       "response": []
+                               },
+                               {
+                                       "name": "Remove a resource dictionary",
+                                       "request": {
+                                               "auth": {
+                                                       "type": "basic",
+                                                       "basic": [
+                                                               {
+                                                                       "key": "username",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "password",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "showPassword",
+                                                                       "value": false,
+                                                                       "type": "boolean"
+                                                               }
+                                                       ]
+                                               },
+                                               "method": "DELETE",
+                                               "header": [],
+                                               "url": {
+                                                       "raw": "http://{{host}}:{{port}}/api/v1/dictionary/active-streams",
+                                                       "protocol": "http",
+                                                       "host": [
+                                                               "{{host}}"
+                                                       ],
+                                                       "port": "{{port}}",
+                                                       "path": [
+                                                               "api",
+                                                               "v1",
+                                                               "dictionary",
+                                                               "active-streams"
+                                                       ]
+                                               },
+                                               "description": "Remove a resource dictionary by name provided."
+                                       },
+                                       "response": []
+                               }
+                       ],
+                       "description": "Interaction with stored dictionaries",
+                       "protocolProfileBehavior": {}
+               },
+               {
+                       "name": "Resource template",
+                       "item": [
+                               {
+                                       "name": "Store a resolved template w/ resolution-key",
+                                       "request": {
+                                               "auth": {
+                                                       "type": "basic",
+                                                       "basic": [
+                                                               {
+                                                                       "key": "username",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "password",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "showPassword",
+                                                                       "value": false,
+                                                                       "type": "boolean"
+                                                               }
+                                                       ]
+                                               },
+                                               "method": "POST",
+                                               "header": [],
+                                               "body": {
+                                                       "mode": "raw",
+                                                       "raw": "PAYLOAD DATA",
+                                                       "options": {
+                                                               "raw": {
+                                                                       "language": "text"
+                                                               }
+                                                       }
+                                               },
+                                               "url": {
+                                                       "raw": "http://{{host}}:{{port}}/api/v1/template/baseconfiguration/1.0.0/activate/7cafa9f3-bbc8-49ec-8f25-fcaa6ac3ff08",
+                                                       "protocol": "http",
+                                                       "host": [
+                                                               "{{host}}"
+                                                       ],
+                                                       "port": "{{port}}",
+                                                       "path": [
+                                                               "api",
+                                                               "v1",
+                                                               "template",
+                                                               "baseconfiguration",
+                                                               "1.0.0",
+                                                               "activate",
+                                                               "7cafa9f3-bbc8-49ec-8f25-fcaa6ac3ff08"
+                                                       ]
+                                               },
+                                               "description": "Store a template for a given CBA's action, identified by its blueprint name, blueprint version, artifact name and resolution key."
+                                       },
+                                       "response": []
+                               },
+                               {
+                                       "name": "Store a resolved template w/ resourceId and resourceType",
+                                       "request": {
+                                               "auth": {
+                                                       "type": "basic",
+                                                       "basic": [
+                                                               {
+                                                                       "key": "username",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "password",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "showPassword",
+                                                                       "value": false,
+                                                                       "type": "boolean"
+                                                               }
+                                                       ]
+                                               },
+                                               "method": "POST",
+                                               "header": [],
+                                               "body": {
+                                                       "mode": "raw",
+                                                       "raw": "PAYLOAD DATA",
+                                                       "options": {
+                                                               "raw": {
+                                                                       "language": "text"
+                                                               }
+                                                       }
+                                               },
+                                               "url": {
+                                                       "raw": "http://{{host}}:{{port}}/api/v1/template/baseconfiguration/1.0.0/activate/test/1",
+                                                       "protocol": "http",
+                                                       "host": [
+                                                               "{{host}}"
+                                                       ],
+                                                       "port": "{{port}}",
+                                                       "path": [
+                                                               "api",
+                                                               "v1",
+                                                               "template",
+                                                               "baseconfiguration",
+                                                               "1.0.0",
+                                                               "activate",
+                                                               "test",
+                                                               "1"
+                                                       ]
+                                               },
+                                               "description": "Store a template for a given CBA's action, identified by its blueprint name, blueprint version, artifact name, resourceId and resourceType."
+                                       },
+                                       "response": []
+                               }
+                       ],
+                       "description": "Interaction with resolved templates",
+                       "protocolProfileBehavior": {}
+               },
+               {
+                       "name": "Resources",
+                       "item": [
+                               {
+                                       "name": "Get all resolved resources using the resolution key",
+                                       "request": {
+                                               "auth": {
+                                                       "type": "basic",
+                                                       "basic": [
+                                                               {
+                                                                       "key": "username",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "password",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "showPassword",
+                                                                       "value": false,
+                                                                       "type": "boolean"
+                                                               }
+                                                       ]
+                                               },
+                                               "method": "GET",
+                                               "header": [],
+                                               "url": {
+                                                       "raw": "http://{{host}}:{{port}}/api/v1/resources?bpVersion=1.0.0&artifactName=activate&bpName=baseconfiguration&resolutionKey=7cafa9f3-bbc8-49ec-8f25-fcaa6ac3ff08",
+                                                       "protocol": "http",
+                                                       "host": [
+                                                               "{{host}}"
+                                                       ],
+                                                       "port": "{{port}}",
+                                                       "path": [
+                                                               "api",
+                                                               "v1",
+                                                               "resources"
+                                                       ],
+                                                       "query": [
+                                                               {
+                                                                       "key": "bpVersion",
+                                                                       "value": "1.0.0"
+                                                               },
+                                                               {
+                                                                       "key": "artifactName",
+                                                                       "value": "activate"
+                                                               },
+                                                               {
+                                                                       "key": "bpName",
+                                                                       "value": "baseconfiguration"
+                                                               },
+                                                               {
+                                                                       "key": "resolutionKey",
+                                                                       "value": "7cafa9f3-bbc8-49ec-8f25-fcaa6ac3ff08"
+                                                               }
+                                                       ]
+                                               },
+                                               "description": "Retrieve all config snapshots matching a specified Resource Type, ordered by most recently created/modified date."
+                                       },
+                                       "response": []
+                               },
+                               {
+                                       "name": "Delete resources using resolution key",
+                                       "request": {
+                                               "auth": {
+                                                       "type": "basic",
+                                                       "basic": [
+                                                               {
+                                                                       "key": "username",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "password",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "showPassword",
+                                                                       "value": false,
+                                                                       "type": "boolean"
+                                                               }
+                                                       ]
+                                               },
+                                               "method": "DELETE",
+                                               "header": [],
+                                               "url": {
+                                                       "raw": "http://{{host}}:{{port}}/api/v1/resources?bpVersion=1.0.0&artifactName=activate&bpName=baseconfiguration&resolutionKey=7cafa9f3-bbc8-49ec-8f25-fcaa6ac3ff08",
+                                                       "protocol": "http",
+                                                       "host": [
+                                                               "{{host}}"
+                                                       ],
+                                                       "port": "{{port}}",
+                                                       "path": [
+                                                               "api",
+                                                               "v1",
+                                                               "resources"
+                                                       ],
+                                                       "query": [
+                                                               {
+                                                                       "key": "bpVersion",
+                                                                       "value": "1.0.0"
+                                                               },
+                                                               {
+                                                                       "key": "artifactName",
+                                                                       "value": "activate"
+                                                               },
+                                                               {
+                                                                       "key": "bpName",
+                                                                       "value": "baseconfiguration"
+                                                               },
+                                                               {
+                                                                       "key": "resolutionKey",
+                                                                       "value": "7cafa9f3-bbc8-49ec-8f25-fcaa6ac3ff08"
+                                                               }
+                                                       ]
+                                               },
+                                               "description": "Delete all the resources associated to a resolution-key using blueprint metadata, artifact name and the resolution-key."
+                                       },
+                                       "response": []
+                               },
+                               {
+                                       "name": "Fetch a resource value using resolution key",
+                                       "request": {
+                                               "auth": {
+                                                       "type": "basic",
+                                                       "basic": [
+                                                               {
+                                                                       "key": "username",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "password",
+                                                                       "value": "ccsdkapps",
+                                                                       "type": "string"
+                                                               },
+                                                               {
+                                                                       "key": "showPassword",
+                                                                       "value": false,
+                                                                       "type": "boolean"
+                                                               }
+                                                       ]
+                                               },
+                                               "method": "GET",
+                                               "header": [],
+                                               "url": {
+                                                       "raw": "http://{{host}}:{{port}}/api/v1/resources/api/v1/resources/resource?bpVersion=1.0.0&artifactName=activate&bpName=baseconfiguration&resolutionKey=7cafa9f3-bbc8-49ec-8f25-fcaa6ac3ff08&name=test",
+                                                       "protocol": "http",
+                                                       "host": [
+                                                               "{{host}}"
+                                                       ],
+                                                       "port": "{{port}}",
+                                                       "path": [
+                                                               "api",
+                                                               "v1",
+                                                               "resources",
+                                                               "api",
+                                                               "v1",
+                                                               "resources",
+                                                               "resource"
+                                                       ],
+                                                       "query": [
+                                                               {
+                                                                       "key": "bpVersion",
+                                                                       "value": "1.0.0"
+                                                               },
+                                                               {
+                                                                       "key": "artifactName",
+                                                                       "value": "activate"
+                                                               },
+                                                               {
+                                                                       "key": "bpName",
+                                                                       "value": "baseconfiguration"
+                                                               },
+                                                               {
+                                                                       "key": "resolutionKey",
+                                                                       "value": "7cafa9f3-bbc8-49ec-8f25-fcaa6ac3ff08"
+                                                               },
+                                                               {
+                                                                       "key": "name",
+                                                                       "value": "test"
+                                                               }
+                                                       ]
+                                               },
+                                               "description": "Retrieve a stored resource value using the blueprint metadata, artifact name, resolution-key along with the name of the resource value to retrieve."
+                                       },
+                                       "response": []
+                               }
+                       ],
+                       "description": "Interaction with resolved resources",
+                       "protocolProfileBehavior": {}
+               },
                {
                        "name": "List all endpoints",
                        "request": {
index af3ed94..c7f2426 100644 (file)
-{
-  "swagger" : "2.0",
-  "info" : {
-    "description" : "Shows all resources and endpoints which CDS BP processor currently provides with sample requests/responses, parameter description and other information.",
-    "version" : "v1",
-    "title" : "CDS Blueprint Processor API Reference",
-    "termsOfService" : "https://www.onap.org/",
-    "contact" : {
-      "name" : "ONAP Community",
-      "url" : "https://www.onap.org/",
-      "email" : "onap-discuss@lists.onap.org"
-    },
-    "license" : {
-      "name" : "Apache 2.0",
-      "url" : "http://www.apache.org/licenses/LICENSE-2.0.html"
-    }
-  },
-  "host" : "localhost:8080",
-  "tags" : [ {
-    "name" : "Blueprint Model Catalog API",
-    "description" : "Manages all blueprint models which are available in CDS"
-  } ],
-  "schemes" : [ "http" ],
-  "paths" : {
-    "/api/v1/blueprint-model" : {
-      "get" : {
-        "tags" : [ "Blueprint Model Catalog API" ],
-        "summary" : "List all Blueprint Models",
-        "description" : "Lists all meta-data of blueprint models which are saved in CDS.",
-        "operationId" : "BlueprintModelController_allBlueprintModel_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",
-        "produces" : [ "application/json" ],
-        "responses" : {
-          "200" : {
-            "description" : "OK",
-            "schema" : {
-              "type" : "array",
-              "items" : {
-                "$ref" : "#/definitions/BlueprintModelSearch"
-              }
-            }
-          },
-          "500" : {
-            "description" : "Internal Server Error"
-          }
-        }
-      },
-      "post" : {
-        "tags" : [ "Blueprint Model Catalog API" ],
-        "summary" : "Save a Blueprint Model",
-        "description" : "Saves a blueprint model by the given CBA zip file input. There is no validation of the attached CBA happening when this API is called.",
-        "operationId" : "BlueprintModelController_saveBlueprint_POST.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",
-        "consumes" : [ "multipart/form-data" ],
-        "produces" : [ "application/json" ],
-        "parameters" : [ {
-          "in" : "body",
-          "name" : "file",
-          "description" : "CBA file to be uploaded (example: cba.zip)",
-          "required" : true,
-          "schema" : {
-            "$ref" : "#/definitions/FilePart"
-          }
-        } ],
-        "responses" : {
-          "200" : {
-            "description" : "OK",
-            "schema" : {
-              "$ref" : "#/definitions/BlueprintModelSearch"
-            }
-          },
-          "500" : {
-            "description" : "Internal Server Error"
-          }
-        }
-      }
-    },
-    "/api/v1/blueprint-model/bootstrap" : {
-      "post" : {
-        "tags" : [ "Blueprint Model Catalog API" ],
-        "summary" : "Bootstrap CDS",
-        "description" : "Loads all Model Types, Resource Dictionaries and Blueprint Models which are included in CDS by default. Before starting to work with CDS, bootstrap should be called to load all the basic models that each orginization might support. Parameter values can be set as `false`  to skip loading e.g. the Resource Dictionaries but this is not recommended.",
-        "operationId" : "BlueprintModelController_bootstrap_POST.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",
-        "consumes" : [ "application/json" ],
-        "produces" : [ "application/json" ],
-        "parameters" : [ {
-          "in" : "body",
-          "name" : "body",
-          "description" : "Specifies which elements to load",
-          "required" : true,
-          "schema" : {
-            "$ref" : "#/definitions/BootstrapRequest"
-          }
-        } ],
-        "responses" : {
-          "200" : {
-            "description" : "OK",
-            "schema" : {
-              "type" : "object"
-            }
-          },
-          "500" : {
-            "description" : "Internal Server Error"
-          }
-        }
-      }
-    },
-    "/api/v1/blueprint-model/by-name/{name}/version/{version}" : {
-      "get" : {
-        "tags" : [ "Blueprint Model Catalog API" ],
-        "summary" : "Get a Blueprint Model by Name and Version",
-        "description" : "Get Meta-Data of a Blueprint Model by its name and version.",
-        "operationId" : "BlueprintModelController_getBlueprintByNameAndVersion_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",
-        "produces" : [ "application/json" ],
-        "parameters" : [ {
-          "name" : "name",
-          "in" : "path",
-          "description" : "Name of the blueprint model",
-          "required" : true,
-          "type" : "string",
-          "x-example" : "pnf_netconf"
-        }, {
-          "name" : "version",
-          "in" : "path",
-          "description" : "Version of the blueprint model",
-          "required" : true,
-          "type" : "string",
-          "x-example" : "1.0.0"
-        } ],
-        "responses" : {
-          "200" : {
-            "description" : "OK",
-            "schema" : {
-              "$ref" : "#/definitions/BlueprintModelSearch"
-            }
-          },
-          "404" : {
-            "description" : "Not Found"
-          }
-        }
-      }
-    },
-    "/api/v1/blueprint-model/download/by-name/{name}/version/{version}" : {
-      "get" : {
-        "tags" : [ "Blueprint Model Catalog API" ],
-        "summary" : "Download a Blueprint Model",
-        "description" : "Gets the CBA of a blueprint model by its name and version. Response can be saved to a file to download the CBA.",
-        "operationId" : "BlueprintModelController_downloadBlueprintByNameAndVersion_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",
-        "produces" : [ "application/json" ],
-        "parameters" : [ {
-          "name" : "name",
-          "in" : "path",
-          "description" : "Name of the blueprint model",
-          "required" : true,
-          "type" : "string",
-          "x-example" : "pnf_netconf"
-        }, {
-          "name" : "version",
-          "in" : "path",
-          "description" : "Version of the blueprint model",
-          "required" : true,
-          "type" : "string",
-          "x-example" : "1.0.0"
-        } ],
-        "responses" : {
-          "200" : {
-            "description" : "OK",
-            "schema" : {
-              "type" : "object"
-            }
-          },
-          "404" : {
-            "description" : "Not Found"
-          }
-        }
-      }
-    },
-    "/api/v1/blueprint-model/download/{id}" : {
-      "get" : {
-        "tags" : [ "Blueprint Model Catalog API" ],
-        "summary" : "Download a Blueprint Model by ID",
-        "description" : "Gets the CBA of a blueprint model by its ID. Response can be saved to a file to download the CBA.",
-        "operationId" : "BlueprintModelController_downloadBluePrint_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",
-        "produces" : [ "application/json" ],
-        "parameters" : [ {
-          "name" : "id",
-          "in" : "path",
-          "description" : "ID of the blueprint model to download",
-          "required" : true,
-          "type" : "string",
-          "x-example" : "67ec1f96-ab55-4b81-aff9-23ee0ed1d7a4"
-        } ],
-        "responses" : {
-          "200" : {
-            "description" : "OK",
-            "schema" : {
-              "type" : "object"
-            }
-          },
-          "404" : {
-            "description" : "Not Found"
-          }
-        }
-      }
-    },
-    "/api/v1/blueprint-model/enrich" : {
-      "post" : {
-        "tags" : [ "Blueprint Model Catalog API" ],
-        "summary" : "Enrich a Blueprint Model",
-        "description" : "Enriches the attached CBA and returns the enriched CBA zip file in the response. The enrichment process will complete the package by providing all the definition of types used.",
-        "operationId" : "BlueprintModelController_enrichBlueprint_POST.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",
-        "consumes" : [ "multipart/form-data" ],
-        "produces" : [ "application/json" ],
-        "parameters" : [ {
-          "in" : "body",
-          "name" : "file",
-          "description" : "CBA zip file to be uploaded (example: cba_unenriched.zip)",
-          "required" : true,
-          "schema" : {
-            "$ref" : "#/definitions/FilePart"
-          }
-        } ],
-        "responses" : {
-          "200" : {
-            "description" : "successful operation",
-            "schema" : {
-              "type" : "object"
-            }
-          }
-        }
-      }
-    },
-    "/api/v1/blueprint-model/enrichandpublish" : {
-      "post" : {
-        "tags" : [ "Blueprint Model Catalog API" ],
-        "summary" : "Enrich and publish a Blueprint Model",
-        "description" : "Enriches the attached CBA, validates it and saves it in CDS if validation was successful.",
-        "operationId" : "BlueprintModelController_enrichAndPubishlueprint_POST.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",
-        "consumes" : [ "multipart/form-data" ],
-        "produces" : [ "application/json" ],
-        "parameters" : [ {
-          "in" : "body",
-          "name" : "file",
-          "description" : "Unenriched CBA zip file to be uploaded (example: cba_unenriched.zip)",
-          "required" : true,
-          "schema" : {
-            "$ref" : "#/definitions/FilePart"
-          }
-        } ],
-        "responses" : {
-          "200" : {
-            "description" : "OK",
-            "schema" : {
-              "$ref" : "#/definitions/BlueprintModelSearch"
-            }
-          },
-          "503" : {
-            "description" : "Service Unavailable"
-          }
-        }
-      }
-    },
-    "/api/v1/blueprint-model/meta-data/{keyword}" : {
-      "get" : {
-        "tags" : [ "Blueprint Model Catalog API" ],
-        "summary" : "Search for Blueprints by a Keyword",
-        "description" : "Lists all blueprint models by a matching keyword in any of the meta-data of the blueprint models. Blueprint models are just returned if a whole keyword is matching, not just parts of it. Not case-sensitive. Used by CDS UI.",
-        "operationId" : "BlueprintModelController_allBlueprintModelMetaData_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",
-        "produces" : [ "application/json" ],
-        "parameters" : [ {
-          "name" : "keyword",
-          "in" : "path",
-          "description" : "Keyword to search for in blueprint model meta-data",
-          "required" : true,
-          "type" : "string",
-          "x-example" : "pnf_netconf"
-        } ],
-        "responses" : {
-          "200" : {
-            "description" : "successful operation",
-            "schema" : {
-              "type" : "array",
-              "items" : {
-                "$ref" : "#/definitions/BlueprintModelSearch"
-              }
-            }
-          }
-        }
-      }
-    },
-    "/api/v1/blueprint-model/name/{name}/version/{version}" : {
-      "delete" : {
-        "tags" : [ "Blueprint Model Catalog API" ],
-        "summary" : "Delete a Blueprint Model by Name",
-        "description" : "Deletes a blueprint model identified by its name and version from CDS.",
-        "operationId" : "BlueprintModelController_deleteBlueprintByName_DELETE.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",
-        "parameters" : [ {
-          "name" : "name",
-          "in" : "path",
-          "description" : "Name of the blueprint model",
-          "required" : true,
-          "type" : "string",
-          "x-example" : "pnf_netconf"
-        }, {
-          "name" : "version",
-          "in" : "path",
-          "description" : "Version of the blueprint model",
-          "required" : true,
-          "type" : "string",
-          "x-example" : "1.0.0"
-        } ],
-        "responses" : {
-          "200" : {
-            "description" : "successful operation",
-            "schema" : {
-              "type" : "object"
-            }
-          }
-        }
-      }
-    },
-    "/api/v1/blueprint-model/paged" : {
-      "get" : {
-        "tags" : [ "Blueprint Model Catalog API" ],
-        "summary" : "Get Blueprints ordered",
-        "description" : "Lists all blueprint models which are saved in CDS in an ordered mode.",
-        "operationId" : "BlueprintModelController_allBlueprintModelPaged_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",
-        "produces" : [ "application/json" ],
-        "parameters" : [ {
-          "name" : "limit",
-          "in" : "query",
-          "description" : "Maximum number of returned blueprint models",
-          "required" : false,
-          "type" : "integer",
-          "default" : 20,
-          "format" : "int32"
-        }, {
-          "name" : "offset",
-          "in" : "query",
-          "description" : "Offset",
-          "required" : false,
-          "type" : "integer",
-          "default" : 0,
-          "format" : "int32"
-        }, {
-          "name" : "sort",
-          "in" : "query",
-          "description" : "Order of returned blueprint models",
-          "required" : false,
-          "type" : "string",
-          "default" : "DATE",
-          "enum" : [ "DATE", "NAME", "VERSION" ]
-        }, {
-          "name" : "sortType",
-          "in" : "query",
-          "description" : "Ascend or descend ordering",
-          "required" : false,
-          "type" : "string",
-          "default" : "ASC"
-        } ],
-        "responses" : {
-          "200" : {
-            "description" : "successful operation",
-            "schema" : {
-              "$ref" : "#/definitions/PageBlueprintModelSearch"
-            }
-          }
-        }
-      }
-    },
-    "/api/v1/blueprint-model/paged/meta-data/{keyword}" : {
-      "get" : {
-        "tags" : [ "Blueprint Model Catalog API" ],
-        "summary" : "Search for Blueprints by a Keyword in an ordered mode",
-        "description" : "Lists all blueprint models by a matching keyword in any of the meta-data of the blueprint models in an ordered mode. Blueprint models are just returned if a whole keyword is matching, not just parts of it. Not case-sensitive. Used by CDS UI.",
-        "operationId" : "BlueprintModelController_allBlueprintModelMetaDataPaged_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",
-        "produces" : [ "application/json" ],
-        "parameters" : [ {
-          "name" : "keyword",
-          "in" : "path",
-          "description" : "Keyword to search for in blueprint model meta-data",
-          "required" : true,
-          "type" : "string",
-          "x-example" : "pnf_netconf"
-        }, {
-          "name" : "limit",
-          "in" : "query",
-          "description" : "Maximum number of returned blueprint models",
-          "required" : false,
-          "type" : "integer",
-          "default" : 20,
-          "format" : "int32"
-        }, {
-          "name" : "offset",
-          "in" : "query",
-          "description" : "Offset",
-          "required" : false,
-          "type" : "integer",
-          "default" : 0,
-          "format" : "int32"
-        }, {
-          "name" : "sort",
-          "in" : "query",
-          "description" : "Order of returned blueprint models",
-          "required" : false,
-          "type" : "string",
-          "default" : "DATE",
-          "enum" : [ "DATE", "NAME", "VERSION" ]
-        }, {
-          "name" : "sortType",
-          "in" : "query",
-          "description" : "Ascend or descend ordering",
-          "required" : false,
-          "type" : "string",
-          "default" : "ASC"
-        } ],
-        "responses" : {
-          "200" : {
-            "description" : "successful operation",
-            "schema" : {
-              "$ref" : "#/definitions/PageBlueprintModelSearch"
-            }
-          }
-        }
-      }
-    },
-    "/api/v1/blueprint-model/publish" : {
-      "post" : {
-        "tags" : [ "Blueprint Model Catalog API" ],
-        "summary" : "Publish a Blueprint Model",
-        "description" : "Validates the attached CBA file and saves it in CDS if validation was successful. CBA needs to be already enriched.",
-        "operationId" : "BlueprintModelController_publishBlueprint_POST.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",
-        "consumes" : [ "multipart/form-data" ],
-        "produces" : [ "application/json" ],
-        "parameters" : [ {
-          "in" : "body",
-          "name" : "file",
-          "description" : "Enriched CBA zip file to be uploaded (example: cba_enriched.zip)",
-          "required" : true,
-          "schema" : {
-            "$ref" : "#/definitions/FilePart"
-          }
-        } ],
-        "responses" : {
-          "200" : {
-            "description" : "successful operation",
-            "schema" : {
-              "$ref" : "#/definitions/BlueprintModelSearch"
-            }
-          }
-        }
-      }
-    },
-    "/api/v1/blueprint-model/search/{tags}" : {
-      "get" : {
-        "tags" : [ "Blueprint Model Catalog API" ],
-        "summary" : "Search for a Blueprint by Tag",
-        "description" : "Searches for all blueprint models which contain the specified input parameter in their tags. Blueprint models which contain just parts of the searched word in their tags are also returned.",
-        "operationId" : "BlueprintModelController_searchBlueprintModels_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",
-        "produces" : [ "application/json" ],
-        "parameters" : [ {
-          "name" : "tags",
-          "in" : "path",
-          "description" : "Tag to search for",
-          "required" : true,
-          "type" : "string",
-          "x-example" : "test"
-        } ],
-        "responses" : {
-          "200" : {
-            "description" : "successful operation",
-            "schema" : {
-              "type" : "array",
-              "items" : {
-                "$ref" : "#/definitions/BlueprintModelSearch"
-              }
-            }
-          }
-        }
-      }
-    },
-    "/api/v1/blueprint-model/workflow-spec" : {
-      "post" : {
-        "tags" : [ "Blueprint Model Catalog API" ],
-        "summary" : "Get Workflow Specification",
-        "description" : "Get the workflow of a blueprint identified by Blueprint and workflow name. Inputs, outputs and data types of workflow is returned.",
-        "operationId" : "BlueprintModelController_workflowSpec_POST.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",
-        "consumes" : [ "application/json" ],
-        "produces" : [ "application/json" ],
-        "parameters" : [ {
-          "in" : "body",
-          "name" : "body",
-          "description" : "Blueprint and workflow identification",
-          "required" : true,
-          "schema" : {
-            "$ref" : "#/definitions/WorkFlowSpecRequest"
-          }
-        } ],
-        "responses" : {
-          "200" : {
-            "description" : "successful operation",
-            "schema" : {
-              "type" : "object"
-            }
-          }
-        }
-      }
-    },
-    "/api/v1/blueprint-model/workflows/blueprint-name/{name}/version/{version}" : {
-      "get" : {
-        "tags" : [ "Blueprint Model Catalog API" ],
-        "summary" : "Get Workflows of a Blueprint",
-        "description" : "Get all available workflows of a Blueprint identified by its name and version.",
-        "operationId" : "BlueprintModelController_getWorkflowList_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",
-        "produces" : [ "application/json" ],
-        "parameters" : [ {
-          "name" : "name",
-          "in" : "path",
-          "description" : "Name of the blueprint model",
-          "required" : true,
-          "type" : "string",
-          "x-example" : "pnf_netconf"
-        }, {
-          "name" : "version",
-          "in" : "path",
-          "description" : "Version of the blueprint model",
-          "required" : true,
-          "type" : "string",
-          "x-example" : "1.0.0"
-        } ],
-        "responses" : {
-          "200" : {
-            "description" : "successful operation",
-            "schema" : {
-              "type" : "object"
-            }
-          }
-        }
-      }
-    },
-    "/api/v1/blueprint-model/{id}" : {
-      "get" : {
-        "tags" : [ "Blueprint Model Catalog API" ],
-        "summary" : "Get a Blueprint Model by ID",
-        "description" : "Get meta-data of a blueprint model by its internally created ID.",
-        "operationId" : "BlueprintModelController_getBlueprintModel_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",
-        "produces" : [ "application/json" ],
-        "parameters" : [ {
-          "name" : "id",
-          "in" : "path",
-          "description" : "ID of the blueprint model to search for",
-          "required" : true,
-          "type" : "string",
-          "x-example" : "67ec1f96-ab55-4b81-aff9-23ee0ed1d7a4"
-        } ],
-        "responses" : {
-          "200" : {
-            "description" : "OK",
-            "schema" : {
-              "$ref" : "#/definitions/BlueprintModelSearch"
-            }
-          },
-          "404" : {
-            "description" : "Not Found"
-          }
-        }
-      },
-      "delete" : {
-        "tags" : [ "Blueprint Model Catalog API" ],
-        "summary" : "Delete a Blueprint Model by ID",
-        "description" : "Delete a blueprint model by its ID. ID is the internally created ID of blueprint, not the name of blueprint.",
-        "operationId" : "BlueprintModelController_deleteBlueprint_DELETE.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",
-        "parameters" : [ {
-          "name" : "id",
-          "in" : "path",
-          "description" : "ID of the blueprint model to delete",
-          "required" : true,
-          "type" : "string",
-          "x-example" : "67ec1f96-ab55-4b81-aff9-23ee0ed1d7a4"
-        } ],
-        "responses" : {
-          "200" : {
-            "description" : "OK",
-            "schema" : {
-              "type" : "object"
-            }
-          },
-          "404" : {
-            "description" : "RESOURCE_NOT_FOUND"
-          }
-        }
-      }
-    }
-  },
-  "securityDefinitions" : {
-    "Basic Auth" : {
-      "type" : "basic"
-    }
-  },
-  "definitions" : {
-    "BlueprintModelSearch" : {
-      "type" : "object",
-      "required" : [ "artifactName", "artifactVersion", "createdDate", "id", "published", "tags", "updatedBy" ],
-      "properties" : {
-        "id" : {
-          "type" : "string",
-          "example" : "658f9a48-7f54-41ba-ae18-c69f26f3dc94",
-          "description" : "ID of Blueprint model, is automatically created by CDS"
-        },
-        "artifactUUId" : {
-          "type" : "string",
-          "example" : null,
-          "description" : "Artifact UUID, usually null"
-        },
-        "artifactType" : {
-          "type" : "string",
-          "example" : "SDNC_MODEL",
-          "description" : "Artifact Type, usually null"
-        },
-        "artifactVersion" : {
-          "type" : "string",
-          "example" : "1.0.0",
-          "description" : "Artifact Version, usually 1.0.0"
-        },
-        "artifactDescription" : {
-          "type" : "string",
-          "example" : "",
-          "description" : "Artifact Description, usually empty"
-        },
-        "internalVersion" : {
-          "type" : "integer",
-          "format" : "int32",
-          "example" : null,
-          "description" : "Internal Version of CBA, usually null"
-        },
-        "createdDate" : {
-          "type" : "string",
-          "format" : "date-time",
-          "example" : "2020-11-19T10:34:56.000Z",
-          "description" : "Datetime of the creation of CBA in CDS"
-        },
-        "artifactName" : {
-          "type" : "string",
-          "example" : "pnf_netconf",
-          "description" : "Artifact Name, defined in Metadata"
-        },
-        "published" : {
-          "type" : "string",
-          "example" : "pnf_netconf",
-          "description" : "Artifact Name, defined in Metadata"
-        },
-        "updatedBy" : {
-          "type" : "string",
-          "example" : "Deutsche Telekom AG",
-          "description" : "Name of publisher, defined in Metadata"
-        },
-        "tags" : {
-          "type" : "string",
-          "example" : "test",
-          "description" : "Tags to identify the CBA, defined in Metadata"
-        }
-      }
-    },
-    "BootstrapRequest" : {
-      "type" : "object",
-      "required" : [ "loadCBA", "loadModelType", "loadResourceDictionary" ],
-      "properties" : {
-        "loadModelType" : {
-          "type" : "boolean",
-          "example" : true,
-          "description" : "Specifies if default model types should be loaded"
-        },
-        "loadResourceDictionary" : {
-          "type" : "boolean",
-          "example" : true,
-          "description" : "Specifies if default data dictionaries should be loaded"
-        },
-        "loadCBA" : {
-          "type" : "boolean",
-          "example" : true,
-          "description" : "Specifies if default blueprint models should be loaded"
-        }
-      }
-    },
-    "FilePart" : {
-      "type" : "object"
-    },
-    "Page" : {
-      "type" : "object",
-      "properties" : {
-        "totalPages" : {
-          "type" : "integer",
-          "format" : "int32"
-        },
-        "totalElements" : {
-          "type" : "integer",
-          "format" : "int64"
-        },
-        "size" : {
-          "type" : "integer",
-          "format" : "int32"
-        },
-        "content" : {
-          "type" : "array",
-          "items" : {
-            "type" : "object"
-          }
-        },
-        "number" : {
-          "type" : "integer",
-          "format" : "int32"
-        },
-        "sort" : {
-          "$ref" : "#/definitions/Sort"
-        },
-        "last" : {
-          "type" : "boolean"
-        },
-        "numberOfElements" : {
-          "type" : "integer",
-          "format" : "int32"
-        },
-        "pageable" : {
-          "$ref" : "#/definitions/Pageable"
-        },
-        "first" : {
-          "type" : "boolean"
-        },
-        "empty" : {
-          "type" : "boolean"
-        }
-      }
-    },
-    "PageBlueprintModelSearch" : {
-      "type" : "object",
-      "properties" : {
-        "totalPages" : {
-          "type" : "integer",
-          "format" : "int32"
-        },
-        "totalElements" : {
-          "type" : "integer",
-          "format" : "int64"
-        },
-        "size" : {
-          "type" : "integer",
-          "format" : "int32"
-        },
-        "content" : {
-          "type" : "array",
-          "items" : {
-            "$ref" : "#/definitions/BlueprintModelSearch"
-          }
-        },
-        "number" : {
-          "type" : "integer",
-          "format" : "int32"
-        },
-        "sort" : {
-          "$ref" : "#/definitions/Sort"
-        },
-        "last" : {
-          "type" : "boolean"
-        },
-        "numberOfElements" : {
-          "type" : "integer",
-          "format" : "int32"
-        },
-        "pageable" : {
-          "$ref" : "#/definitions/Pageable"
-        },
-        "first" : {
-          "type" : "boolean"
-        },
-        "empty" : {
-          "type" : "boolean"
-        }
-      }
-    },
-    "Pageable" : {
-      "type" : "object",
-      "properties" : {
-        "offset" : {
-          "type" : "integer",
-          "format" : "int64"
-        },
-        "sort" : {
-          "$ref" : "#/definitions/Sort"
-        },
-        "paged" : {
-          "type" : "boolean"
-        },
-        "unpaged" : {
-          "type" : "boolean"
-        },
-        "pageNumber" : {
-          "type" : "integer",
-          "format" : "int32"
-        },
-        "pageSize" : {
-          "type" : "integer",
-          "format" : "int32"
-        }
-      }
-    },
-    "Sort" : {
-      "type" : "object",
-      "properties" : {
-        "unsorted" : {
-          "type" : "boolean"
-        },
-        "sorted" : {
-          "type" : "boolean"
-        },
-        "empty" : {
-          "type" : "boolean"
-        }
-      }
-    },
-    "WorkFlowSpecRequest" : {
-      "type" : "object",
-      "required" : [ "blueprintName", "workflowName" ],
-      "properties" : {
-        "blueprintName" : {
-          "type" : "string",
-          "example" : "pnf_netconf",
-          "description" : "Name of the BLueprint"
-        },
-        "version" : {
-          "type" : "string"
-        },
-        "returnContent" : {
-          "type" : "string"
-        },
-        "workflowName" : {
-          "type" : "string",
-          "example" : "config-assign",
-          "description" : "Name of the Workflow"
-        },
-        "specType" : {
-          "type" : "string"
-        }
-      }
-    }
-  }
+{\r
+  "swagger" : "2.0",\r
+  "info" : {\r
+    "description" : "Shows all resources and endpoints which CDS BP processor currently provides with sample requests/responses, parameter description and other information.",\r
+    "version" : "v1",\r
+    "title" : "CDS Blueprint Processor API Reference",\r
+    "termsOfService" : "https://www.onap.org/",\r
+    "contact" : {\r
+      "name" : "ONAP Community",\r
+      "url" : "https://www.onap.org/",\r
+      "email" : "onap-discuss@lists.onap.org"\r
+    },\r
+    "license" : {\r
+      "name" : "Apache 2.0",\r
+      "url" : "http://www.apache.org/licenses/LICENSE-2.0.html"\r
+    }\r
+  },\r
+  "host" : "localhost:8080",\r
+  "tags" : [ {\r
+    "name" : "Blueprint Model Catalog",\r
+    "description" : "Manages all blueprint models which are available in CDS"\r
+  }, {\r
+    "name" : "Resource configuration",\r
+    "description" : "Interaction with stored configurations"\r
+  }, {\r
+    "name" : "Resource dictionary",\r
+    "description" : "Interaction with stored dictionaries"\r
+  }, {\r
+    "name" : "Resource template",\r
+    "description" : "Interaction with resolved templates"\r
+  }, {\r
+    "name" : "Resources",\r
+    "description" : "Interaction with resolved resources"\r
+  } ],\r
+  "schemes" : [ "http" ],\r
+  "paths" : {\r
+    "/api/v1/blueprint-model" : {\r
+      "get" : {\r
+        "tags" : [ "Blueprint Model Catalog" ],\r
+        "summary" : "List all Blueprint Models",\r
+        "description" : "Lists all meta-data of blueprint models which are saved in CDS.",\r
+        "operationId" : "BlueprintModelController_allBlueprintModel_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",\r
+        "produces" : [ "application/json" ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "OK",\r
+            "schema" : {\r
+              "type" : "array",\r
+              "items" : {\r
+                "$ref" : "#/definitions/BlueprintModelSearch"\r
+              }\r
+            }\r
+          },\r
+          "500" : {\r
+            "description" : "Internal Server Error"\r
+          }\r
+        }\r
+      },\r
+      "post" : {\r
+        "tags" : [ "Blueprint Model Catalog" ],\r
+        "summary" : "Save a Blueprint Model",\r
+        "description" : "Saves a blueprint model by the given CBA zip file input. There is no validation of the attached CBA happening when this API is called.",\r
+        "operationId" : "BlueprintModelController_saveBlueprint_POST.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",\r
+        "consumes" : [ "multipart/form-data" ],\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "in" : "body",\r
+          "name" : "file",\r
+          "description" : "CBA file to be uploaded (example: cba.zip)",\r
+          "required" : true,\r
+          "schema" : {\r
+            "$ref" : "#/definitions/FilePart"\r
+          }\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "OK",\r
+            "schema" : {\r
+              "$ref" : "#/definitions/BlueprintModelSearch"\r
+            }\r
+          },\r
+          "500" : {\r
+            "description" : "Internal Server Error"\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/blueprint-model/bootstrap" : {\r
+      "post" : {\r
+        "tags" : [ "Blueprint Model Catalog" ],\r
+        "summary" : "Bootstrap CDS",\r
+        "description" : "Loads all Model Types, Resource Dictionaries and Blueprint Models which are included in CDS by default. Before starting to work with CDS, bootstrap should be called to load all the basic models that each orginization might support. Parameter values can be set as `false`  to skip loading e.g. the Resource Dictionaries but this is not recommended.",\r
+        "operationId" : "BlueprintModelController_bootstrap_POST.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",\r
+        "consumes" : [ "application/json" ],\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "in" : "body",\r
+          "name" : "body",\r
+          "description" : "Specifies which elements to load",\r
+          "required" : true,\r
+          "schema" : {\r
+            "$ref" : "#/definitions/BootstrapRequest"\r
+          }\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "OK",\r
+            "schema" : {\r
+              "type" : "object"\r
+            }\r
+          },\r
+          "500" : {\r
+            "description" : "Internal Server Error"\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/blueprint-model/by-name/{name}/version/{version}" : {\r
+      "get" : {\r
+        "tags" : [ "Blueprint Model Catalog" ],\r
+        "summary" : "Get a Blueprint Model by Name and Version",\r
+        "description" : "Get Meta-Data of a Blueprint Model by its name and version.",\r
+        "operationId" : "BlueprintModelController_getBlueprintByNameAndVersion_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "name" : "name",\r
+          "in" : "path",\r
+          "description" : "Name of the blueprint model",\r
+          "required" : true,\r
+          "type" : "string",\r
+          "x-example" : "pnf_netconf"\r
+        }, {\r
+          "name" : "version",\r
+          "in" : "path",\r
+          "description" : "Version of the blueprint model",\r
+          "required" : true,\r
+          "type" : "string",\r
+          "x-example" : "1.0.0"\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "OK",\r
+            "schema" : {\r
+              "$ref" : "#/definitions/BlueprintModelSearch"\r
+            }\r
+          },\r
+          "404" : {\r
+            "description" : "Not Found"\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/blueprint-model/download/by-name/{name}/version/{version}" : {\r
+      "get" : {\r
+        "tags" : [ "Blueprint Model Catalog" ],\r
+        "summary" : "Download a Blueprint Model",\r
+        "description" : "Gets the CBA of a blueprint model by its name and version. Response can be saved to a file to download the CBA.",\r
+        "operationId" : "BlueprintModelController_downloadBlueprintByNameAndVersion_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "name" : "name",\r
+          "in" : "path",\r
+          "description" : "Name of the blueprint model",\r
+          "required" : true,\r
+          "type" : "string",\r
+          "x-example" : "pnf_netconf"\r
+        }, {\r
+          "name" : "version",\r
+          "in" : "path",\r
+          "description" : "Version of the blueprint model",\r
+          "required" : true,\r
+          "type" : "string",\r
+          "x-example" : "1.0.0"\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "OK",\r
+            "schema" : {\r
+              "type" : "object"\r
+            }\r
+          },\r
+          "404" : {\r
+            "description" : "Not Found"\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/blueprint-model/download/{id}" : {\r
+      "get" : {\r
+        "tags" : [ "Blueprint Model Catalog" ],\r
+        "summary" : "Download a Blueprint Model by ID",\r
+        "description" : "Gets the CBA of a blueprint model by its ID. Response can be saved to a file to download the CBA.",\r
+        "operationId" : "BlueprintModelController_downloadBluePrint_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "name" : "id",\r
+          "in" : "path",\r
+          "description" : "ID of the blueprint model to download",\r
+          "required" : true,\r
+          "type" : "string",\r
+          "x-example" : "67ec1f96-ab55-4b81-aff9-23ee0ed1d7a4"\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "OK",\r
+            "schema" : {\r
+              "type" : "object"\r
+            }\r
+          },\r
+          "404" : {\r
+            "description" : "Not Found"\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/blueprint-model/enrich" : {\r
+      "post" : {\r
+        "tags" : [ "Blueprint Model Catalog" ],\r
+        "summary" : "Enrich a Blueprint Model",\r
+        "description" : "Enriches the attached CBA and returns the enriched CBA zip file in the response. The enrichment process will complete the package by providing all the definition of types used.",\r
+        "operationId" : "BlueprintModelController_enrichBlueprint_POST.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",\r
+        "consumes" : [ "multipart/form-data" ],\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "in" : "body",\r
+          "name" : "file",\r
+          "description" : "CBA zip file to be uploaded (example: cba_unenriched.zip)",\r
+          "required" : true,\r
+          "schema" : {\r
+            "$ref" : "#/definitions/FilePart"\r
+          }\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "successful operation",\r
+            "schema" : {\r
+              "type" : "object"\r
+            }\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/blueprint-model/enrichandpublish" : {\r
+      "post" : {\r
+        "tags" : [ "Blueprint Model Catalog" ],\r
+        "summary" : "Enrich and publish a Blueprint Model",\r
+        "description" : "Enriches the attached CBA, validates it and saves it in CDS if validation was successful.",\r
+        "operationId" : "BlueprintModelController_enrichAndPubishlueprint_POST.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",\r
+        "consumes" : [ "multipart/form-data" ],\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "in" : "body",\r
+          "name" : "file",\r
+          "description" : "Unenriched CBA zip file to be uploaded (example: cba_unenriched.zip)",\r
+          "required" : true,\r
+          "schema" : {\r
+            "$ref" : "#/definitions/FilePart"\r
+          }\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "OK",\r
+            "schema" : {\r
+              "$ref" : "#/definitions/BlueprintModelSearch"\r
+            }\r
+          },\r
+          "503" : {\r
+            "description" : "Service Unavailable"\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/blueprint-model/meta-data/{keyword}" : {\r
+      "get" : {\r
+        "tags" : [ "Blueprint Model Catalog" ],\r
+        "summary" : "Search for Blueprints by a Keyword",\r
+        "description" : "Lists all blueprint models by a matching keyword in any of the meta-data of the blueprint models. Blueprint models are just returned if a whole keyword is matching, not just parts of it. Not case-sensitive. Used by CDS UI.",\r
+        "operationId" : "BlueprintModelController_allBlueprintModelMetaData_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "name" : "keyword",\r
+          "in" : "path",\r
+          "description" : "Keyword to search for in blueprint model meta-data",\r
+          "required" : true,\r
+          "type" : "string",\r
+          "x-example" : "pnf_netconf"\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "successful operation",\r
+            "schema" : {\r
+              "type" : "array",\r
+              "items" : {\r
+                "$ref" : "#/definitions/BlueprintModelSearch"\r
+              }\r
+            }\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/blueprint-model/name/{name}/version/{version}" : {\r
+      "delete" : {\r
+        "tags" : [ "Blueprint Model Catalog" ],\r
+        "summary" : "Delete a Blueprint Model by Name",\r
+        "description" : "Deletes a blueprint model identified by its name and version from CDS.",\r
+        "operationId" : "BlueprintModelController_deleteBlueprintByName_DELETE.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",\r
+        "parameters" : [ {\r
+          "name" : "name",\r
+          "in" : "path",\r
+          "description" : "Name of the blueprint model",\r
+          "required" : true,\r
+          "type" : "string",\r
+          "x-example" : "pnf_netconf"\r
+        }, {\r
+          "name" : "version",\r
+          "in" : "path",\r
+          "description" : "Version of the blueprint model",\r
+          "required" : true,\r
+          "type" : "string",\r
+          "x-example" : "1.0.0"\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "successful operation",\r
+            "schema" : {\r
+              "type" : "object"\r
+            }\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/blueprint-model/paged" : {\r
+      "get" : {\r
+        "tags" : [ "Blueprint Model Catalog" ],\r
+        "summary" : "Get Blueprints ordered",\r
+        "description" : "Lists all blueprint models which are saved in CDS in an ordered mode.",\r
+        "operationId" : "BlueprintModelController_allBlueprintModelPaged_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "name" : "limit",\r
+          "in" : "query",\r
+          "description" : "Maximum number of returned blueprint models",\r
+          "required" : false,\r
+          "type" : "integer",\r
+          "default" : 20,\r
+          "format" : "int32"\r
+        }, {\r
+          "name" : "offset",\r
+          "in" : "query",\r
+          "description" : "Offset",\r
+          "required" : false,\r
+          "type" : "integer",\r
+          "default" : 0,\r
+          "format" : "int32"\r
+        }, {\r
+          "name" : "sort",\r
+          "in" : "query",\r
+          "description" : "Order of returned blueprint models",\r
+          "required" : false,\r
+          "type" : "string",\r
+          "default" : "DATE",\r
+          "enum" : [ "DATE", "NAME", "VERSION" ]\r
+        }, {\r
+          "name" : "sortType",\r
+          "in" : "query",\r
+          "description" : "Ascend or descend ordering",\r
+          "required" : false,\r
+          "type" : "string",\r
+          "default" : "ASC"\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "successful operation",\r
+            "schema" : {\r
+              "$ref" : "#/definitions/PageBlueprintModelSearch"\r
+            }\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/blueprint-model/paged/meta-data/{keyword}" : {\r
+      "get" : {\r
+        "tags" : [ "Blueprint Model Catalog" ],\r
+        "summary" : "Search for Blueprints by a Keyword in an ordered mode",\r
+        "description" : "Lists all blueprint models by a matching keyword in any of the meta-data of the blueprint models in an ordered mode. Blueprint models are just returned if a whole keyword is matching, not just parts of it. Not case-sensitive. Used by CDS UI.",\r
+        "operationId" : "BlueprintModelController_allBlueprintModelMetaDataPaged_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "name" : "keyword",\r
+          "in" : "path",\r
+          "description" : "Keyword to search for in blueprint model meta-data",\r
+          "required" : true,\r
+          "type" : "string",\r
+          "x-example" : "pnf_netconf"\r
+        }, {\r
+          "name" : "limit",\r
+          "in" : "query",\r
+          "description" : "Maximum number of returned blueprint models",\r
+          "required" : false,\r
+          "type" : "integer",\r
+          "default" : 20,\r
+          "format" : "int32"\r
+        }, {\r
+          "name" : "offset",\r
+          "in" : "query",\r
+          "description" : "Offset",\r
+          "required" : false,\r
+          "type" : "integer",\r
+          "default" : 0,\r
+          "format" : "int32"\r
+        }, {\r
+          "name" : "sort",\r
+          "in" : "query",\r
+          "description" : "Order of returned blueprint models",\r
+          "required" : false,\r
+          "type" : "string",\r
+          "default" : "DATE",\r
+          "enum" : [ "DATE", "NAME", "VERSION" ]\r
+        }, {\r
+          "name" : "sortType",\r
+          "in" : "query",\r
+          "description" : "Ascend or descend ordering",\r
+          "required" : false,\r
+          "type" : "string",\r
+          "default" : "ASC"\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "successful operation",\r
+            "schema" : {\r
+              "$ref" : "#/definitions/PageBlueprintModelSearch"\r
+            }\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/blueprint-model/publish" : {\r
+      "post" : {\r
+        "tags" : [ "Blueprint Model Catalog" ],\r
+        "summary" : "Publish a Blueprint Model",\r
+        "description" : "Validates the attached CBA file and saves it in CDS if validation was successful. CBA needs to be already enriched.",\r
+        "operationId" : "BlueprintModelController_publishBlueprint_POST.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",\r
+        "consumes" : [ "multipart/form-data" ],\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "in" : "body",\r
+          "name" : "file",\r
+          "description" : "Enriched CBA zip file to be uploaded (example: cba_enriched.zip)",\r
+          "required" : true,\r
+          "schema" : {\r
+            "$ref" : "#/definitions/FilePart"\r
+          }\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "successful operation",\r
+            "schema" : {\r
+              "$ref" : "#/definitions/BlueprintModelSearch"\r
+            }\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/blueprint-model/search/{tags}" : {\r
+      "get" : {\r
+        "tags" : [ "Blueprint Model Catalog" ],\r
+        "summary" : "Search for a Blueprint by Tag",\r
+        "description" : "Searches for all blueprint models which contain the specified input parameter in their tags. Blueprint models which contain just parts of the searched word in their tags are also returned.",\r
+        "operationId" : "BlueprintModelController_searchBlueprintModels_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "name" : "tags",\r
+          "in" : "path",\r
+          "description" : "Tag to search for",\r
+          "required" : true,\r
+          "type" : "string",\r
+          "x-example" : "test"\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "successful operation",\r
+            "schema" : {\r
+              "type" : "array",\r
+              "items" : {\r
+                "$ref" : "#/definitions/BlueprintModelSearch"\r
+              }\r
+            }\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/blueprint-model/workflow-spec" : {\r
+      "post" : {\r
+        "tags" : [ "Blueprint Model Catalog" ],\r
+        "summary" : "Get Workflow Specification",\r
+        "description" : "Get the workflow of a blueprint identified by Blueprint and workflow name. Inputs, outputs and data types of workflow is returned.",\r
+        "operationId" : "BlueprintModelController_workflowSpec_POST.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",\r
+        "consumes" : [ "application/json" ],\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "in" : "body",\r
+          "name" : "body",\r
+          "description" : "Blueprint and workflow identification",\r
+          "required" : true,\r
+          "schema" : {\r
+            "$ref" : "#/definitions/WorkFlowSpecRequest"\r
+          }\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "successful operation",\r
+            "schema" : {\r
+              "type" : "object"\r
+            }\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/blueprint-model/workflows/blueprint-name/{name}/version/{version}" : {\r
+      "get" : {\r
+        "tags" : [ "Blueprint Model Catalog" ],\r
+        "summary" : "Get Workflows of a Blueprint",\r
+        "description" : "Get all available workflows of a Blueprint identified by its name and version.",\r
+        "operationId" : "BlueprintModelController_getWorkflowList_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "name" : "name",\r
+          "in" : "path",\r
+          "description" : "Name of the blueprint model",\r
+          "required" : true,\r
+          "type" : "string",\r
+          "x-example" : "pnf_netconf"\r
+        }, {\r
+          "name" : "version",\r
+          "in" : "path",\r
+          "description" : "Version of the blueprint model",\r
+          "required" : true,\r
+          "type" : "string",\r
+          "x-example" : "1.0.0"\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "successful operation",\r
+            "schema" : {\r
+              "type" : "object"\r
+            }\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/blueprint-model/{id}" : {\r
+      "get" : {\r
+        "tags" : [ "Blueprint Model Catalog" ],\r
+        "summary" : "Get a Blueprint Model by ID",\r
+        "description" : "Get meta-data of a blueprint model by its internally created ID.",\r
+        "operationId" : "BlueprintModelController_getBlueprintModel_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "name" : "id",\r
+          "in" : "path",\r
+          "description" : "ID of the blueprint model to search for",\r
+          "required" : true,\r
+          "type" : "string",\r
+          "x-example" : "67ec1f96-ab55-4b81-aff9-23ee0ed1d7a4"\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "OK",\r
+            "schema" : {\r
+              "$ref" : "#/definitions/BlueprintModelSearch"\r
+            }\r
+          },\r
+          "404" : {\r
+            "description" : "Not Found"\r
+          }\r
+        }\r
+      },\r
+      "delete" : {\r
+        "tags" : [ "Blueprint Model Catalog" ],\r
+        "summary" : "Delete a Blueprint Model by ID",\r
+        "description" : "Delete a blueprint model by its ID. ID is the internally created ID of blueprint, not the name of blueprint.",\r
+        "operationId" : "BlueprintModelController_deleteBlueprint_DELETE.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",\r
+        "parameters" : [ {\r
+          "name" : "id",\r
+          "in" : "path",\r
+          "description" : "ID of the blueprint model to delete",\r
+          "required" : true,\r
+          "type" : "string",\r
+          "x-example" : "67ec1f96-ab55-4b81-aff9-23ee0ed1d7a4"\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "OK",\r
+            "schema" : {\r
+              "type" : "object"\r
+            }\r
+          },\r
+          "404" : {\r
+            "description" : "RESOURCE_NOT_FOUND"\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/configs" : {\r
+      "get" : {\r
+        "tags" : [ "Resource configuration" ],\r
+        "summary" : "Retrieve a resource configuration snapshot",\r
+        "description" : "Retrieve a config snapshot, identified by its Resource Id and Type. An extra 'format' parameter can be passed to tell what content-type is expected.",\r
+        "operationId" : "ResourceConfigSnapshotController_get_GET.org.onap.ccsdk.cds.blueprintsprocessor.configs.api",\r
+        "produces" : [ "text/plain", "application/json", "application/xml" ],\r
+        "parameters" : [ {\r
+          "name" : "resourceType",\r
+          "in" : "query",\r
+          "description" : "Resource Type associated of the resource configuration snapshot",\r
+          "required" : true,\r
+          "type" : "string",\r
+          "x-example" : "\"PNF\""\r
+        }, {\r
+          "name" : "resourceId",\r
+          "in" : "query",\r
+          "description" : "Resource Id associated of the resource configuration snapshot",\r
+          "required" : true,\r
+          "type" : "string",\r
+          "x-example" : "\"1\""\r
+        }, {\r
+          "name" : "status",\r
+          "in" : "query",\r
+          "description" : "Status of the snapshot being retrieved",\r
+          "required" : false,\r
+          "type" : "string",\r
+          "default" : "RUNNING"\r
+        }, {\r
+          "name" : "format",\r
+          "in" : "query",\r
+          "description" : "Expected format of the snapshot being retrieved",\r
+          "required" : false,\r
+          "type" : "string",\r
+          "default" : "text/plain"\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "successful operation",\r
+            "schema" : {\r
+              "type" : "string"\r
+            }\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/configs/allByID" : {\r
+      "get" : {\r
+        "tags" : [ "Resource configuration" ],\r
+        "summary" : "Retrieve all resource configuration snapshots identified by a given resource_id",\r
+        "description" : "Retrieve all config snapshots, identified by its Resource Id, ordered by most recently created/modified date. ",\r
+        "operationId" : "ResourceConfigSnapshotController_getAllByID_GET.org.onap.ccsdk.cds.blueprintsprocessor.configs.api",\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "name" : "resourceId",\r
+          "in" : "query",\r
+          "description" : "Resource Id associated of the resource configuration snapshots",\r
+          "required" : true,\r
+          "type" : "string",\r
+          "x-example" : "\"1\""\r
+        }, {\r
+          "name" : "status",\r
+          "in" : "query",\r
+          "description" : "Status of the snapshot being retrieved",\r
+          "required" : false,\r
+          "type" : "string",\r
+          "default" : "ANY"\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "successful operation",\r
+            "schema" : {\r
+              "type" : "array",\r
+              "items" : {\r
+                "$ref" : "#/definitions/ResourceConfigSnapshot"\r
+              }\r
+            }\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/configs/allByType" : {\r
+      "get" : {\r
+        "tags" : [ "Resource configuration" ],\r
+        "summary" : "Retrieve all resource configuration snapshots for a given resource type",\r
+        "description" : "Retrieve all config snapshots matching a specified Resource Type, ordered by most recently created/modified date. ",\r
+        "operationId" : "ResourceConfigSnapshotController_getAllByType_GET.org.onap.ccsdk.cds.blueprintsprocessor.configs.api",\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "name" : "resourceType",\r
+          "in" : "query",\r
+          "description" : "Resource Type associated of the resource configuration snapshot",\r
+          "required" : true,\r
+          "type" : "string",\r
+          "x-example" : "\"PNF\""\r
+        }, {\r
+          "name" : "status",\r
+          "in" : "query",\r
+          "description" : "Status of the snapshot being retrieved",\r
+          "required" : false,\r
+          "type" : "string",\r
+          "default" : "ANY"\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "successful operation",\r
+            "schema" : {\r
+              "type" : "array",\r
+              "items" : {\r
+                "$ref" : "#/definitions/ResourceConfigSnapshot"\r
+              }\r
+            }\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/configs/{resourceType}/{resourceId}/{status}" : {\r
+      "post" : {\r
+        "tags" : [ "Resource configuration" ],\r
+        "summary" : "Store a resource configuration snapshot identified by resourceId, resourceType, status",\r
+        "description" : "Store a resource configuration snapshot, identified by its resourceId and resourceType, and optionally its status, either RUNNING or CANDIDATE.",\r
+        "operationId" : "ResourceConfigSnapshotController_postWithResourceIdAndResourceType_POST.org.onap.ccsdk.cds.blueprintsprocessor.configs.api",\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "name" : "resourceType",\r
+          "in" : "path",\r
+          "description" : "Resource Type associated with the resolution",\r
+          "required" : true,\r
+          "type" : "string",\r
+          "x-example" : "\"PNF\""\r
+        }, {\r
+          "name" : "resourceId",\r
+          "in" : "path",\r
+          "description" : "Resource Id associated with the resolution",\r
+          "required" : true,\r
+          "type" : "string",\r
+          "x-example" : "\"1\""\r
+        }, {\r
+          "name" : "status",\r
+          "in" : "path",\r
+          "description" : "Status of the snapshot being retrieved",\r
+          "required" : true,\r
+          "type" : "string",\r
+          "default" : "RUNNING"\r
+        }, {\r
+          "in" : "body",\r
+          "name" : "body",\r
+          "description" : "Config snapshot to store",\r
+          "required" : true,\r
+          "schema" : {\r
+            "type" : "string"\r
+          }\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "successful operation",\r
+            "schema" : {\r
+              "$ref" : "#/definitions/ResourceConfigSnapshot"\r
+            }\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/dictionary" : {\r
+      "post" : {\r
+        "tags" : [ "Resource dictionary" ],\r
+        "summary" : "Save a resource dictionary",\r
+        "description" : "Save a resource dictionary by dictionary provided.",\r
+        "operationId" : "ResourceDictionaryController_saveResourceDictionary_POST.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",\r
+        "consumes" : [ "application/json" ],\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "in" : "body",\r
+          "name" : "body",\r
+          "description" : "Resource dictionary to store",\r
+          "required" : true,\r
+          "schema" : {\r
+            "$ref" : "#/definitions/ResourceDictionary"\r
+          }\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "successful operation",\r
+            "schema" : {\r
+              "$ref" : "#/definitions/ResourceDictionary"\r
+            }\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/dictionary/by-names" : {\r
+      "post" : {\r
+        "tags" : [ "Resource dictionary" ],\r
+        "summary" : "Search for a resource dictionary",\r
+        "description" : "Search for a resource dictionary by names provided.",\r
+        "operationId" : "ResourceDictionaryController_searchResourceDictionaryByNames_POST.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",\r
+        "consumes" : [ "application/json" ],\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "in" : "body",\r
+          "name" : "body",\r
+          "description" : "List of names",\r
+          "required" : true,\r
+          "schema" : {\r
+            "type" : "array",\r
+            "items" : {\r
+              "type" : "string"\r
+            }\r
+          }\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "successful operation",\r
+            "schema" : {\r
+              "type" : "array",\r
+              "items" : {\r
+                "$ref" : "#/definitions/ResourceDictionary"\r
+              }\r
+            }\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/dictionary/definition" : {\r
+      "post" : {\r
+        "tags" : [ "Resource dictionary" ],\r
+        "summary" : "Save a resource dictionary",\r
+        "description" : "Save a resource dictionary by resource definition provided.",\r
+        "operationId" : "ResourceDictionaryController_saveResourceDictionary_1_POST.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",\r
+        "consumes" : [ "application/json" ],\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "in" : "body",\r
+          "name" : "body",\r
+          "description" : "Resource definition to generate",\r
+          "required" : true,\r
+          "schema" : {\r
+            "$ref" : "#/definitions/ResourceDefinition"\r
+          }\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "successful operation",\r
+            "schema" : {\r
+              "$ref" : "#/definitions/ResourceDefinition"\r
+            }\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/dictionary/resource_dictionary_group" : {\r
+      "get" : {\r
+        "tags" : [ "Resource dictionary" ],\r
+        "summary" : "Retrieve all resource dictionary groups",\r
+        "description" : "Retrieve all resource dictionary groups.",\r
+        "operationId" : "ResourceDictionaryController_getResourceDictionaryDistinct_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",\r
+        "produces" : [ "application/json" ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "successful operation",\r
+            "schema" : {\r
+              "type" : "array",\r
+              "items" : {\r
+                "type" : "string"\r
+              }\r
+            }\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/dictionary/search/{tags}" : {\r
+      "get" : {\r
+        "tags" : [ "Resource dictionary" ],\r
+        "summary" : "Search for a resource dictionary",\r
+        "description" : "Search for a resource dictionary by tags provided.",\r
+        "operationId" : "ResourceDictionaryController_searchResourceDictionaryByTags_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "name" : "tags",\r
+          "in" : "path",\r
+          "description" : "Tags list",\r
+          "required" : true,\r
+          "type" : "string",\r
+          "x-example" : "\"status\""\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "successful operation",\r
+            "schema" : {\r
+              "type" : "array",\r
+              "items" : {\r
+                "$ref" : "#/definitions/ResourceDictionary"\r
+              }\r
+            }\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/dictionary/source-mapping" : {\r
+      "get" : {\r
+        "tags" : [ "Resource dictionary" ],\r
+        "summary" : "Search for a source mapping",\r
+        "description" : "Search for a source mapping.",\r
+        "operationId" : "ResourceDictionaryController_getResourceSourceMapping_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",\r
+        "produces" : [ "application/json" ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "successful operation",\r
+            "schema" : {\r
+              "$ref" : "#/definitions/ResourceSourceMapping"\r
+            }\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/dictionary/{name}" : {\r
+      "get" : {\r
+        "tags" : [ "Resource dictionary" ],\r
+        "summary" : "Retrieve a resource dictionary",\r
+        "description" : "Retrieve a resource dictionary by name provided.",\r
+        "operationId" : "ResourceDictionaryController_getResourceDictionaryByName_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "name" : "name",\r
+          "in" : "path",\r
+          "description" : "Name of the resource",\r
+          "required" : true,\r
+          "type" : "string",\r
+          "x-example" : "\"hostname\""\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "successful operation",\r
+            "schema" : {\r
+              "$ref" : "#/definitions/ResourceDictionary"\r
+            }\r
+          }\r
+        }\r
+      },\r
+      "delete" : {\r
+        "tags" : [ "Resource dictionary" ],\r
+        "summary" : "Remove a resource dictionary",\r
+        "description" : "Remove a resource dictionary by name provided.",\r
+        "operationId" : "ResourceDictionaryController_deleteResourceDictionaryByName_DELETE.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",\r
+        "parameters" : [ {\r
+          "name" : "name",\r
+          "in" : "path",\r
+          "description" : "Name of the resource",\r
+          "required" : true,\r
+          "type" : "string"\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "successful operation",\r
+            "schema" : {\r
+              "type" : "object"\r
+            }\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/resources" : {\r
+      "get" : {\r
+        "tags" : [ "Resources" ],\r
+        "summary" : "Get all resolved resources using the resolution key",\r
+        "description" : "Retrieve all stored resolved resources using the blueprint name, blueprint version, artifact name and the resolution-key.",\r
+        "operationId" : "ResourceController_getAllFromResolutionKeyOrFromResourceTypeAndId_GET.org.onap.ccsdk.cds.blueprintsprocessor.resource.api",\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "name" : "bpName",\r
+          "in" : "query",\r
+          "description" : "Name of the CBA",\r
+          "required" : true,\r
+          "type" : "string"\r
+        }, {\r
+          "name" : "bpVersion",\r
+          "in" : "query",\r
+          "description" : "Version of the CBA",\r
+          "required" : true,\r
+          "type" : "string"\r
+        }, {\r
+          "name" : "artifactName",\r
+          "in" : "query",\r
+          "description" : "Artifact name for which to retrieve a resolved resource",\r
+          "required" : true,\r
+          "type" : "string"\r
+        }, {\r
+          "name" : "resolutionKey",\r
+          "in" : "query",\r
+          "description" : "Resolution Key associated with the resolution",\r
+          "required" : false,\r
+          "type" : "string"\r
+        }, {\r
+          "name" : "resourceType",\r
+          "in" : "query",\r
+          "description" : "Resource Type associated with the resolution",\r
+          "required" : false,\r
+          "type" : "string"\r
+        }, {\r
+          "name" : "resourceId",\r
+          "in" : "query",\r
+          "description" : "Resource Id associated with the resolution",\r
+          "required" : false,\r
+          "type" : "string"\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "successful operation",\r
+            "schema" : {\r
+              "type" : "array",\r
+              "items" : {\r
+                "$ref" : "#/definitions/ResourceResolution"\r
+              }\r
+            }\r
+          }\r
+        }\r
+      },\r
+      "delete" : {\r
+        "tags" : [ "Resources" ],\r
+        "summary" : "Delete resources using resolution key",\r
+        "description" : "Delete all the resources associated to a resolution-key using blueprint metadata, artifact name and the resolution-key.",\r
+        "operationId" : "ResourceController_deleteByBlueprintNameAndBlueprintVersionAndArtifactNameAndResolutionKey_DELETE.org.onap.ccsdk.cds.blueprintsprocessor.resource.api",\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "name" : "bpName",\r
+          "in" : "query",\r
+          "description" : "Name of the CBA",\r
+          "required" : true,\r
+          "type" : "string"\r
+        }, {\r
+          "name" : "bpVersion",\r
+          "in" : "query",\r
+          "description" : "Version of the CBA",\r
+          "required" : true,\r
+          "type" : "string"\r
+        }, {\r
+          "name" : "artifactName",\r
+          "in" : "query",\r
+          "description" : "Artifact name for which to retrieve a resolved resource",\r
+          "required" : true,\r
+          "type" : "string"\r
+        }, {\r
+          "name" : "resolutionKey",\r
+          "in" : "query",\r
+          "description" : "Resolution Key associated with the resolution",\r
+          "required" : true,\r
+          "type" : "string"\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "successful operation",\r
+            "schema" : {\r
+              "$ref" : "#/definitions/Unit"\r
+            }\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/resources/resource" : {\r
+      "get" : {\r
+        "tags" : [ "Resources" ],\r
+        "summary" : "Fetch a resource value using resolution key",\r
+        "description" : "Retrieve a stored resource value using the blueprint metadata, artifact name, resolution-key along with the name of the resource value to retrieve.",\r
+        "operationId" : "ResourceController_getOneFromResolutionKey_GET.org.onap.ccsdk.cds.blueprintsprocessor.resource.api",\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "name" : "bpName",\r
+          "in" : "query",\r
+          "description" : "Name of the CBA",\r
+          "required" : true,\r
+          "type" : "string"\r
+        }, {\r
+          "name" : "bpVersion",\r
+          "in" : "query",\r
+          "description" : "Version of the CBA",\r
+          "required" : true,\r
+          "type" : "string"\r
+        }, {\r
+          "name" : "artifactName",\r
+          "in" : "query",\r
+          "description" : "Artifact name for which to retrieve a resolved resource",\r
+          "required" : true,\r
+          "type" : "string"\r
+        }, {\r
+          "name" : "resolutionKey",\r
+          "in" : "query",\r
+          "description" : "Resolution Key associated with the resolution",\r
+          "required" : true,\r
+          "type" : "string"\r
+        }, {\r
+          "name" : "name",\r
+          "in" : "query",\r
+          "description" : "Name of the resource to retrieve",\r
+          "required" : true,\r
+          "type" : "string"\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "successful operation",\r
+            "schema" : {\r
+              "$ref" : "#/definitions/ResourceResolution"\r
+            }\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/template/{bpName}/{bpVersion}/{artifactName}/{resolutionKey}" : {\r
+      "post" : {\r
+        "tags" : [ "Resource template" ],\r
+        "summary" : "Store a resolved template w/ resolution-key",\r
+        "description" : "Store a template for a given CBA's action, identified by its blueprint name, blueprint version, artifact name and resolution key.",\r
+        "operationId" : "TemplateController_postWithResolutionKey_POST.org.onap.ccsdk.cds.blueprintsprocessor.resource.api",\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "name" : "bpName",\r
+          "in" : "path",\r
+          "description" : "Name of the CBA",\r
+          "required" : true,\r
+          "type" : "string"\r
+        }, {\r
+          "name" : "bpVersion",\r
+          "in" : "path",\r
+          "description" : "Version of the CBA",\r
+          "required" : true,\r
+          "type" : "string"\r
+        }, {\r
+          "name" : "artifactName",\r
+          "in" : "path",\r
+          "description" : "Artifact name for which to retrieve a resolved resource",\r
+          "required" : true,\r
+          "type" : "string"\r
+        }, {\r
+          "name" : "resolutionKey",\r
+          "in" : "path",\r
+          "description" : "Resolution Key associated with the resolution",\r
+          "required" : true,\r
+          "type" : "string"\r
+        }, {\r
+          "in" : "body",\r
+          "name" : "body",\r
+          "description" : "Template to store",\r
+          "required" : true,\r
+          "schema" : {\r
+            "type" : "string"\r
+          }\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "successful operation",\r
+            "schema" : {\r
+              "$ref" : "#/definitions/TemplateResolution"\r
+            }\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/api/v1/template/{bpName}/{bpVersion}/{artifactName}/{resourceType}/{resourceId}" : {\r
+      "post" : {\r
+        "tags" : [ "Resource template" ],\r
+        "summary" : "Store a resolved template w/ resourceId and resourceType",\r
+        "description" : "Store a template for a given CBA's action, identified by its blueprint name, blueprint version, artifact name, resourceId and resourceType.",\r
+        "operationId" : "TemplateController_postWithResourceIdAndResourceType_POST.org.onap.ccsdk.cds.blueprintsprocessor.resource.api",\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "name" : "bpName",\r
+          "in" : "path",\r
+          "description" : "Name of the CBA",\r
+          "required" : true,\r
+          "type" : "string"\r
+        }, {\r
+          "name" : "bpVersion",\r
+          "in" : "path",\r
+          "description" : "Version of the CBA",\r
+          "required" : true,\r
+          "type" : "string"\r
+        }, {\r
+          "name" : "artifactName",\r
+          "in" : "path",\r
+          "description" : "Artifact name for which to retrieve a resolved resource",\r
+          "required" : true,\r
+          "type" : "string"\r
+        }, {\r
+          "name" : "resourceType",\r
+          "in" : "path",\r
+          "description" : "Resource Type associated with the resolution",\r
+          "required" : true,\r
+          "type" : "string"\r
+        }, {\r
+          "name" : "resourceId",\r
+          "in" : "path",\r
+          "description" : "Resource Id associated with the resolution",\r
+          "required" : true,\r
+          "type" : "string"\r
+        }, {\r
+          "in" : "body",\r
+          "name" : "body",\r
+          "description" : "Template to store",\r
+          "required" : true,\r
+          "schema" : {\r
+            "type" : "string"\r
+          }\r
+        } ],\r
+        "responses" : {\r
+          "200" : {\r
+            "description" : "successful operation",\r
+            "schema" : {\r
+              "$ref" : "#/definitions/TemplateResolution"\r
+            }\r
+          }\r
+        }\r
+      }\r
+    }\r
+  },\r
+  "securityDefinitions" : {\r
+    "Basic Auth" : {\r
+      "type" : "basic"\r
+    }\r
+  },\r
+  "definitions" : {\r
+    "ArtifactDefinition" : {\r
+      "type" : "object",\r
+      "properties" : {\r
+        "type" : {\r
+          "type" : "string"\r
+        },\r
+        "file" : {\r
+          "type" : "string"\r
+        },\r
+        "repository" : {\r
+          "type" : "string"\r
+        },\r
+        "description" : {\r
+          "type" : "string"\r
+        },\r
+        "properties" : {\r
+          "type" : "object",\r
+          "additionalProperties" : {\r
+            "$ref" : "#/definitions/JsonNode"\r
+          }\r
+        },\r
+        "deploy_Path" : {\r
+          "type" : "string"\r
+        }\r
+      }\r
+    },\r
+    "BlueprintModelSearch" : {\r
+      "type" : "object",\r
+      "required" : [ "artifactName", "artifactVersion", "createdDate", "id", "published", "tags", "updatedBy" ],\r
+      "properties" : {\r
+        "id" : {\r
+          "type" : "string",\r
+          "example" : "658f9a48-7f54-41ba-ae18-c69f26f3dc94",\r
+          "description" : "ID of Blueprint model, is automatically created by CDS"\r
+        },\r
+        "artifactUUId" : {\r
+          "type" : "string",\r
+          "example" : null,\r
+          "description" : "Artifact UUID, usually null"\r
+        },\r
+        "artifactType" : {\r
+          "type" : "string",\r
+          "example" : "SDNC_MODEL",\r
+          "description" : "Artifact Type, usually null"\r
+        },\r
+        "artifactVersion" : {\r
+          "type" : "string",\r
+          "example" : "1.0.0",\r
+          "description" : "Artifact Version, usually 1.0.0"\r
+        },\r
+        "artifactDescription" : {\r
+          "type" : "string",\r
+          "example" : "",\r
+          "description" : "Artifact Description, usually empty"\r
+        },\r
+        "internalVersion" : {\r
+          "type" : "integer",\r
+          "format" : "int32",\r
+          "example" : null,\r
+          "description" : "Internal Version of CBA, usually null"\r
+        },\r
+        "createdDate" : {\r
+          "type" : "string",\r
+          "format" : "date-time",\r
+          "example" : "2020-11-19T10:34:56.000Z",\r
+          "description" : "Datetime of the creation of CBA in CDS"\r
+        },\r
+        "artifactName" : {\r
+          "type" : "string",\r
+          "example" : "pnf_netconf",\r
+          "description" : "Artifact Name, defined in Metadata"\r
+        },\r
+        "published" : {\r
+          "type" : "string",\r
+          "example" : "pnf_netconf",\r
+          "description" : "Artifact Name, defined in Metadata"\r
+        },\r
+        "updatedBy" : {\r
+          "type" : "string",\r
+          "example" : "Deutsche Telekom AG",\r
+          "description" : "Name of publisher, defined in Metadata"\r
+        },\r
+        "tags" : {\r
+          "type" : "string",\r
+          "example" : "test",\r
+          "description" : "Tags to identify the CBA, defined in Metadata"\r
+        }\r
+      }\r
+    },\r
+    "BootstrapRequest" : {\r
+      "type" : "object",\r
+      "required" : [ "loadCBA", "loadModelType", "loadResourceDictionary" ],\r
+      "properties" : {\r
+        "loadModelType" : {\r
+          "type" : "boolean",\r
+          "example" : true,\r
+          "description" : "Specifies if default model types should be loaded"\r
+        },\r
+        "loadResourceDictionary" : {\r
+          "type" : "boolean",\r
+          "example" : true,\r
+          "description" : "Specifies if default data dictionaries should be loaded"\r
+        },\r
+        "loadCBA" : {\r
+          "type" : "boolean",\r
+          "example" : true,\r
+          "description" : "Specifies if default blueprint models should be loaded"\r
+        }\r
+      }\r
+    },\r
+    "CapabilityAssignment" : {\r
+      "type" : "object",\r
+      "properties" : {\r
+        "attributes" : {\r
+          "type" : "object",\r
+          "additionalProperties" : {\r
+            "$ref" : "#/definitions/JsonNode"\r
+          }\r
+        },\r
+        "properties" : {\r
+          "type" : "object",\r
+          "additionalProperties" : {\r
+            "$ref" : "#/definitions/JsonNode"\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "ConstraintClause" : {\r
+      "type" : "object",\r
+      "properties" : {\r
+        "equal" : {\r
+          "$ref" : "#/definitions/JsonNode"\r
+        },\r
+        "length" : {\r
+          "$ref" : "#/definitions/JsonNode"\r
+        },\r
+        "pattern" : {\r
+          "type" : "string"\r
+        },\r
+        "schema" : {\r
+          "type" : "string"\r
+        },\r
+        "greater_than" : {\r
+          "$ref" : "#/definitions/JsonNode"\r
+        },\r
+        "greater_or_equal" : {\r
+          "$ref" : "#/definitions/JsonNode"\r
+        },\r
+        "less_than" : {\r
+          "$ref" : "#/definitions/JsonNode"\r
+        },\r
+        "less_or_equal" : {\r
+          "$ref" : "#/definitions/JsonNode"\r
+        },\r
+        "in_range" : {\r
+          "type" : "array",\r
+          "items" : {\r
+            "$ref" : "#/definitions/JsonNode"\r
+          }\r
+        },\r
+        "valid_values" : {\r
+          "type" : "array",\r
+          "items" : {\r
+            "$ref" : "#/definitions/JsonNode"\r
+          }\r
+        },\r
+        "min_length" : {\r
+          "$ref" : "#/definitions/JsonNode"\r
+        },\r
+        "max_length" : {\r
+          "$ref" : "#/definitions/JsonNode"\r
+        }\r
+      }\r
+    },\r
+    "EntrySchema" : {\r
+      "type" : "object",\r
+      "properties" : {\r
+        "type" : {\r
+          "type" : "string"\r
+        },\r
+        "constraints" : {\r
+          "type" : "array",\r
+          "items" : {\r
+            "$ref" : "#/definitions/ConstraintClause"\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "FilePart" : {\r
+      "type" : "object"\r
+    },\r
+    "Implementation" : {\r
+      "type" : "object",\r
+      "properties" : {\r
+        "primary" : {\r
+          "type" : "string"\r
+        },\r
+        "dependencies" : {\r
+          "type" : "array",\r
+          "items" : {\r
+            "type" : "string"\r
+          }\r
+        },\r
+        "timeout" : {\r
+          "type" : "integer",\r
+          "format" : "int32"\r
+        },\r
+        "lock" : {\r
+          "$ref" : "#/definitions/LockAssignment"\r
+        },\r
+        "operation_host" : {\r
+          "type" : "string"\r
+        }\r
+      }\r
+    },\r
+    "InterfaceAssignment" : {\r
+      "type" : "object",\r
+      "properties" : {\r
+        "operations" : {\r
+          "type" : "object",\r
+          "additionalProperties" : {\r
+            "$ref" : "#/definitions/OperationAssignment"\r
+          }\r
+        },\r
+        "inputs" : {\r
+          "type" : "object",\r
+          "additionalProperties" : {\r
+            "$ref" : "#/definitions/JsonNode"\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "JsonNode" : {\r
+      "type" : "object",\r
+      "properties" : {\r
+        "valueNode" : {\r
+          "type" : "boolean"\r
+        },\r
+        "containerNode" : {\r
+          "type" : "boolean"\r
+        },\r
+        "missingNode" : {\r
+          "type" : "boolean"\r
+        },\r
+        "array" : {\r
+          "type" : "boolean"\r
+        },\r
+        "object" : {\r
+          "type" : "boolean"\r
+        },\r
+        "nodeType" : {\r
+          "type" : "string",\r
+          "enum" : [ "ARRAY", "BINARY", "BOOLEAN", "MISSING", "NULL", "NUMBER", "OBJECT", "POJO", "STRING" ]\r
+        },\r
+        "pojo" : {\r
+          "type" : "boolean"\r
+        },\r
+        "number" : {\r
+          "type" : "boolean"\r
+        },\r
+        "integralNumber" : {\r
+          "type" : "boolean"\r
+        },\r
+        "floatingPointNumber" : {\r
+          "type" : "boolean"\r
+        },\r
+        "short" : {\r
+          "type" : "boolean"\r
+        },\r
+        "int" : {\r
+          "type" : "boolean"\r
+        },\r
+        "long" : {\r
+          "type" : "boolean"\r
+        },\r
+        "float" : {\r
+          "type" : "boolean"\r
+        },\r
+        "double" : {\r
+          "type" : "boolean"\r
+        },\r
+        "bigDecimal" : {\r
+          "type" : "boolean"\r
+        },\r
+        "bigInteger" : {\r
+          "type" : "boolean"\r
+        },\r
+        "textual" : {\r
+          "type" : "boolean"\r
+        },\r
+        "boolean" : {\r
+          "type" : "boolean"\r
+        },\r
+        "null" : {\r
+          "type" : "boolean"\r
+        },\r
+        "binary" : {\r
+          "type" : "boolean"\r
+        }\r
+      }\r
+    },\r
+    "LockAssignment" : {\r
+      "type" : "object",\r
+      "properties" : {\r
+        "key" : {\r
+          "$ref" : "#/definitions/JsonNode"\r
+        },\r
+        "acquireTimeout" : {\r
+          "$ref" : "#/definitions/JsonNode"\r
+        }\r
+      }\r
+    },\r
+    "NodeFilterDefinition" : {\r
+      "type" : "object",\r
+      "properties" : {\r
+        "properties" : {\r
+          "type" : "object",\r
+          "additionalProperties" : {\r
+            "$ref" : "#/definitions/PropertyDefinition"\r
+          }\r
+        },\r
+        "capabilities" : {\r
+          "type" : "array",\r
+          "items" : {\r
+            "type" : "string"\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "NodeTemplate" : {\r
+      "type" : "object",\r
+      "properties" : {\r
+        "description" : {\r
+          "type" : "string"\r
+        },\r
+        "type" : {\r
+          "type" : "string"\r
+        },\r
+        "metadata" : {\r
+          "type" : "object",\r
+          "additionalProperties" : {\r
+            "type" : "string"\r
+          }\r
+        },\r
+        "directives" : {\r
+          "type" : "array",\r
+          "items" : {\r
+            "type" : "string"\r
+          }\r
+        },\r
+        "properties" : {\r
+          "type" : "object",\r
+          "additionalProperties" : {\r
+            "$ref" : "#/definitions/JsonNode"\r
+          }\r
+        },\r
+        "attributes" : {\r
+          "type" : "object",\r
+          "additionalProperties" : {\r
+            "$ref" : "#/definitions/JsonNode"\r
+          }\r
+        },\r
+        "capabilities" : {\r
+          "type" : "object",\r
+          "additionalProperties" : {\r
+            "$ref" : "#/definitions/CapabilityAssignment"\r
+          }\r
+        },\r
+        "requirements" : {\r
+          "type" : "object",\r
+          "additionalProperties" : {\r
+            "$ref" : "#/definitions/RequirementAssignment"\r
+          }\r
+        },\r
+        "interfaces" : {\r
+          "type" : "object",\r
+          "additionalProperties" : {\r
+            "$ref" : "#/definitions/InterfaceAssignment"\r
+          }\r
+        },\r
+        "artifacts" : {\r
+          "type" : "object",\r
+          "additionalProperties" : {\r
+            "$ref" : "#/definitions/ArtifactDefinition"\r
+          }\r
+        },\r
+        "copy" : {\r
+          "type" : "string"\r
+        },\r
+        "node_filter" : {\r
+          "$ref" : "#/definitions/NodeFilterDefinition"\r
+        }\r
+      }\r
+    },\r
+    "OperationAssignment" : {\r
+      "type" : "object",\r
+      "properties" : {\r
+        "description" : {\r
+          "type" : "string"\r
+        },\r
+        "implementation" : {\r
+          "$ref" : "#/definitions/Implementation"\r
+        },\r
+        "inputs" : {\r
+          "type" : "object",\r
+          "additionalProperties" : {\r
+            "$ref" : "#/definitions/JsonNode"\r
+          }\r
+        },\r
+        "outputs" : {\r
+          "type" : "object",\r
+          "additionalProperties" : {\r
+            "$ref" : "#/definitions/JsonNode"\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "Page" : {\r
+      "type" : "object",\r
+      "properties" : {\r
+        "totalPages" : {\r
+          "type" : "integer",\r
+          "format" : "int32"\r
+        },\r
+        "totalElements" : {\r
+          "type" : "integer",\r
+          "format" : "int64"\r
+        },\r
+        "number" : {\r
+          "type" : "integer",\r
+          "format" : "int32"\r
+        },\r
+        "size" : {\r
+          "type" : "integer",\r
+          "format" : "int32"\r
+        },\r
+        "numberOfElements" : {\r
+          "type" : "integer",\r
+          "format" : "int32"\r
+        },\r
+        "content" : {\r
+          "type" : "array",\r
+          "items" : {\r
+            "type" : "object"\r
+          }\r
+        },\r
+        "sort" : {\r
+          "$ref" : "#/definitions/Sort"\r
+        },\r
+        "first" : {\r
+          "type" : "boolean"\r
+        },\r
+        "last" : {\r
+          "type" : "boolean"\r
+        },\r
+        "pageable" : {\r
+          "$ref" : "#/definitions/Pageable"\r
+        },\r
+        "empty" : {\r
+          "type" : "boolean"\r
+        }\r
+      }\r
+    },\r
+    "PageBlueprintModelSearch" : {\r
+      "type" : "object",\r
+      "properties" : {\r
+        "totalPages" : {\r
+          "type" : "integer",\r
+          "format" : "int32"\r
+        },\r
+        "totalElements" : {\r
+          "type" : "integer",\r
+          "format" : "int64"\r
+        },\r
+        "number" : {\r
+          "type" : "integer",\r
+          "format" : "int32"\r
+        },\r
+        "size" : {\r
+          "type" : "integer",\r
+          "format" : "int32"\r
+        },\r
+        "numberOfElements" : {\r
+          "type" : "integer",\r
+          "format" : "int32"\r
+        },\r
+        "content" : {\r
+          "type" : "array",\r
+          "items" : {\r
+            "$ref" : "#/definitions/BlueprintModelSearch"\r
+          }\r
+        },\r
+        "sort" : {\r
+          "$ref" : "#/definitions/Sort"\r
+        },\r
+        "first" : {\r
+          "type" : "boolean"\r
+        },\r
+        "last" : {\r
+          "type" : "boolean"\r
+        },\r
+        "pageable" : {\r
+          "$ref" : "#/definitions/Pageable"\r
+        },\r
+        "empty" : {\r
+          "type" : "boolean"\r
+        }\r
+      }\r
+    },\r
+    "Pageable" : {\r
+      "type" : "object",\r
+      "properties" : {\r
+        "paged" : {\r
+          "type" : "boolean"\r
+        },\r
+        "unpaged" : {\r
+          "type" : "boolean"\r
+        },\r
+        "pageNumber" : {\r
+          "type" : "integer",\r
+          "format" : "int32"\r
+        },\r
+        "pageSize" : {\r
+          "type" : "integer",\r
+          "format" : "int32"\r
+        },\r
+        "offset" : {\r
+          "type" : "integer",\r
+          "format" : "int64"\r
+        },\r
+        "sort" : {\r
+          "$ref" : "#/definitions/Sort"\r
+        }\r
+      }\r
+    },\r
+    "PropertyDefinition" : {\r
+      "type" : "object",\r
+      "properties" : {\r
+        "description" : {\r
+          "type" : "string"\r
+        },\r
+        "required" : {\r
+          "type" : "boolean"\r
+        },\r
+        "type" : {\r
+          "type" : "string"\r
+        },\r
+        "status" : {\r
+          "type" : "string"\r
+        },\r
+        "constraints" : {\r
+          "type" : "array",\r
+          "items" : {\r
+            "$ref" : "#/definitions/ConstraintClause"\r
+          }\r
+        },\r
+        "metadata" : {\r
+          "type" : "object",\r
+          "additionalProperties" : {\r
+            "type" : "string"\r
+          }\r
+        },\r
+        "value" : {\r
+          "$ref" : "#/definitions/JsonNode"\r
+        },\r
+        "input-param" : {\r
+          "type" : "boolean"\r
+        },\r
+        "default" : {\r
+          "$ref" : "#/definitions/JsonNode"\r
+        },\r
+        "entry_schema" : {\r
+          "$ref" : "#/definitions/EntrySchema"\r
+        },\r
+        "external-schema" : {\r
+          "type" : "string"\r
+        }\r
+      }\r
+    },\r
+    "RequirementAssignment" : {\r
+      "type" : "object",\r
+      "properties" : {\r
+        "capability" : {\r
+          "type" : "string"\r
+        },\r
+        "node" : {\r
+          "type" : "string"\r
+        },\r
+        "relationship" : {\r
+          "type" : "string"\r
+        }\r
+      }\r
+    },\r
+    "ResourceConfigSnapshot" : {\r
+      "type" : "object",\r
+      "required" : [ "config_snapshot", "createdDate", "resourceId", "resourceType", "status" ],\r
+      "properties" : {\r
+        "resourceType" : {\r
+          "type" : "string",\r
+          "example" : "ServiceInstance",\r
+          "description" : "Resource type."\r
+        },\r
+        "resourceId" : {\r
+          "type" : "string",\r
+          "example" : "1",\r
+          "description" : "ID associated with the resource type in the inventory system."\r
+        },\r
+        "status" : {\r
+          "type" : "string",\r
+          "description" : "Status of the snapshot, either running or candidate.",\r
+          "enum" : [ "RUNNING", "CANDIDATE" ]\r
+        },\r
+        "config_snapshot" : {\r
+          "type" : "string",\r
+          "example" : "config_snapshot",\r
+          "description" : "Snapshot of the resource as retrieved from resource."\r
+        },\r
+        "id" : {\r
+          "type" : "string"\r
+        },\r
+        "createdDate" : {\r
+          "type" : "string",\r
+          "format" : "date-time",\r
+          "description" : "Creation date of the snapshot."\r
+        }\r
+      }\r
+    },\r
+    "ResourceDefinition" : {\r
+      "type" : "object",\r
+      "required" : [ "group", "name", "property", "sources", "updated-by" ],\r
+      "properties" : {\r
+        "tags" : {\r
+          "type" : "string"\r
+        },\r
+        "name" : {\r
+          "type" : "string",\r
+          "example" : "default-source",\r
+          "description" : "Name"\r
+        },\r
+        "property" : {\r
+          "description" : "Property",\r
+          "$ref" : "#/definitions/PropertyDefinition"\r
+        },\r
+        "group" : {\r
+          "type" : "string",\r
+          "example" : "default",\r
+          "description" : "Group"\r
+        },\r
+        "updated-by" : {\r
+          "type" : "string",\r
+          "example" : "example@onap.com",\r
+          "description" : "Updated by"\r
+        },\r
+        "sources" : {\r
+          "type" : "object",\r
+          "example" : "sources",\r
+          "description" : "Sources",\r
+          "additionalProperties" : {\r
+            "$ref" : "#/definitions/NodeTemplate"\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "ResourceDictionary" : {\r
+      "type" : "object",\r
+      "required" : [ "dataType", "definition", "description", "entrySchema", "name", "resourceDictionaryGroup", "tags", "updatedBy" ],\r
+      "properties" : {\r
+        "name" : {\r
+          "type" : "string",\r
+          "example" : "sample-db-source",\r
+          "description" : "Name"\r
+        },\r
+        "dataType" : {\r
+          "type" : "string",\r
+          "example" : "string",\r
+          "description" : "Data type"\r
+        },\r
+        "entrySchema" : {\r
+          "type" : "string",\r
+          "example" : "dt-license-key",\r
+          "description" : "Entry schema"\r
+        },\r
+        "resourceDictionaryGroup" : {\r
+          "type" : "string",\r
+          "example" : "default",\r
+          "description" : "Resource dictionary group"\r
+        },\r
+        "definition" : {\r
+          "description" : "Definition",\r
+          "$ref" : "#/definitions/ResourceDefinition"\r
+        },\r
+        "description" : {\r
+          "type" : "string",\r
+          "example" : "demo_artifacts_version",\r
+          "description" : "Description"\r
+        },\r
+        "tags" : {\r
+          "type" : "string",\r
+          "example" : "hostname",\r
+          "description" : "Tags"\r
+        },\r
+        "creationDate" : {\r
+          "type" : "string",\r
+          "format" : "date-time"\r
+        },\r
+        "updatedBy" : {\r
+          "type" : "string",\r
+          "example" : "username",\r
+          "description" : "Updated by"\r
+        }\r
+      }\r
+    },\r
+    "ResourceResolution" : {\r
+      "type" : "object",\r
+      "required" : [ "artifactName", "blueprintName", "blueprintVersion", "createdDate", "dictionaryName", "dictionarySource", "dictionaryVersion", "name", "occurrence", "resolutionKey", "resourceId", "resourceType", "status", "value" ],\r
+      "properties" : {\r
+        "blueprintName" : {\r
+          "type" : "string",\r
+          "description" : "Name of the CBA."\r
+        },\r
+        "blueprintVersion" : {\r
+          "type" : "string",\r
+          "description" : "Version of the CBA."\r
+        },\r
+        "artifactName" : {\r
+          "type" : "string",\r
+          "description" : "Artifact name for which to retrieve a resolved resource."\r
+        },\r
+        "name" : {\r
+          "type" : "string",\r
+          "description" : "Name of the resource."\r
+        },\r
+        "value" : {\r
+          "type" : "string",\r
+          "description" : "Value of the resolution."\r
+        },\r
+        "status" : {\r
+          "type" : "string",\r
+          "description" : "Whether success of failure."\r
+        },\r
+        "resolutionKey" : {\r
+          "type" : "string",\r
+          "description" : "Resolution Key uniquely identifying the resolution of a given artifact within a CBA."\r
+        },\r
+        "resourceType" : {\r
+          "type" : "string",\r
+          "example" : "ServiceInstance",\r
+          "description" : "Resolution type."\r
+        },\r
+        "resourceId" : {\r
+          "type" : "string",\r
+          "description" : "ID associated with the resolution type in the inventory system."\r
+        },\r
+        "occurrence" : {\r
+          "type" : "integer",\r
+          "format" : "int32",\r
+          "description" : "If resolution occurred multiple time, this field provides the index."\r
+        },\r
+        "dictionaryName" : {\r
+          "type" : "string",\r
+          "description" : "Name of the data dictionary used for the resolution."\r
+        },\r
+        "dictionarySource" : {\r
+          "type" : "string",\r
+          "description" : "Source associated with the data dictionary used for the resolution."\r
+        },\r
+        "dictionaryVersion" : {\r
+          "type" : "integer",\r
+          "format" : "int32",\r
+          "description" : "Version of the data dictionary used for the resolution."\r
+        },\r
+        "id" : {\r
+          "type" : "string"\r
+        },\r
+        "createdDate" : {\r
+          "type" : "string",\r
+          "format" : "date-time",\r
+          "description" : "Creation date of the resolution."\r
+        }\r
+      }\r
+    },\r
+    "ResourceSourceMapping" : {\r
+      "type" : "object",\r
+      "properties" : {\r
+        "resourceSourceMappings" : {\r
+          "type" : "object",\r
+          "additionalProperties" : {\r
+            "type" : "string"\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "Sort" : {\r
+      "type" : "object",\r
+      "properties" : {\r
+        "sorted" : {\r
+          "type" : "boolean"\r
+        },\r
+        "unsorted" : {\r
+          "type" : "boolean"\r
+        },\r
+        "empty" : {\r
+          "type" : "boolean"\r
+        }\r
+      }\r
+    },\r
+    "TemplateResolution" : {\r
+      "type" : "object",\r
+      "required" : [ "artifactName", "blueprintName", "blueprintVersion", "createdDate", "occurrence", "resolutionKey", "resourceId", "resourceType", "result" ],\r
+      "properties" : {\r
+        "blueprintName" : {\r
+          "type" : "string",\r
+          "description" : "Name of the CBA."\r
+        },\r
+        "blueprintVersion" : {\r
+          "type" : "string",\r
+          "description" : "Version of the CBA."\r
+        },\r
+        "artifactName" : {\r
+          "type" : "string",\r
+          "description" : "Artifact name for which to retrieve a resolved resource."\r
+        },\r
+        "result" : {\r
+          "type" : "string",\r
+          "description" : "Rendered template."\r
+        },\r
+        "resolutionKey" : {\r
+          "type" : "string",\r
+          "description" : "Resolution Key uniquely identifying the resolution of a given artifact within a CBA."\r
+        },\r
+        "resourceType" : {\r
+          "type" : "string",\r
+          "example" : "ServiceInstance",\r
+          "description" : "Resolution type."\r
+        },\r
+        "resourceId" : {\r
+          "type" : "string",\r
+          "description" : "ID associated with the resolution type in the inventory system."\r
+        },\r
+        "occurrence" : {\r
+          "type" : "integer",\r
+          "format" : "int32",\r
+          "description" : "If resolution occurred multiple time, this field provides the index."\r
+        },\r
+        "id" : {\r
+          "type" : "string"\r
+        },\r
+        "createdDate" : {\r
+          "type" : "string",\r
+          "format" : "date-time",\r
+          "description" : "Creation date of the resolution."\r
+        }\r
+      }\r
+    },\r
+    "Unit" : {\r
+      "type" : "object"\r
+    },\r
+    "WorkFlowSpecRequest" : {\r
+      "type" : "object",\r
+      "required" : [ "blueprintName", "workflowName" ],\r
+      "properties" : {\r
+        "blueprintName" : {\r
+          "type" : "string",\r
+          "example" : "pnf_netconf",\r
+          "description" : "Name of the BLueprint"\r
+        },\r
+        "version" : {\r
+          "type" : "string"\r
+        },\r
+        "returnContent" : {\r
+          "type" : "string"\r
+        },\r
+        "workflowName" : {\r
+          "type" : "string",\r
+          "example" : "config-assign",\r
+          "description" : "Name of the Workflow"\r
+        },\r
+        "specType" : {\r
+          "type" : "string"\r
+        }\r
+      }\r
+    }\r
+  }\r
 }
\ No newline at end of file
index cccff52..2f398d3 100755 (executable)
                             <springmvc>true</springmvc>
                             <locations>
                                 <location>org.onap.ccsdk.cds.blueprintsprocessor.designer.api.BlueprintModelController</location>
+                                <location>org.onap.ccsdk.cds.blueprintsprocessor.designer.api.ResourceDictionaryController</location>
                                 <location>org.onap.ccsdk.cds.blueprintsprocessor.resource.api</location>
                                 <location>org.onap.ccsdk.cds.blueprintsprocessor.configs.api</location>
                                 <!-- This location is not implemented yet
index 584df27..9dadd39 100644 (file)
@@ -49,7 +49,7 @@ import org.springframework.web.bind.annotation.RestController
 @RequestMapping("/api/v1/configs")
 @Api(
     value = "Resource configuration",
-    description = "Interaction with stored configurations."
+    description = "Interaction with stored configurations"
 )
 open class ResourceConfigSnapshotController(private val resourceConfigSnapshotService: ResourceConfigSnapshotService) {
 
@@ -71,24 +71,24 @@ open class ResourceConfigSnapshotController(private val resourceConfigSnapshotSe
         produces = [MediaType.TEXT_PLAIN_VALUE, MediaType.APPLICATION_JSON_VALUE, MediaType.APPLICATION_XML_VALUE]
     )
     @ApiOperation(
-        value = "Retrieve a resource configuration snapshot.",
+        value = "Retrieve a resource configuration snapshot",
         notes = "Retrieve a config snapshot, identified by its Resource Id and Type. " +
             "An extra 'format' parameter can be passed to tell what content-type is expected."
     )
     @ResponseBody
     @PreAuthorize("hasRole('USER')")
     fun get(
-        @ApiParam(value = "Resource Type associated of the resource configuration snapshot.", required = false, example = "\"PNF\"")
+        @ApiParam(value = "Resource Type associated of the resource configuration snapshot", required = false, example = "\"PNF\"")
         @RequestParam(value = "resourceType", required = true) resourceType: String,
 
-        @ApiParam(value = "Resource Id associated of the resource configuration snapshot.", required = false, example = "\"1\"")
+        @ApiParam(value = "Resource Id associated of the resource configuration snapshot", required = false, example = "\"1\"")
         @RequestParam(value = "resourceId", required = true) resourceId: String,
 
-        @ApiParam(value = "Status of the snapshot being retrieved.", defaultValue = "RUNNING", required = false)
+        @ApiParam(value = "Status of the snapshot being retrieved", defaultValue = "RUNNING", required = false)
         @RequestParam(value = "status", required = false, defaultValue = "RUNNING") status: String,
 
         @ApiParam(
-            value = "Expected format of the snapshot being retrieved.", defaultValue = MediaType.TEXT_PLAIN_VALUE,
+            value = "Expected format of the snapshot being retrieved", defaultValue = MediaType.TEXT_PLAIN_VALUE,
             required = false
         )
         @RequestParam(value = "format", required = false, defaultValue = MediaType.TEXT_PLAIN_VALUE) format: String
@@ -138,7 +138,7 @@ open class ResourceConfigSnapshotController(private val resourceConfigSnapshotSe
         produces = [MediaType.APPLICATION_JSON_VALUE]
     )
     @ApiOperation(
-        value = "Store a resource configuration snapshot identified by resourceId, resourceType, status.",
+        value = "Store a resource configuration snapshot identified by resourceId, resourceType, status",
         notes = "Store a resource configuration snapshot, identified by its resourceId and resourceType, " +
             "and optionally its status, either RUNNING or CANDIDATE.",
         response = ResourceConfigSnapshot::class
@@ -146,13 +146,13 @@ open class ResourceConfigSnapshotController(private val resourceConfigSnapshotSe
     @ResponseBody
     @PreAuthorize("hasRole('USER')")
     fun postWithResourceIdAndResourceType(
-        @ApiParam(value = "Resource Type associated with the resolution.", required = false, example = "\"PNF\"")
+        @ApiParam(value = "Resource Type associated with the resolution", required = false, example = "\"PNF\"")
         @PathVariable(value = "resourceType", required = true) resourceType: String,
-        @ApiParam(value = "Resource Id associated with the resolution.", required = false, example = "\"1\"")
+        @ApiParam(value = "Resource Id associated with the resolution", required = false, example = "\"1\"")
         @PathVariable(value = "resourceId", required = true) resourceId: String,
-        @ApiParam(value = "Status of the snapshot being retrieved.", defaultValue = "RUNNING", required = true)
+        @ApiParam(value = "Status of the snapshot being retrieved", defaultValue = "RUNNING", required = true)
         @PathVariable(value = "status", required = true) status: String,
-        @ApiParam(value = "Config snapshot to store.", required = true, example = "\"config_snapshot\"")
+        @ApiParam(value = "Config snapshot to store", required = true, example = "\"config_snapshot\"")
         @RequestBody snapshot: String
     ): ResponseEntity<ResourceConfigSnapshot> = runBlocking {
 
@@ -177,9 +177,9 @@ open class ResourceConfigSnapshotController(private val resourceConfigSnapshotSe
     @ResponseBody
     @PreAuthorize("hasRole('USER')")
     fun getAllByID(
-        @ApiParam(value = "Resource Id associated of the resource configuration snapshots.", required = false, example = "\"1\"")
+        @ApiParam(value = "Resource Id associated of the resource configuration snapshots", required = false, example = "\"1\"")
         @RequestParam(value = "resourceId", required = true) resourceId: String,
-        @ApiParam(value = "Status of the snapshot being retrieved.", defaultValue = "ANY", required = false)
+        @ApiParam(value = "Status of the snapshot being retrieved", defaultValue = "ANY", required = false)
         @RequestParam(value = "status", required = false, defaultValue = "ANY") status: String
     ): ResponseEntity<List<ResourceConfigSnapshot>?> = runBlocking {
         var configSnapshots: List<ResourceConfigSnapshot>?
@@ -216,15 +216,15 @@ open class ResourceConfigSnapshotController(private val resourceConfigSnapshotSe
         produces = [MediaType.APPLICATION_JSON_VALUE]
     )
     @ApiOperation(
-        value = "Retrieve all resource configuration snapshots for a given resource type.",
+        value = "Retrieve all resource configuration snapshots for a given resource type",
         notes = "Retrieve all config snapshots matching a specified Resource Type, ordered by most recently created/modified date. "
     )
     @ResponseBody
     @PreAuthorize("hasRole('USER')")
     fun getAllByType(
-        @ApiParam(value = "Resource Type associated of the resource configuration snapshot.", required = false, example = "\"PNF\"")
+        @ApiParam(value = "Resource Type associated of the resource configuration snapshot", required = false, example = "\"PNF\"")
         @RequestParam(value = "resourceType", required = true) resourceType: String,
-        @ApiParam(value = "Status of the snapshot being retrieved.", defaultValue = "ANY", required = false)
+        @ApiParam(value = "Status of the snapshot being retrieved", defaultValue = "ANY", required = false)
         @RequestParam(value = "status", required = false, defaultValue = "ANY") status: String
     ): ResponseEntity<List<ResourceConfigSnapshot>?> = runBlocking {
         var configSnapshots: List<ResourceConfigSnapshot>?
index 8b79ce7..66d4b0e 100644 (file)
@@ -59,7 +59,7 @@ import org.springframework.web.bind.annotation.RestController
 @RestController
 @RequestMapping("/api/v1/blueprint-model")
 @Api(
-    value = "Blueprint Model Catalog API",
+    value = "Blueprint Model Catalog",
     description = "Manages all blueprint models which are available in CDS"
 )
 open class BlueprintModelController(private val bluePrintModelHandler: BluePrintModelHandler) {
index 1dcfa2f..8d69ccd 100644 (file)
@@ -39,20 +39,20 @@ import org.springframework.web.bind.annotation.RestController
 @RequestMapping(value = ["/api/v1/dictionary"])
 @Api(
     value = "Resource dictionary",
-    description = "Interaction with stored dictionaries."
+    description = "Interaction with stored dictionaries"
 )
 open class ResourceDictionaryController(private val resourceDictionaryHandler: ResourceDictionaryHandler) {
 
     @GetMapping(path = ["/{name}"], produces = [MediaType.APPLICATION_JSON_VALUE])
     @ApiOperation(
-        value = "Retrieve a resource dictionary.",
+        value = "Retrieve a resource dictionary",
         notes = "Retrieve a resource dictionary by name provided.",
         response = ResourceDictionary::class
     )
     @ResponseBody
     @Throws(BluePrintException::class)
     suspend fun getResourceDictionaryByName(
-        @ApiParam(value = "Name of the resource.", required = true, example = "\"hostname\"")
+        @ApiParam(value = "Name of the resource", required = true, example = "\"hostname\"")
         @PathVariable(value = "name") name: String
     ): ResourceDictionary =
         mdcWebCoroutineScope {
@@ -64,14 +64,14 @@ open class ResourceDictionaryController(private val resourceDictionaryHandler: R
         consumes = [MediaType.APPLICATION_JSON_VALUE]
     )
     @ApiOperation(
-        value = "Saves a resource dictionary.",
-        notes = "Saves a resource dictionary by dictionary provided.",
+        value = "Save a resource dictionary",
+        notes = "Save a resource dictionary by dictionary provided.",
         response = ResourceDictionary::class
     )
     @ResponseBody
     @Throws(BluePrintException::class)
     suspend fun saveResourceDictionary(
-        @ApiParam(value = "Resource dictionary to store.", required = true)
+        @ApiParam(value = "Resource dictionary to store", required = true)
         @RequestBody dataDictionary: ResourceDictionary
     ): ResourceDictionary =
         mdcWebCoroutineScope {
@@ -84,15 +84,15 @@ open class ResourceDictionaryController(private val resourceDictionaryHandler: R
         consumes = [MediaType.APPLICATION_JSON_VALUE]
     )
     @ApiOperation(
-        value = "Saves a resource dictionary.",
-        notes = "Saves a resource dictionary by resource definition provided.",
+        value = "Save a resource dictionary",
+        notes = "Save a resource dictionary by resource definition provided.",
         nickname = "ResourceDictionaryController_saveResourceDictionary_1_POST.org.onap.ccsdk.cds.blueprintsprocessor.designer.api",
         response = ResourceDefinition::class
     )
     @ResponseBody
     @Throws(BluePrintException::class)
     suspend fun saveResourceDictionary(
-        @ApiParam(value = "Resource definition to generate.", required = true)
+        @ApiParam(value = "Resource definition to generate", required = true)
         @RequestBody resourceDefinition: ResourceDefinition
     ): ResourceDefinition =
         mdcWebCoroutineScope {
@@ -101,11 +101,11 @@ open class ResourceDictionaryController(private val resourceDictionaryHandler: R
 
     @DeleteMapping(path = ["/{name}"])
     @ApiOperation(
-        value = "Removes a resource dictionary.",
-        notes = "Removes a resource dictionary by name provided."
+        value = "Remove a resource dictionary",
+        notes = "Remove a resource dictionary by name provided."
     )
     suspend fun deleteResourceDictionaryByName(
-        @ApiParam(value = "Name of the resource.", required = true)
+        @ApiParam(value = "Name of the resource", required = true)
         @PathVariable(value = "name") name: String
     ) = mdcWebCoroutineScope {
         resourceDictionaryHandler.deleteResourceDictionary(name)
@@ -117,14 +117,14 @@ open class ResourceDictionaryController(private val resourceDictionaryHandler: R
         consumes = [MediaType.APPLICATION_JSON_VALUE]
     )
     @ApiOperation(
-        value = "Searches for a resource dictionary.",
-        notes = "Searches for a resource dictionary by names provided.",
+        value = "Search for a resource dictionary",
+        notes = "Search for a resource dictionary by names provided.",
         responseContainer = "List",
         response = ResourceDictionary::class
     )
     @ResponseBody
     suspend fun searchResourceDictionaryByNames(
-        @ApiParam(value = "List of names.", required = true)
+        @ApiParam(value = "List of names", required = true)
         @RequestBody names: List<String>
     ): List<ResourceDictionary> =
         mdcWebCoroutineScope {
@@ -133,14 +133,14 @@ open class ResourceDictionaryController(private val resourceDictionaryHandler: R
 
     @GetMapping(path = ["/search/{tags}"], produces = [MediaType.APPLICATION_JSON_VALUE])
     @ApiOperation(
-        value = "Searches for a resource dictionary.",
-        notes = "Searches for a resource dictionary by tags provided.",
+        value = "Search for a resource dictionary",
+        notes = "Search for a resource dictionary by tags provided.",
         responseContainer = "List",
         response = ResourceDictionary::class
     )
     @ResponseBody
     suspend fun searchResourceDictionaryByTags(
-        @ApiParam(value = "Tags list.", required = true, example = "\"status\"")
+        @ApiParam(value = "Tags list", required = true, example = "\"status\"")
         @PathVariable(value = "tags") tags: String
     ): List<ResourceDictionary> =
         mdcWebCoroutineScope {
@@ -149,8 +149,8 @@ open class ResourceDictionaryController(private val resourceDictionaryHandler: R
 
     @GetMapping(path = ["/source-mapping"], produces = [MediaType.APPLICATION_JSON_VALUE])
     @ApiOperation(
-        value = "Searches for a source mapping.",
-        notes = "Searches for a source mapping.",
+        value = "Search for a source mapping",
+        notes = "Search for a source mapping.",
         response = ResourceSourceMapping::class
     )
     @ResponseBody
@@ -160,7 +160,7 @@ open class ResourceDictionaryController(private val resourceDictionaryHandler: R
 
     @GetMapping(path = ["/resource_dictionary_group"], produces = [MediaType.APPLICATION_JSON_VALUE])
     @ApiOperation(
-        value = "Retrieve all resource dictionary groups.",
+        value = "Retrieve all resource dictionary groups",
         notes = "Retrieve all resource dictionary groups.",
         responseContainer = "List",
         response = String::class
index 3c18ba4..15c27a4 100644 (file)
@@ -39,7 +39,7 @@ import org.springframework.web.bind.annotation.RestController
 @RequestMapping("/api/v1/resources")
 @Api(
     value = "Resources",
-    description = "Interaction with resolved resources."
+    description = "Interaction with resolved resources"
 )
 open class ResourceController(private var resourceResolutionDBService: ResourceResolutionDBService) {
 
@@ -55,11 +55,10 @@ open class ResourceController(private var resourceResolutionDBService: ResourceR
     }
 
     @RequestMapping(
-        path = [""],
         method = [RequestMethod.GET], produces = [MediaType.APPLICATION_JSON_VALUE]
     )
     @ApiOperation(
-        value = "Get all resolved resources using the resolution key",
+        value = "Get all resolved resources using the resolution key",
         notes = "Retrieve all stored resolved resources using the blueprint name, blueprint version, " +
             "artifact name and the resolution-key.",
         response = ResourceResolution::class,
@@ -69,17 +68,17 @@ open class ResourceController(private var resourceResolutionDBService: ResourceR
     @ResponseBody
     @PreAuthorize("hasRole('USER')")
     fun getAllFromResolutionKeyOrFromResourceTypeAndId(
-        @ApiParam(value = "Name of the CBA.", required = true)
+        @ApiParam(value = "Name of the CBA", required = true)
         @RequestParam(value = "bpName", required = true) bpName: String,
-        @ApiParam(value = "Version of the CBA.", required = true)
+        @ApiParam(value = "Version of the CBA", required = true)
         @RequestParam(value = "bpVersion", required = true) bpVersion: String,
-        @ApiParam(value = "Artifact name for which to retrieve a resolved resource.", required = true)
+        @ApiParam(value = "Artifact name for which to retrieve a resolved resource", required = true)
         @RequestParam(value = "artifactName", required = false, defaultValue = "") artifactName: String,
-        @ApiParam(value = "Resolution Key associated with the resolution.", required = false)
+        @ApiParam(value = "Resolution Key associated with the resolution", required = false)
         @RequestParam(value = "resolutionKey", required = false, defaultValue = "") resolutionKey: String,
-        @ApiParam(value = "Resource Type associated with the resolution.", required = false)
+        @ApiParam(value = "Resource Type associated with the resolution", required = false)
         @RequestParam(value = "resourceType", required = false, defaultValue = "") resourceType: String,
-        @ApiParam(value = "Resource Id associated with the resolution.", required = false)
+        @ApiParam(value = "Resource Id associated with the resolution", required = false)
         @RequestParam(value = "resourceId", required = false, defaultValue = "") resourceId: String
     ):
         ResponseEntity<List<ResourceResolution>> = runBlocking {
@@ -111,7 +110,6 @@ open class ResourceController(private var resourceResolutionDBService: ResourceR
         }
 
     @RequestMapping(
-        path = [""],
         method = [RequestMethod.DELETE], produces = [MediaType.APPLICATION_JSON_VALUE]
     )
     @ApiOperation(
@@ -120,13 +118,13 @@ open class ResourceController(private var resourceResolutionDBService: ResourceR
     )
     @PreAuthorize("hasRole('USER')")
     fun deleteByBlueprintNameAndBlueprintVersionAndArtifactNameAndResolutionKey(
-        @ApiParam(value = "Name of the CBA.", required = true)
+        @ApiParam(value = "Name of the CBA", required = true)
         @RequestParam(value = "bpName", required = true) bpName: String,
-        @ApiParam(value = "Version of the CBA.", required = true)
+        @ApiParam(value = "Version of the CBA", required = true)
         @RequestParam(value = "bpVersion", required = true) bpVersion: String,
-        @ApiParam(value = "Artifact name for which to retrieve a resolved resource.", required = true)
+        @ApiParam(value = "Artifact name for which to retrieve a resolved resource", required = true)
         @RequestParam(value = "artifactName", required = false, defaultValue = "") artifactName: String,
-        @ApiParam(value = "Resolution Key associated with the resolution.", required = true)
+        @ApiParam(value = "Resolution Key associated with the resolution", required = true)
         @RequestParam(value = "resolutionKey", required = true) resolutionKey: String
     ) = runBlocking {
         ResponseEntity.ok()
@@ -146,21 +144,21 @@ open class ResourceController(private var resourceResolutionDBService: ResourceR
         produces = [MediaType.APPLICATION_JSON_VALUE]
     )
     @ApiOperation(
-        value = "Fetch a resource value using resolution key.",
+        value = "Fetch a resource value using resolution key",
         notes = "Retrieve a stored resource value using the blueprint metadata, artifact name, resolution-key along with the name of the resource value to retrieve."
     )
     @ResponseBody
     @PreAuthorize("hasRole('USER')")
     fun getOneFromResolutionKey(
-        @ApiParam(value = "Name of the CBA.", required = true)
+        @ApiParam(value = "Name of the CBA", required = true)
         @RequestParam(value = "bpName", required = true) bpName: String,
-        @ApiParam(value = "Version of the CBA.", required = true)
+        @ApiParam(value = "Version of the CBA", required = true)
         @RequestParam(value = "bpVersion", required = true) bpVersion: String,
-        @ApiParam(value = "Artifact name for which to retrieve a resolved resource.", required = true)
+        @ApiParam(value = "Artifact name for which to retrieve a resolved resource", required = true)
         @RequestParam(value = "artifactName", required = true) artifactName: String,
-        @ApiParam(value = "Resolution Key associated with the resolution.", required = true)
+        @ApiParam(value = "Resolution Key associated with the resolution", required = true)
         @RequestParam(value = "resolutionKey", required = true) resolutionKey: String,
-        @ApiParam(value = "Name of the resource to retrieve.", required = true)
+        @ApiParam(value = "Name of the resource to retrieve", required = true)
         @RequestParam(value = "name", required = true) name: String
     ):
         ResponseEntity<ResourceResolution> = runBlocking {
index b80e81c..2d32d0e 100644 (file)
@@ -48,7 +48,7 @@ import org.springframework.web.bind.annotation.RestController
 @RequestMapping("/api/v1/template")
 @Api(
     value = "Resource template",
-    description = "Interaction with resolved template."
+    description = "Interaction with resolved templates"
 )
 open class TemplateController(private val templateResolutionService: TemplateResolutionService) {
 
@@ -69,7 +69,7 @@ open class TemplateController(private val templateResolutionService: TemplateRes
         produces = [MediaType.TEXT_PLAIN_VALUE, MediaType.APPLICATION_JSON_VALUE, MediaType.APPLICATION_XML_VALUE]
     )
     @ApiOperation(
-        value = "Retrieve a resolved template.",
+        value = "Retrieve a resolved template",
         notes = "Retrieve a config template for a given CBA's action, identified by its blueprint name, blueprint version, " +
             "artifact name and resolution key. An extra 'format' parameter can be passed to tell what content-type" +
             " to expect in return"
@@ -77,25 +77,25 @@ open class TemplateController(private val templateResolutionService: TemplateRes
     @ResponseBody
     @PreAuthorize("hasRole('USER')")
     fun get(
-        @ApiParam(value = "Name of the CBA.", required = true)
+        @ApiParam(value = "Name of the CBA", required = true)
         @RequestParam(value = "bpName") bpName: String,
-        @ApiParam(value = "Version of the CBA.", required = true)
+        @ApiParam(value = "Version of the CBA", required = true)
         @RequestParam(value = "bpVersion") bpVersion: String,
-        @ApiParam(value = "Artifact name for which to retrieve a resolved resource.", required = true)
+        @ApiParam(value = "Artifact name for which to retrieve a resolved resource", required = true)
         @RequestParam(value = "artifactName") artifactName: String,
-        @ApiParam(value = "Resolution Key associated with the resolution.", required = false)
+        @ApiParam(value = "Resolution Key associated with the resolution", required = false)
         @RequestParam(value = "resolutionKey") resolutionKey: String,
-        @ApiParam(value = "Resource Type associated with the resolution.", required = false)
+        @ApiParam(value = "Resource Type associated with the resolution", required = false)
         @RequestParam(value = "resourceType", required = false, defaultValue = "") resourceType: String,
-        @ApiParam(value = "Resource Id associated with the resolution.", required = false)
+        @ApiParam(value = "Resource Id associated with the resolution", required = false)
         @RequestParam(value = "resourceId", required = false, defaultValue = "") resourceId: String,
         @ApiParam(
-            value = "Expected format of the template being retrieved.",
+            value = "Expected format of the template being retrieved",
             defaultValue = MediaType.TEXT_PLAIN_VALUE,
             required = true
         )
         @RequestParam(value = "format", required = false, defaultValue = MediaType.TEXT_PLAIN_VALUE) format: String,
-        @ApiParam(value = "Occurrence of the template resolution (1-n).", required = false)
+        @ApiParam(value = "Occurrence of the template resolution (1-n)", required = false)
         @RequestParam(value = "occurrence", required = false, defaultValue = "1") occurrence: Int = 1
     ):
         ResponseEntity<String> = runBlocking {
@@ -151,15 +151,15 @@ open class TemplateController(private val templateResolutionService: TemplateRes
     @ResponseBody
     @PreAuthorize("hasRole('USER')")
     fun postWithResolutionKey(
-        @ApiParam(value = "Name of the CBA.", required = true)
+        @ApiParam(value = "Name of the CBA", required = true)
         @PathVariable(value = "bpName") bpName: String,
-        @ApiParam(value = "Version of the CBA.", required = true)
+        @ApiParam(value = "Version of the CBA", required = true)
         @PathVariable(value = "bpVersion") bpVersion: String,
-        @ApiParam(value = "Artifact name for which to retrieve a resolved resource.", required = true)
+        @ApiParam(value = "Artifact name for which to retrieve a resolved resource", required = true)
         @PathVariable(value = "artifactName") artifactName: String,
-        @ApiParam(value = "Resolution Key associated with the resolution.", required = true)
+        @ApiParam(value = "Resolution Key associated with the resolution", required = true)
         @PathVariable(value = "resolutionKey") resolutionKey: String,
-        @ApiParam(value = "Template to store.", required = true)
+        @ApiParam(value = "Template to store", required = true)
         @RequestBody result: String
     ): ResponseEntity<TemplateResolution> = runBlocking {
 
@@ -182,17 +182,17 @@ open class TemplateController(private val templateResolutionService: TemplateRes
     @ResponseBody
     @PreAuthorize("hasRole('USER')")
     fun postWithResourceIdAndResourceType(
-        @ApiParam(value = "Name of the CBA.", required = true)
+        @ApiParam(value = "Name of the CBA", required = true)
         @PathVariable(value = "bpName") bpName: String,
-        @ApiParam(value = "Version of the CBA.", required = true)
+        @ApiParam(value = "Version of the CBA", required = true)
         @PathVariable(value = "bpVersion") bpVersion: String,
-        @ApiParam(value = "Artifact name for which to retrieve a resolved resource.", required = true)
+        @ApiParam(value = "Artifact name for which to retrieve a resolved resource", required = true)
         @PathVariable(value = "artifactName") artifactName: String,
-        @ApiParam(value = "Resource Type associated with the resolution.", required = false)
+        @ApiParam(value = "Resource Type associated with the resolution", required = false)
         @PathVariable(value = "resourceType", required = true) resourceType: String,
-        @ApiParam(value = "Resource Id associated with the resolution.", required = false)
+        @ApiParam(value = "Resource Id associated with the resolution", required = false)
         @PathVariable(value = "resourceId", required = true) resourceId: String,
-        @ApiParam(value = "Template to store.", required = true)
+        @ApiParam(value = "Template to store", required = true)
         @RequestBody result: String
     ): ResponseEntity<TemplateResolution> = runBlocking {