3 "basePath": "/onboarding",
9 "description": "Internal Server Error"
12 "description": "Component already exists",
14 "$ref": "#/definitions/Error message"
18 "description": "Bad Request",
20 "$ref": "#/definitions/Error message"
24 "description": "Success",
26 "$ref": "#/definitions/Component post"
30 "description": "Add a Component to the Catalog",
31 "operationId": "post_component",
37 "$ref": "#/definitions/Component Spec"
44 "description": "An optional fields mask to support partial object fetching - https://flask-restplus.readthedocs.io/en/stable/mask.html"
46 "tags": ["onboarding"]
51 "description": "Internal Server Error"
54 "description": "Success",
56 "$ref": "#/definitions/Component List"
60 "description": "Get list of Components in the catalog",
61 "operationId": "get_components",
66 "description": "Name of component to filter for"
71 "description": "Version of component to filter for"
77 "description": "An optional fields mask to support partial object fetching - https://flask-restplus.readthedocs.io/en/stable/mask.html"
79 "tags": ["onboarding"]
82 "/components/{component_id}": {
84 "name": "component_id",
92 "description": "Internal Server Error"
95 "description": "Component not found in Catalog",
97 "$ref": "#/definitions/Error message"
101 "description": "Bad Request",
103 "$ref": "#/definitions/Error message"
107 "description": "Success, Component replaced"
110 "description": "Replace a Component Spec in the Catalog",
111 "operationId": "put_component",
117 "$ref": "#/definitions/Component Spec"
120 "tags": ["onboarding"]
125 "description": "Internal Server Error"
128 "description": "Component not found in Catalog",
130 "$ref": "#/definitions/Error message"
134 "description": "Success",
136 "$ref": "#/definitions/component fields by id"
140 "description": "Get a Component",
141 "operationId": "get_component",
147 "description": "An optional fields mask to support partial object fetching - https://flask-restplus.readthedocs.io/en/stable/mask.html"
149 "tags": ["onboarding"]
154 "description": "Internal Server Error"
157 "description": "Component not found in Catalog",
159 "$ref": "#/definitions/Error message"
163 "description": "Forbidden Request",
165 "$ref": "#/definitions/Error message"
169 "description": "Bad Request",
171 "$ref": "#/definitions/Error message"
175 "description": "Success, Component status updated"
178 "description": "Update a Component's status in the Catalog",
179 "operationId": "patch_component",
185 "$ref": "#/definitions/Patch Spec"
188 "tags": ["onboarding"]
195 "description": "Internal Server Error"
198 "description": "Data Format already exists",
200 "$ref": "#/definitions/Error message"
204 "description": "Bad Request",
206 "$ref": "#/definitions/Error message"
210 "description": "Success",
212 "$ref": "#/definitions/Data Format post"
216 "description": "Add a Data Format to the Catalog",
217 "operationId": "post_dataformat",
223 "$ref": "#/definitions/Data Format Spec"
230 "description": "An optional fields mask to support partial object fetching - https://flask-restplus.readthedocs.io/en/stable/mask.html"
232 "tags": ["onboarding"]
237 "description": "Internal Server Error"
240 "description": "Success",
242 "$ref": "#/definitions/Data Format List"
246 "description": "Get list of Data Formats in the catalog",
247 "operationId": "get_dataformats",
253 "description": "An optional fields mask to support partial object fetching - https://flask-restplus.readthedocs.io/en/stable/mask.html"
255 "tags": ["onboarding"]
258 "/dataformats/{dataformat_id}": {
260 "name": "dataformat_id",
268 "description": "Internal Server Error"
271 "description": "Data Format not found in Catalog",
273 "$ref": "#/definitions/Error message"
277 "description": "Bad Request",
279 "$ref": "#/definitions/Error message"
283 "description": "Success, Data Format added"
286 "description": "Replace a Data Format Spec in the Catalog",
287 "operationId": "put_dataformat",
293 "$ref": "#/definitions/Data Format Spec"
296 "tags": ["onboarding"]
301 "description": "Internal Server Error"
304 "description": "Data Format not found in Catalog",
306 "$ref": "#/definitions/Error message"
310 "description": "Success",
312 "$ref": "#/definitions/dataformat fields by id"
316 "description": "Get a Data Format",
317 "operationId": "get_dataformat",
323 "description": "An optional fields mask to support partial object fetching - https://flask-restplus.readthedocs.io/en/stable/mask.html"
325 "tags": ["onboarding"]
330 "description": "Internal Server Error"
333 "description": "Data Format not found in Catalog",
335 "$ref": "#/definitions/Error message"
339 "description": "Forbidden Request",
341 "$ref": "#/definitions/Error message"
345 "description": "Bad Request",
347 "$ref": "#/definitions/Error message"
351 "description": "Success, Data Format status updated"
354 "description": "Update a Data Format's status in the Catalog",
355 "operationId": "patch_dataformat",
361 "$ref": "#/definitions/Patch Spec"
364 "tags": ["onboarding"]
369 "title": "DCAE Onboarding HTTP API",
372 "produces": ["application/json"],
373 "consumes": ["application/json"],
375 "name": "onboarding",
376 "description": "Default namespace"
386 "description": "The Component Spec schema is here -> https://git.onap.org/dcaegen2/platform/cli/plain/component-json-schemas/component-specification/dcae-cli-v2/component-spec-schema.json"
394 "description": ". . . . .Details about the unsuccessful API request"
400 "required": ["componentUrl"],
404 "description": ". . . . Url to the Component Specification"
414 "$ref": "#/definitions/component fields"
420 "component fields": {
421 "required": ["componentType", "componentUrl", "description", "id", "modified", "name", "owner", "status", "version", "whenAdded"],
425 "description": ". . . . ID of the component"
429 "description": ". . . . Name of the component"
433 "description": ". . . . Version of the component"
437 "description": ". . . . ID of who added the component"
441 "format": "date-time",
442 "description": ". . . . When component was added to the Catalog"
446 "format": "date-time",
447 "description": ". . . . When component was last modified"
451 "description": ". . . . Status of the component"
455 "description": ". . . . Description of the component"
459 "description": ". . . . only \"docker\""
463 "description": ". . . . Url to the Component Specification"
469 "required": ["owner", "status"],
473 "description": "User ID"
477 "description": ". . . . .[published] is the only status change supported right now",
478 "example": "published",
479 "enum": ["published", "revoked"]
484 "component fields by id": {
486 "$ref": "#/definitions/component fields"
488 "required": ["spec"],
492 "description": "The Component Specification (json)"
498 "Data Format Spec": {
505 "description": "The Data Format Spec schema is here -> https://git.onap.org/dcaegen2/platform/cli/plain/component-json-schemas/data-format/dcae-cli-v1/data-format-schema.json"
509 "Data Format post": {
510 "required": ["dataFormatUrl"],
514 "description": ". . . . Url to the Data Format Specification"
519 "Data Format List": {
524 "$ref": "#/definitions/dataformat fields"
530 "dataformat fields": {
531 "required": ["dataFormatUrl", "description", "id", "modified", "name", "owner", "status", "version", "whenAdded"],
535 "description": ". . . . ID of the data format"
539 "description": ". . . . Name of the data format"
543 "description": ". . . . Version of the data format"
547 "description": ". . . . ID of who added the data format"
551 "format": "date-time",
552 "description": ". . . . When data format was added to the Catalog"
556 "format": "date-time",
557 "description": ". . . . When data format was last modified"
561 "description": ". . . . Status of the data format"
565 "description": ". . . . Description of the data format"
569 "description": ". . . . Url to the Data Format Specification"
574 "dataformat fields by id": {
576 "$ref": "#/definitions/dataformat fields"
578 "required": ["spec"],
582 "description": "The Data Format Specification (json)"
591 "description": "When a mask can't be parsed"
594 "description": "When any error occurs on mask"