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 through a swagger file
12 which is automatically created during CDS build process by Swagger Maven Plugin. A corresponding Postman collection is
13 also included. Endpoints can also be described using this template
14 :download:`api-doc-template.rst <api-doc-template.rst>` but this is not the prefered way to describe the CDS API.
19 Use Basic athentification with `ccsdkapps` as a username and password, in Header ``Authorization: Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==``.
24 Here is the automatically created swagger file for CDS Blueprint Processor API:
25 :download:`cds-bp-processor-api-swagger.json <media/cds-bp-processor-api-swagger.json>`
26 :download:`cds-bp-processor-api-swagger.yaml <media/cds-bp-processor-api-swagger.yaml>`
28 You can find a postman collection including sample requests for all endpoints here:
29 :download:`bp-processor.postman_collection.json <media/bp-processor.postman_collection.json>`.
30 Please keep the Postman Collection up-to-date for new endpoints.
35 All endpoints are accessable under ``http://{{host}}:{{port}}/api/v1/``. Host and port depends on your CDS BP processor
42 Lists all available endpoints from blueprints processor API.
48 GET ``http://{{host}}:{{port}}/actuator/mappings``
49 ....................................................
51 Lists all endpoints from blueprints processor.
56 curl --location --request GET 'http://localhost:8081/actuator/mappings' \
57 --header 'Authorization: Basic Y2NzZGthcHBzOmNjc2RrYXBwcw=='
66 :caption: **sample response body**
72 "dispatcherHandlers": {
78 "predicate": "{GET /api/v1/blueprint-model, produces [application/json]}",
79 "handler": "org.onap.ccsdk.cds.blueprintsprocessor.designer.api.BlueprintModelController#allBlueprintModel()",
82 "className": "org.onap.ccsdk.cds.blueprintsprocessor.designer.api.BlueprintModelController",
83 "name": "allBlueprintModel",
84 "descriptor": "()Ljava/util/List;"
86 "handlerFunction": null,
87 "requestMappingConditions": {
95 "/api/v1/blueprint-model"
99 "mediaType": "application/json",
107 "predicate": "{GET /api/v1/blueprint-model/meta-data/{keyword}, produces [application/json]}",
108 "handler": "org.onap.ccsdk.cds.blueprintsprocessor.designer.api.BlueprintModelController#allBlueprintModelMetaData(String, Continuation)",
111 "className": "org.onap.ccsdk.cds.blueprintsprocessor.designer.api.BlueprintModelController",
112 "name": "allBlueprintModelMetaData",
113 "descriptor": "(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;"
115 "handlerFunction": null,
116 "requestMappingConditions": {
124 "/api/v1/blueprint-model/meta-data/{keyword}"
128 "mediaType": "application/json",
151 In the used Sphinx plugin `sphinxcontrib-swaggerdoc` some information of the swagger file is not
152 rendered completely, e.g. the request body. Use your favorite Swagger Editor and paste the swagger file
153 to get a complete view of the API reference, e.g. on https://editor.swagger.io/.
155 .. swaggerv2doc:: media/cds-bp-processor-api-swagger.json