blob: 30896f606820dffcb9244d885ee06bc223bc3f1b [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
DylanB95ESTe5573382022-01-27 17:12:52 +000056 "500":
57 description: Internal Server Error
58 content:
59 application/json:
60 schema:
61 $ref: '#/components/schemas/ErrorMessage'
62 example:
63 status: 500
64 message: Internal Server Error
65 details: Internal Server Error occurred
niamhcorec1904c12021-10-11 16:38:53 +010066components:
67 schemas:
68 RestDmiPluginRegistration:
69 type: object
70 properties:
71 dmiPlugin:
72 type: string
DylanB95EST63132ce2021-12-14 16:34:38 +000073 example: my-dmi-plugin
DylanB95ESTe5573382022-01-27 17:12:52 +000074 default: ""
DylanB95EST63132ce2021-12-14 16:34:38 +000075 dmiDataPlugin:
76 type: string
77 example: my-dmi-data-plugin
DylanB95ESTe5573382022-01-27 17:12:52 +000078 default: ""
DylanB95EST63132ce2021-12-14 16:34:38 +000079 dmiModelPlugin:
80 type: string
81 example: my-dmi-model-plugin
DylanB95ESTe5573382022-01-27 17:12:52 +000082 default: ""
niamhcorec1904c12021-10-11 16:38:53 +010083 createdCmHandles:
84 type: array
85 items:
DylanB95ESTe5573382022-01-27 17:12:52 +000086 $ref: '#/components/schemas/RestInputCmHandle'
niamhcorec1904c12021-10-11 16:38:53 +010087 updatedCmHandles:
88 type: array
89 items:
DylanB95ESTe5573382022-01-27 17:12:52 +000090 $ref: '#/components/schemas/RestInputCmHandle'
niamhcorec1904c12021-10-11 16:38:53 +010091 removedCmHandles:
92 type: array
Bruno Sakotoa1129b62022-03-15 08:09:07 -040093 example:
94 - my-cm-handle1
95 - my-cm-handle2
96 - my-cm-handle3
niamhcorec1904c12021-10-11 16:38:53 +010097 items:
98 type: string
DylanB95ESTe5573382022-01-27 17:12:52 +000099 RestInputCmHandle:
niamhcorec1904c12021-10-11 16:38:53 +0100100 required:
DylanB95EST63132ce2021-12-14 16:34:38 +0000101 - cmHandle
niamhcorec1904c12021-10-11 16:38:53 +0100102 type: object
103 properties:
104 cmHandle:
105 type: string
DylanB95EST63132ce2021-12-14 16:34:38 +0000106 example: my-cm-handle
niamhcorec1904c12021-10-11 16:38:53 +0100107 cmHandleProperties:
DylanB95EST63132ce2021-12-14 16:34:38 +0000108 $ref: '#/components/schemas/RestCmHandleProperties'
109 publicCmHandleProperties:
110 $ref: '#/components/schemas/RestCmHandleProperties'
111 RestCmHandleProperties:
niamhcorec1904c12021-10-11 16:38:53 +0100112 type: object
113 additionalProperties:
114 type: string
DylanB95EST63132ce2021-12-14 16:34:38 +0000115 example: my-property
niamhcorec1904c12021-10-11 16:38:53 +0100116 ErrorMessage:
117 title: Error
118 type: object
119 properties:
120 status:
121 type: string
122 message:
123 type: string
124 details:
125 type: string