Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
api_reference-added missing field in sippeer create request. Removed …
Browse files Browse the repository at this point in the history
…sippeer's response on POST, it doesn't have it only status code. (#746)
  • Loading branch information
maksymmateiuk authored Sep 28, 2022
1 parent 3b1a42f commit d7b152c
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions site/specs-temp/numbers.json
Original file line number Diff line number Diff line change
Expand Up @@ -14968,15 +14968,26 @@
]
}
}
},
"SsSendToCustomer": {
"type": "string",
"enum": [
"NONE",
"VERSTAT",
"ENH_VERSTAT",
"VERSTAT_AND_IDENTITY",
"ENH_VERSTAT_AND_IDENTITY",
"IDENTITY"
]
}
}
},
"examples": {
"With VoiceHosts": {
"value": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<SipPeer>\n <PeerName>name</PeerName>\n <Description>description</Description>\n <IsDefaultPeer>false</IsDefaultPeer>\n <FinalDestinationUri>uri</FinalDestinationUri>\n <VoiceHosts>\n <Host>\n <HostName>10.10.10.1</HostName>\n </Host>\n <Host>\n <HostName>10.10.10.2</HostName>\n </Host>\n </VoiceHosts>\n <TerminationHosts>\n <TerminationHost>\n <HostName>2.1.1.9</HostName>\n <Port>0</Port>\n <CustomerTrafficAllowed>DOMESTIC</CustomerTrafficAllowed>\n </TerminationHost>\n <TerminationHost>\n <HostName>2.1.1.96/30</HostName>\n <Port>0</Port>\n <CustomerTrafficAllowed>DOMESTIC</CustomerTrafficAllowed>\n </TerminationHost>\n </TerminationHosts>\n <Address>\n <HouseNumber>1600</HouseNumber>\n <HouseSuffix />\n <PreDirectional />\n <StreetName>PENNSYLVANIA AVE NW</StreetName>\n <StreetSuffix />\n <PostDirectional />\n <AddressLine2 />\n <City>WASHINGTON</City>\n <StateCode>DC</StateCode>\n <Zip>20500</Zip>\n <PlusFour />\n <County />\n <Country>United States</Country>\n <AddressType>Service</AddressType>\n </Address>\n <PremiseTrunks>PremiseTrunks</PremiseTrunks>\n <CallingName>\n <Display>true</Display>\n <Enforced>true</Enforced>\n </CallingName>\n</SipPeer>"
"value": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<SipPeer>\n <PeerName>name</PeerName>\n <Description>description</Description>\n <IsDefaultPeer>false</IsDefaultPeer>\n <FinalDestinationUri>uri</FinalDestinationUri>\n <VoiceHosts>\n <Host>\n <HostName>10.10.10.1</HostName>\n </Host>\n <Host>\n <HostName>10.10.10.2</HostName>\n </Host>\n </VoiceHosts>\n <TerminationHosts>\n <TerminationHost>\n <HostName>2.1.1.9</HostName>\n <Port>0</Port>\n <CustomerTrafficAllowed>DOMESTIC</CustomerTrafficAllowed>\n </TerminationHost>\n <TerminationHost>\n <HostName>2.1.1.96/30</HostName>\n <Port>0</Port>\n <CustomerTrafficAllowed>DOMESTIC</CustomerTrafficAllowed>\n </TerminationHost>\n </TerminationHosts>\n <Address>\n <HouseNumber>1600</HouseNumber>\n <HouseSuffix />\n <PreDirectional />\n <StreetName>PENNSYLVANIA AVE NW</StreetName>\n <StreetSuffix />\n <PostDirectional />\n <AddressLine2 />\n <City>WASHINGTON</City>\n <StateCode>DC</StateCode>\n <Zip>20500</Zip>\n <PlusFour />\n <County />\n <Country>United States</Country>\n <AddressType>Service</AddressType>\n </Address>\n <PremiseTrunks>PremiseTrunks</PremiseTrunks>\n <CallingName>\n <Display>true</Display>\n <Enforced>true</Enforced>\n </CallingName>\n <SsSendToCustomer>NONE</SsSendToCustomer>\n</SipPeer>"
},
"With VoiceHostGroups": {
"value": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<SipPeer>\n <PeerName>name</PeerName>\n <Description>description</Description>\n <IsDefaultPeer>false</IsDefaultPeer>\n <FinalDestinationUri>uri</FinalDestinationUri>\n <VoiceHostGroups>\n <VoiceHostGroup>\n <Host>\n <HostName>10.10.10.1</HostName>\n </Host>\n <Host>\n <HostName>10.10.10.2</HostName>\n </Host>\n </VoiceHostGroup>\n </VoiceHostGroups>\n <TerminationHosts>\n <TerminationHost>\n <HostName>2.1.1.9</HostName>\n <Port>0</Port>\n <CustomerTrafficAllowed>DOMESTIC</CustomerTrafficAllowed>\n </TerminationHost>\n <TerminationHost>\n <HostName>2.1.1.96/30</HostName>\n <Port>0</Port>\n <CustomerTrafficAllowed>DOMESTIC</CustomerTrafficAllowed>\n </TerminationHost>\n </TerminationHosts>\n</SipPeer>"
"value": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<SipPeer>\n <PeerName>name</PeerName>\n <Description>description</Description>\n <IsDefaultPeer>false</IsDefaultPeer>\n <FinalDestinationUri>uri</FinalDestinationUri>\n <VoiceHostGroups>\n <VoiceHostGroup>\n <Host>\n <HostName>10.10.10.1</HostName>\n </Host>\n <Host>\n <HostName>10.10.10.2</HostName>\n </Host>\n </VoiceHostGroup>\n </VoiceHostGroups>\n <TerminationHosts>\n <TerminationHost>\n <HostName>2.1.1.9</HostName>\n <Port>0</Port>\n <CustomerTrafficAllowed>DOMESTIC</CustomerTrafficAllowed>\n </TerminationHost>\n <TerminationHost>\n <HostName>2.1.1.96/30</HostName>\n <Port>0</Port>\n <CustomerTrafficAllowed>DOMESTIC</CustomerTrafficAllowed>\n </TerminationHost>\n </TerminationHosts>\n <SsSendToCustomer>NONE</SsSendToCustomer>\n</SipPeer>"
}
}
}
Expand All @@ -14986,16 +14997,6 @@
"201": {
"description": "Sip Peer created",
"content": {
"application/xml": {
"examples": {
"example": {
"value": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<SipPeerResponse>\n <SipPeer>\n <PeerId>304985</PeerId>\n <PeerName>CNAM-TEST-778</PeerName>\n <Description>description</Description>\n <IsDefaultPeer>false</IsDefaultPeer>\n <VoiceHosts />\n <VoiceHostGroups />\n <TerminationHosts />\n <Address>\n <HouseNumber>1600</HouseNumber>\n <HouseSuffix />\n <PreDirectional />\n <StreetName>PENNSYLVANIA AVE NW</StreetName>\n <StreetSuffix />\n <PostDirectional />\n <AddressLine2 />\n <City>Washington</City>\n <StateCode>DC</StateCode>\n <Zip>20500</Zip>\n <PlusFour />\n <County />\n <Country>United States</Country>\n <AddressType>Service</AddressType>\n </Address>\n <CallingName>\n <Display>false</Display>\n <Enforced>false</Enforced>\n </CallingName>\n </SipPeer>\n</SipPeerResponse>"
}
},
"schema": {
"$ref": "#/components/schemas/SipPeerResponse"
}
}
}
},
"400": {
Expand Down Expand Up @@ -29655,7 +29656,7 @@
"SipPeerResponseBadRequest": {
"type": "object",
"properties": {
"ResponseStatus": {
"SipPeerResponse": {
"$ref": "#/components/schemas/ResponseStatus"
}
}
Expand Down

0 comments on commit d7b152c

Please sign in to comment.