1 # Copyright (c) 2018 Orange
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.swagger: "2.0"
16 description: "Provides the ability to subscribe to and unsubscribe from External\
17 \ API notifications.\n\n**Main operation**\n\n```\nPOST /hub\n```\n\nrequest sample\
18 \ 1\n\n```\n{\n \"callback\": \"http://mydomain/notification\",\n \"query\"\
19 : \"eventType = ServiceOrderCreationNotification\"\n}\n```\n\nrequest sample 2\n\
20 \n```\n{\n \"callback\": \"http://mydomain/notification\",\n \"query\": \"eventType=ServiceOrderCreationNotification,ServiceOrderStateChangeNotification\"\
21 \n}\n```\n\n**EventType for serviceOrdering**\n\n- ServiceOrderCreationNotification\n\
22 - ServiceOrderStateChangeNotification\n- ServiceOrderItemStateChangeNotification\n\
23 \n**EventType for serviceInventory**\n\n- ServiceCreationNotification\n- ServiceAttributeValueChangeNotification\n\
24 - ServiceRemoveNotification\n\n"
29 url: "https://onap.readthedocs.io"
30 email: "onap-discuss@lists.onap.org"
33 url: "http://www.apache.org/licenses/LICENSE-2.0"
34 x-planned-retirement-date: "205001"
37 url: "/redoc/logo.png"
38 backgroundColor: "#FFFFFF"
39 host: "serverRoot:30274"
40 basePath: "/nbi/api/v4"
45 - "application/json;charset=utf-8"
48 description: "provided by NBI"
52 last-mod-release: "Frankfurt"
58 - "application/json;charset=utf-8"
60 - "application/json;charset=utf-8"
61 operationId: "hub_Create"
71 $ref: "#/definitions/HubIn"
74 description: "Created"
76 $ref: "#/definitions/Hub"
81 - "application/json;charset=utf-8"
82 operationId: "hub_Find"
92 $ref: "#/definitions/Hub"
98 - "application/json;charset=utf-8"
99 operationId: "hub_Get"
112 $ref: "#/definitions/Hub"
116 operationId: "hub_Delete"
117 summary: "delete hub"
127 description: "No Content"
130 description: "Error code and message"
150 description: "Error code and description"
172 $ref: "#/definitions/ErrorDetail"
174 description: "Query and callback"
181 description: "The query must have an eventType= information.\\nOptionally\
182 \ a ? could be added to reduce hub.\\nquery”:”eventType = ServiceOrderStateChangeNotification”\
183 &serviceOrder.state=COMPLETED"
186 description: "URL where notification must be send"
189 description: "Hub id, callback and query"
200 description: "The query must have an eventType= information.\\nOptionally\
201 \ a ? could be added to reduce hub.\\nquery”:”eventType = ServiceOrderStateChangeNotification”\
202 &serviceOrder.state=COMPLETED"
205 description: "URL where notification must be send"