1 .. This work is licensed under a Creative Commons Attribution 4.0
2 .. International License. http://creativecommons.org/licenses/by/4.0
3 .. Copyright (C) 2020 Deutsche Telekom AG.
5 Blueprint Processor API Reference
6 ==================================
11 This section shows all resources and endpoints which CDS BP processor currently provides with sample requests/responses,
12 parameter description and other information. If there is a new API and you want do document it, you can use this template
13 :download:`rst <api-doc-template.rst>`.
18 Use Basic athentification with `ccsdkapps` as a username and password, in Header ``Authorization: Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==``.
23 You can find a postman collection including sample requests here: :download:`JSON <media/bp-processor.postman_collection.json>`
28 All endpoints are accessable under ``http://{{host}}:{{port}}/api/v1/``. Host and port depends on your CDS BP processor
35 Lists all available endpoints from blueprints processor API.
41 GET ``http://{{host}}:{{port}}/actuator/mappings``
42 ....................................................
44 Lists all endpoints from blueprints processor.
49 curl --location --request GET 'http://localhost:8081/actuator/mappings' \
50 --header 'Authorization: Basic Y2NzZGthcHBzOmNjc2RrYXBwcw=='
59 :caption: **sample response body**
65 "dispatcherHandlers": {
71 "predicate": "{GET /api/v1/blueprint-model, produces [application/json]}",
72 "handler": "org.onap.ccsdk.cds.blueprintsprocessor.designer.api.BlueprintModelController#allBlueprintModel()",
75 "className": "org.onap.ccsdk.cds.blueprintsprocessor.designer.api.BlueprintModelController",
76 "name": "allBlueprintModel",
77 "descriptor": "()Ljava/util/List;"
79 "handlerFunction": null,
80 "requestMappingConditions": {
88 "/api/v1/blueprint-model"
92 "mediaType": "application/json",
100 "predicate": "{GET /api/v1/blueprint-model/meta-data/{keyword}, produces [application/json]}",
101 "handler": "org.onap.ccsdk.cds.blueprintsprocessor.designer.api.BlueprintModelController#allBlueprintModelMetaData(String, Continuation)",
104 "className": "org.onap.ccsdk.cds.blueprintsprocessor.designer.api.BlueprintModelController",
105 "name": "allBlueprintModelMetaData",
106 "descriptor": "(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;"
108 "handlerFunction": null,
109 "requestMappingConditions": {
117 "/api/v1/blueprint-model/meta-data/{keyword}"
121 "mediaType": "application/json",
139 Blueprint Model Catalog API
140 ----------------------------
142 Blueprint-model resource contains all Controller Blueprints Archive (CBA) packages which are available in CDS.
143 With blueprint-model API you can manage your CBAs.
146 List all blueprint models
147 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
150 GET ``/blueprint-model``
151 ..............................
153 Lists all blueprint models which are saved in CDS.
159 :caption: **request**
161 curl --location --request GET 'http://{{ip_adress}}:{{port}}/api/v1/blueprint-model' \
162 --header 'Authorization: Basic Y2NzZGthcHBzOmNjc2RrYXBwcw=='
171 ......................
176 :caption: **example response**
181 "id": "109e725d-5145-4f70-a2e7-ee6640e2fb5f",
182 "artifactUUId": null,
183 "artifactType": "SDNC_MODEL",
184 "artifactVersion": "1.0.0",
185 "artifactDescription": "",
186 "internalVersion": null,
187 "createdDate": "2020-11-09T19:00:20.000Z",
188 "artifactName": "vLB_CDS_RESTCONF",
190 "updatedBy": "DanielEmmarts>",
196 "id": "5cce3804-09eb-473d-b513-81f8547a7240",
197 "artifactUUId": null,
198 "artifactType": "SDNC_MODEL",
199 "artifactVersion": "1.0.0",
200 "artifactDescription": "",
201 "internalVersion": null,
202 "createdDate": "2020-11-09T19:00:20.000Z",
203 "artifactName": "vLB_CDS",
205 "updatedBy": "TomKennedy>",
211 Technical Description
212 ...........................
214 Loads all Blueprint Models which are saved in the CDS database in table `BLUEPRINT_MODEL`. Unpublished and unproceeded
215 Blueprint Models are also included.
216 Called class/method: ``org.onap.ccsdk.cds.blueprintsprocessor.designer.api.BlueprintModelController#allBlueprintModel()``.