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"
28 url: "/redoc/logo.png"
29 backgroundColor: "#FFFFFF"
30 host: "api.orange.com"
35 - "application/json;charset=utf-8"
38 description: "provided by NBI"
45 - "application/json;charset=utf-8"
47 - "application/json;charset=utf-8"
48 operationId: "hubCreate"
58 $ref: "#/definitions/HubIn"
61 description: "Created"
63 $ref: "#/definitions/Hub"
68 - "application/json;charset=utf-8"
69 operationId: "hubFind"
79 $ref: "#/definitions/Hub"
85 - "application/json;charset=utf-8"
99 $ref: "#/definitions/Hub"
103 operationId: "hubDelete"
104 summary: "delete hub"
114 description: "No Content"
159 $ref: "#/definitions/ErrorDetail"
168 description: "The query must have an eventType= information.\\nOptionally\
169 \ a ? could be added to reduce hub.\\nquery”:”eventType = ServiceOrderStateChangeNotification”\
170 &serviceOrder.state=COMPLETED"
173 description: "URL where notification must be send"
187 description: "The query must have an eventType= information.\\nOptionally\
188 \ a ? could be added to reduce hub.\\nquery”:”eventType = ServiceOrderStateChangeNotification”\
189 &serviceOrder.state=COMPLETED"
192 description: "URL where notification must be send"