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>`
27 You can find a postman collection including sample requests for all endpoints here:
28 :download:`bp-processor.postman_collection.json <media/bp-processor.postman_collection.json>`.
29 Please keep the Postman Collection up-to-date for new endpoints.
34 All endpoints are accessable under ``http://{{host}}:{{port}}/api/v1/``. Host and port depends on your CDS BP processor
41 Lists all available endpoints from blueprints processor API.
47 GET ``http://{{host}}:{{port}}/actuator/mappings``
48 ....................................................
50 Lists all endpoints from blueprints processor.
55 curl --location --request GET 'http://localhost:8081/actuator/mappings' \
56 --header 'Authorization: Basic Y2NzZGthcHBzOmNjc2RrYXBwcw=='
65 :caption: **sample response body**
71 "dispatcherHandlers": {
77 "predicate": "{GET /api/v1/blueprint-model, produces [application/json]}",
78 "handler": "org.onap.ccsdk.cds.blueprintsprocessor.designer.api.BlueprintModelController#allBlueprintModel()",
81 "className": "org.onap.ccsdk.cds.blueprintsprocessor.designer.api.BlueprintModelController",
82 "name": "allBlueprintModel",
83 "descriptor": "()Ljava/util/List;"
85 "handlerFunction": null,
86 "requestMappingConditions": {
94 "/api/v1/blueprint-model"
98 "mediaType": "application/json",
106 "predicate": "{GET /api/v1/blueprint-model/meta-data/{keyword}, produces [application/json]}",
107 "handler": "org.onap.ccsdk.cds.blueprintsprocessor.designer.api.BlueprintModelController#allBlueprintModelMetaData(String, Continuation)",
110 "className": "org.onap.ccsdk.cds.blueprintsprocessor.designer.api.BlueprintModelController",
111 "name": "allBlueprintModelMetaData",
112 "descriptor": "(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;"
114 "handlerFunction": null,
115 "requestMappingConditions": {
123 "/api/v1/blueprint-model/meta-data/{keyword}"
127 "mediaType": "application/json",
150 In the used Sphinx plugin `sphinxcontrib-swaggerdoc` some information of the swagger file is not
151 rendered completely, e.g. the request body. Use your favorite Swagger Editor and paste the swagger file
152 to get a complete view of the API reference, e.g. on https://editor.swagger.io/.
154 .. swaggerv2doc:: media/cds-bp-processor-api-swagger.json