GET api/NamebayNameServer?user={user}
Return list of namebay name servers
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| user |
Optional user handle - if empty logged in user will be used |
string |
None. |
Body Parameters
None.
Response Information
Resource Description
NamebayNS object list on success
Collection of errors on failure
Return codes
200 - ok
300 - ambiguous
400 - bad request
401 - unauthorized
404 - not found
500 - internal server error
| Name | Description | Type | Additional information |
|---|---|---|---|
| Name |
NS name |
string |
None. |
| NbNs |
Is namebay name server |
boolean |
None. |
| Root |
Is namebay root name server |
boolean |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Name": "sample string 1",
"NbNs": true,
"Root": true
},
{
"Name": "sample string 1",
"NbNs": true,
"Root": true
}
]
application/xml, text/xml
Sample:
<ArrayOfNamebayNS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Domain">
<NamebayNS>
<Name>sample string 1</Name>
<NbNs>true</NbNs>
<Root>true</Root>
</NamebayNS>
<NamebayNS>
<Name>sample string 1</Name>
<NbNs>true</NbNs>
<Root>true</Root>
</NamebayNS>
</ArrayOfNamebayNS>