blob: 34a087b85c52f6b849d8cdb13f121e3f5778c944 [file] [log] [blame]
niamhcorec1904c12021-10-11 16:38:53 +01001openapi: 3.0.1
2info:
3 title: NCMP Inventory API
4 description: NCMP Inventory API
5 version: "1.0"
6servers:
DylanB95EST63132ce2021-12-14 16:34:38 +00007- url: /ncmpInventory
niamhcorec1904c12021-10-11 16:38:53 +01008paths:
9 /v1/ch:
10 post:
11 tags:
DylanB95EST63132ce2021-12-14 16:34:38 +000012 - network-cm-proxy-inventory
niamhcorec1904c12021-10-11 16:38:53 +010013 summary: DMI notifies NCMP of new CM Handles
14 description: "Register a DMI Plugin with any new, updated or removed CM Handles."
15 operationId: updateDmiPluginRegistration
16 requestBody:
17 content:
18 application/json:
19 schema:
20 $ref: '#/components/schemas/RestDmiPluginRegistration'
21 required: true
22 responses:
mpriyank80dee972022-02-23 15:17:23 +053023 "204":
24 description: No Content
niamhcorec1904c12021-10-11 16:38:53 +010025 content: {}
26 "400":
27 description: Bad Request
28 content:
29 application/json:
30 schema:
31 $ref: '#/components/schemas/ErrorMessage'
DylanB95EST63132ce2021-12-14 16:34:38 +000032 example:
33 status: 400 BAD_REQUEST
34 message: Bad request error message
35 details: Bad request error details
niamhcorec1904c12021-10-11 16:38:53 +010036 "401":
37 description: Unauthorized
38 content:
39 application/json:
40 schema:
41 $ref: '#/components/schemas/ErrorMessage'
DylanB95EST63132ce2021-12-14 16:34:38 +000042 example:
43 status: 401
44 message: Unauthorized error message
45 details: Unauthorized error details
niamhcorec1904c12021-10-11 16:38:53 +010046 "403":
47 description: Forbidden
48 content:
49 application/json:
50 schema:
51 $ref: '#/components/schemas/ErrorMessage'
DylanB95EST63132ce2021-12-14 16:34:38 +000052 example:
53 status: 403
54 message: Forbidden error message
55 details: Forbidden error details
niamhcorec1904c12021-10-11 16:38:53 +010056components:
57 schemas:
58 RestDmiPluginRegistration:
59 type: object
60 properties:
61 dmiPlugin:
62 type: string
DylanB95EST63132ce2021-12-14 16:34:38 +000063 example: my-dmi-plugin
64 dmiDataPlugin:
65 type: string
66 example: my-dmi-data-plugin
67 dmiModelPlugin:
68 type: string
69 example: my-dmi-model-plugin
niamhcorec1904c12021-10-11 16:38:53 +010070 createdCmHandles:
71 type: array
72 items:
73 $ref: '#/components/schemas/RestCmHandle'
74 updatedCmHandles:
75 type: array
76 items:
77 $ref: '#/components/schemas/RestCmHandle'
78 removedCmHandles:
79 type: array
80 items:
81 type: string
DylanB95EST63132ce2021-12-14 16:34:38 +000082 example: "[\"my-cm-handle1\",\"my-cm-handle2\",\"my-cm-handle3\"]"
niamhcorec1904c12021-10-11 16:38:53 +010083 RestCmHandle:
84 required:
DylanB95EST63132ce2021-12-14 16:34:38 +000085 - cmHandle
niamhcorec1904c12021-10-11 16:38:53 +010086 type: object
87 properties:
88 cmHandle:
89 type: string
DylanB95EST63132ce2021-12-14 16:34:38 +000090 example: my-cm-handle
niamhcorec1904c12021-10-11 16:38:53 +010091 cmHandleProperties:
DylanB95EST63132ce2021-12-14 16:34:38 +000092 $ref: '#/components/schemas/RestCmHandleProperties'
93 publicCmHandleProperties:
94 $ref: '#/components/schemas/RestCmHandleProperties'
95 RestCmHandleProperties:
niamhcorec1904c12021-10-11 16:38:53 +010096 type: object
97 additionalProperties:
98 type: string
DylanB95EST63132ce2021-12-14 16:34:38 +000099 example: my-property
niamhcorec1904c12021-10-11 16:38:53 +0100100 ErrorMessage:
101 title: Error
102 type: object
103 properties:
104 status:
105 type: string
106 message:
107 type: string
108 details:
109 type: string