4 description: "Shows all resources and endpoints which CDS BP processor currently\
5 \ provides with sample requests/responses, parameter description and other information."
7 title: "CDS Blueprint Processor API Reference"
8 termsOfService: "https://www.onap.org/"
10 name: "ONAP Community"
11 url: "https://www.onap.org/"
12 email: "onap-discuss@lists.onap.org"
15 url: "http://www.apache.org/licenses/LICENSE-2.0.html"
16 host: "localhost:8080"
18 - name: "Blueprint Model Catalog API"
19 description: "Manages all blueprint models which are available in CDS"
23 /api/v1/blueprint-model:
26 - "Blueprint Model Catalog API"
27 summary: "List all Blueprint Models"
28 description: "Lists all meta-data of blueprint models which are saved in CDS."
29 operationId: "BlueprintModelController_allBlueprintModel_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api"
39 $ref: "#/definitions/BlueprintModelSearch"
41 description: "Internal Server Error"
44 - "Blueprint Model Catalog API"
45 summary: "Save a Blueprint Model"
46 description: "Saves a blueprint model by the given CBA zip file input. There\
47 \ is no validation of the attached CBA happening when this API is called."
48 operationId: "BlueprintModelController_saveBlueprint_POST.org.onap.ccsdk.cds.blueprintsprocessor.designer.api"
50 - "multipart/form-data"
56 description: "CBA file to be uploaded (example: cba.zip)"
59 $ref: "#/definitions/FilePart"
66 description: "Internal Server Error"
67 /api/v1/blueprint-model/bootstrap:
70 - "Blueprint Model Catalog API"
71 summary: "Bootstrap CDS"
72 description: "Loads all Model Types, Resource Dictionaries and Blueprint Models\
73 \ which are included in CDS by default. Before starting to work with CDS,\
74 \ bootstrap should be called to load all the basic models that each orginization\
75 \ might support. Parameter values can be set as `false` to skip loading e.g.\
76 \ the Resource Dictionaries but this is not recommended."
77 operationId: "BlueprintModelController_bootstrap_POST.org.onap.ccsdk.cds.blueprintsprocessor.designer.api"
85 description: "Specifies which elements to load"
88 $ref: "#/definitions/BootstrapRequest"
95 description: "Internal Server Error"
96 /api/v1/blueprint-model/by-name/{name}/version/{version}:
99 - "Blueprint Model Catalog API"
100 summary: "Get a Blueprint Model by Name and Version"
101 description: "Get Meta-Data of a Blueprint Model by its name and version."
102 operationId: "BlueprintModelController_getBlueprintByNameAndVersion_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api"
108 description: "Name of the blueprint model"
111 x-example: "pnf_netconf"
114 description: "Version of the blueprint model"
124 description: "Not Found"
125 /api/v1/blueprint-model/download/by-name/{name}/version/{version}:
128 - "Blueprint Model Catalog API"
129 summary: "Download a Blueprint Model"
130 description: "Gets the CBA of a blueprint model by its name and version. Response\
131 \ can be saved to a file to download the CBA."
132 operationId: "BlueprintModelController_downloadBlueprintByNameAndVersion_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api"
138 description: "Name of the blueprint model"
141 x-example: "pnf_netconf"
144 description: "Version of the blueprint model"
154 description: "Not Found"
155 /api/v1/blueprint-model/download/{id}:
158 - "Blueprint Model Catalog API"
159 summary: "Download a Blueprint Model by ID"
160 description: "Gets the CBA of a blueprint model by its ID. Response can be saved\
161 \ to a file to download the CBA."
162 operationId: "BlueprintModelController_downloadBluePrint_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api"
168 description: "ID of the blueprint model to download"
171 x-example: "67ec1f96-ab55-4b81-aff9-23ee0ed1d7a4"
178 description: "Not Found"
179 /api/v1/blueprint-model/enrich:
182 - "Blueprint Model Catalog API"
183 summary: "Enrich a Blueprint Model"
184 description: "Enriches the attached CBA and returns the enriched CBA zip file\
185 \ in the response. The enrichment process will complete the package by providing\
186 \ all the definition of types used."
187 operationId: "BlueprintModelController_enrichBlueprint_POST.org.onap.ccsdk.cds.blueprintsprocessor.designer.api"
189 - "multipart/form-data"
195 description: "CBA zip file to be uploaded (example: cba_unenriched.zip)"
198 $ref: "#/definitions/FilePart"
201 description: "successful operation"
204 /api/v1/blueprint-model/enrichandpublish:
207 - "Blueprint Model Catalog API"
208 summary: "Enrich and publish a Blueprint Model"
209 description: "Enriches the attached CBA, validates it and saves it in CDS if\
210 \ validation was successful."
211 operationId: "BlueprintModelController_enrichAndPubishlueprint_POST.org.onap.ccsdk.cds.blueprintsprocessor.designer.api"
213 - "multipart/form-data"
219 description: "Unenriched CBA zip file to be uploaded (example: cba_unenriched.zip)"
222 $ref: "#/definitions/FilePart"
229 description: "Service Unavailable"
230 /api/v1/blueprint-model/meta-data/{keyword}:
233 - "Blueprint Model Catalog API"
234 summary: "Search for Blueprints by a Keyword"
235 description: "Lists all blueprint models by a matching keyword in any of the\
236 \ meta-data of the blueprint models. Blueprint models are just returned if\
237 \ a whole keyword is matching, not just parts of it. Not case-sensitive. Used\
239 operationId: "BlueprintModelController_allBlueprintModelMetaData_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api"
245 description: "Keyword to search for in blueprint model meta-data"
248 x-example: "pnf_netconf"
251 description: "successful operation"
254 /api/v1/blueprint-model/name/{name}/version/{version}:
257 - "Blueprint Model Catalog API"
258 summary: "Delete a Blueprint Model by Name"
259 description: "Deletes a blueprint model identified by its name and version from\
261 operationId: "BlueprintModelController_deleteBlueprintByName_DELETE.org.onap.ccsdk.cds.blueprintsprocessor.designer.api"
265 description: "Name of the blueprint model"
268 x-example: "pnf_netconf"
271 description: "Version of the blueprint model"
277 description: "successful operation"
280 /api/v1/blueprint-model/paged:
283 - "Blueprint Model Catalog API"
284 summary: "Get Blueprints ordered"
285 description: "Lists all blueprint models which are saved in CDS in an ordered\
287 operationId: "BlueprintModelController_allBlueprintModelPaged_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api"
293 description: "Maximum number of returned blueprint models"
300 description: "Offset"
307 description: "Order of returned blueprint models"
317 description: "Ascend or descend ordering"
323 description: "successful operation"
325 $ref: "#/definitions/PageBlueprintModelSearch"
326 /api/v1/blueprint-model/paged/meta-data/{keyword}:
329 - "Blueprint Model Catalog API"
330 summary: "Search for Blueprints by a Keyword in an ordered mode"
331 description: "Lists all blueprint models by a matching keyword in any of the\
332 \ meta-data of the blueprint models in an ordered mode. Blueprint models are\
333 \ just returned if a whole keyword is matching, not just parts of it. Not\
334 \ case-sensitive. Used by CDS UI."
335 operationId: "BlueprintModelController_allBlueprintModelMetaDataPaged_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api"
341 description: "Keyword to search for in blueprint model meta-data"
344 x-example: "pnf_netconf"
347 description: "Maximum number of returned blueprint models"
354 description: "Offset"
361 description: "Order of returned blueprint models"
371 description: "Ascend or descend ordering"
377 description: "successful operation"
379 $ref: "#/definitions/PageBlueprintModelSearch"
380 /api/v1/blueprint-model/publish:
383 - "Blueprint Model Catalog API"
384 summary: "Publish a Blueprint Model"
385 description: "Validates the attached CBA file and saves it in CDS if validation\
386 \ was successful. CBA needs to be already enriched."
387 operationId: "BlueprintModelController_publishBlueprint_POST.org.onap.ccsdk.cds.blueprintsprocessor.designer.api"
389 - "multipart/form-data"
395 description: "Enriched CBA zip file to be uploaded (example: cba_enriched.zip)"
398 $ref: "#/definitions/FilePart"
401 description: "successful operation"
404 /api/v1/blueprint-model/search/{tags}:
407 - "Blueprint Model Catalog API"
408 summary: "Search for a Blueprint by Tag"
409 description: "Searches for all blueprint models which contain the specified\
410 \ input parameter in their tags. Blueprint models which contain just parts\
411 \ of the searched word in their tags are also returned."
412 operationId: "BlueprintModelController_searchBlueprintModels_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api"
418 description: "Tag to search for"
424 description: "successful operation"
427 /api/v1/blueprint-model/workflow-spec:
430 - "Blueprint Model Catalog API"
431 summary: "Get Workflow Specification"
432 description: "Get the workflow of a blueprint identified by Blueprint and workflow\
433 \ name. Inputs, outputs and data types of workflow is returned."
434 operationId: "BlueprintModelController_workflowSpec_POST.org.onap.ccsdk.cds.blueprintsprocessor.designer.api"
444 $ref: "#/definitions/WorkFlowSpecRequest"
447 description: "successful operation"
450 /api/v1/blueprint-model/workflows/blueprint-name/{name}/version/{version}:
453 - "Blueprint Model Catalog API"
454 summary: "Get Workflows of a Blueprint"
455 description: "Get all available workflows of a Blueprint identified by its name\
457 operationId: "BlueprintModelController_getWorkflowList_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api"
463 description: "Name of the blueprint model"
466 x-example: "pnf_netconf"
469 description: "Version of the blueprint model"
475 description: "successful operation"
478 /api/v1/blueprint-model/{id}:
481 - "Blueprint Model Catalog API"
482 summary: "Get a Blueprint Model by ID"
483 description: "Get meta-data of a blueprint model by its internally created ID."
484 operationId: "BlueprintModelController_getBlueprintModel_GET.org.onap.ccsdk.cds.blueprintsprocessor.designer.api"
490 description: "ID of the blueprint model to search for"
493 x-example: "67ec1f96-ab55-4b81-aff9-23ee0ed1d7a4"
500 description: "Not Found"
503 - "Blueprint Model Catalog API"
504 summary: "Delete a Blueprint Model by ID"
505 description: "Delete a blueprint model by its ID. ID is the internally created\
506 \ ID of blueprint, not the name of blueprint."
507 operationId: "BlueprintModelController_deleteBlueprint_DELETE.org.onap.ccsdk.cds.blueprintsprocessor.designer.api"
511 description: "ID of the blueprint model to delete"
514 x-example: "67ec1f96-ab55-4b81-aff9-23ee0ed1d7a4"
521 description: "RESOURCE_NOT_FOUND"
526 BlueprintModelSearch:
539 example: "\"658f9a48-7f54-41ba-ae18-c69f26f3dc94\""
540 description: "ID of Blueprint model, is automatically created by CDS"
544 description: "Artifact UUID, usually null"
547 example: "\"SDNC_MODEL\""
548 description: "Artifact Type, usually null"
552 description: "Artifact Version, usually 1.0.0"
556 description: "Artifact Description, usually empty"
561 description: "Internal Version of CBA, usually null"
565 example: "\"2020-11-19T10:34:56.000Z\""
566 description: "Datetime of the creation of CBA in CDS"
569 example: "\"pnf_netconf\""
570 description: "Artifact Name, defined in Metadata"
573 example: "\"pnf_netconf\""
574 description: "Artifact Name, defined in Metadata"
577 example: "\"Deutsche Telekom AG\""
578 description: "Name of publisher, defined in Metadata"
582 description: "Tags to identify the CBA, defined in Metadata"
588 - "loadResourceDictionary"
593 description: "Specifies if default model types should be loaded"
594 loadResourceDictionary:
597 description: "Specifies if default data dictionaries should be loaded"
601 description: "Specifies if default blueprint models should be loaded"
624 $ref: "#/definitions/Sort"
631 $ref: "#/definitions/Pageable"
636 PageBlueprintModelSearch:
651 $ref: "#/definitions/BlueprintModelSearch"
656 $ref: "#/definitions/Sort"
663 $ref: "#/definitions/Pageable"
675 $ref: "#/definitions/Sort"
703 example: "\"pnf_netconf\""
704 description: "Name of the BLueprint"
711 example: "\"config-assign\""
712 description: "Name of the Workflow"