Update Swagger API version to 4.0.1
[externalapi/nbi.git] / docs / offeredapis / api_hub / model.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema xmlns:xmime="http://www.w3.org/2005/05/xmlmime"
3            xmlns="http://orange.com/ONAPNBI/api/hub/v4/model"
4            xmlns:xs="http://www.w3.org/2001/XMLSchema"
5            attributeFormDefault="unqualified"
6            elementFormDefault="qualified"
7            targetNamespace="http://orange.com/ONAPNBI/api/hub/v4/model">
8    <xs:annotation id="signature">
9       <xs:appinfo>API Designer</xs:appinfo>
10       <xs:documentation>Model: hub
11                     Version: 4.0.1
12                     Owner: ONAPNBI
13                     Generated on: 2019-03-12T16:45:33.51Z
14                     Generated by: Orange API Designer v2, model-v1</xs:documentation>
15    </xs:annotation>
16    <xs:element name="ErrorDetail" type="ErrorDetail"/>
17    <xs:complexType name="ErrorDetail">
18       <xs:sequence minOccurs="1" maxOccurs="1">
19          <xs:element name="code" type="xs:int" minOccurs="1"/>
20          <xs:element name="message" type="xs:string" minOccurs="1"/>
21          <xs:element name="description" type="xs:string" minOccurs="0"/>
22          <xs:element name="infoURL" type="xs:string" minOccurs="0"/>
23       </xs:sequence>
24    </xs:complexType>
25    <xs:element name="Error" type="Error"/>
26    <xs:complexType name="Error">
27       <xs:sequence minOccurs="1" maxOccurs="1">
28          <xs:element name="code" type="xs:int" minOccurs="1"/>
29          <xs:element name="message" type="xs:string" minOccurs="1"/>
30          <xs:element name="description" type="xs:string" minOccurs="0"/>
31          <xs:element name="infoURL" type="xs:string" minOccurs="0"/>
32          <xs:element name="details"
33                      type="ErrorDetail"
34                      minOccurs="0"
35                      maxOccurs="unbounded"/>
36       </xs:sequence>
37    </xs:complexType>
38    <xs:element name="HubIn" type="HubIn">
39       <xs:annotation>
40          <xs:documentation source="public"/>
41       </xs:annotation>
42    </xs:element>
43    <xs:complexType name="HubIn">
44       <xs:annotation>
45          <xs:documentation source="public"/>
46       </xs:annotation>
47       <xs:sequence minOccurs="1" maxOccurs="1">
48          <xs:element name="query" type="xs:string" minOccurs="1">
49             <xs:annotation>
50                <xs:documentation source="public">The query must have an eventType= information.\nOptionally a ? could be added to reduce hub.\nquery”:”eventType = ServiceOrderStateChangeNotification”&amp;serviceOrder.state=COMPLETED</xs:documentation>
51             </xs:annotation>
52          </xs:element>
53          <xs:element name="callback" type="xs:string" minOccurs="1">
54             <xs:annotation>
55                <xs:documentation source="public">URL where notification must be send</xs:documentation>
56             </xs:annotation>
57          </xs:element>
58       </xs:sequence>
59    </xs:complexType>
60    <xs:element name="Hub" type="Hub">
61       <xs:annotation>
62          <xs:documentation source="public"/>
63       </xs:annotation>
64    </xs:element>
65    <xs:complexType name="Hub">
66       <xs:annotation>
67          <xs:documentation source="public"/>
68       </xs:annotation>
69       <xs:sequence minOccurs="1" maxOccurs="1">
70          <xs:element name="id" type="xs:string" minOccurs="1"/>
71          <xs:element name="query" type="xs:string" minOccurs="1">
72             <xs:annotation>
73                <xs:documentation source="public">The query must have an eventType= information.\nOptionally a ? could be added to reduce hub.\nquery”:”eventType = ServiceOrderStateChangeNotification”&amp;serviceOrder.state=COMPLETED</xs:documentation>
74             </xs:annotation>
75          </xs:element>
76          <xs:element name="callback" type="xs:string" minOccurs="1">
77             <xs:annotation>
78                <xs:documentation source="public">URL where notification must be send</xs:documentation>
79             </xs:annotation>
80          </xs:element>
81       </xs:sequence>
82    </xs:complexType>
83 </xs:schema>