POST WEYIServer/Register

Process New Server Registration Request. When a new server is launched online, it needs to register itself to all existing servers in the WEYI distributed network.

Request Information

URI Parameters

None.

Body Parameters

ParaWebServer
NameDescriptionTypeAdditional information
URL

string

None.

Info

ParaWebServerInfo

None.

SecurityItem

ParaWebServerSecurity

None.

Request Formats

application/json, text/json

Sample:
{
  "URL": "sample string 1",
  "Info": {
    "Available": true,
    "AuthKey": "sample string 1",
    "PublicKey": "sample string 2",
    "PersonPreferredCountryList": [
      {
        "CountryCode": "sample string 1",
        "PreferenceLevel": 2
      },
      {
        "CountryCode": "sample string 1",
        "PreferenceLevel": 2
      }
    ],
    "PersonPreferredRegionList": [
      {
        "RegionId": 1,
        "PreferenceLevel": 2
      },
      {
        "RegionId": 1,
        "PreferenceLevel": 2
      }
    ],
    "ProviderPreferredCountryList": [
      {
        "CountryCode": "sample string 1",
        "PreferenceLevel": 2
      },
      {
        "CountryCode": "sample string 1",
        "PreferenceLevel": 2
      }
    ],
    "ProviderPreferredRegionList": [
      {
        "RegionId": 1,
        "PreferenceLevel": 2
      },
      {
        "RegionId": 1,
        "PreferenceLevel": 2
      }
    ],
    "TotalPersonCnt": 1,
    "ActivePersonCnt": 1,
    "TotalProviderCnt": 1,
    "ActiveProviderCnt": 1,
    "TransactionCnt": 1,
    "CapacityLevel": 1
  },
  "SecurityItem": {
    "GlobalId": 1,
    "AuthKeyFrom": "sample string 2",
    "AuthKeyTo": "sample string 3"
  }
}

application/xml, text/xml

Sample:
<ParaWebServer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
  <SecurityItem>
    <AuthKeyFrom>sample string 2</AuthKeyFrom>
    <AuthKeyTo>sample string 3</AuthKeyTo>
    <GlobalId>1</GlobalId>
  </SecurityItem>
  <Info>
    <ActivePersonCnt>1</ActivePersonCnt>
    <ActiveProviderCnt>1</ActiveProviderCnt>
    <AuthKey>sample string 1</AuthKey>
    <Available>true</Available>
    <CapacityLevel>1</CapacityLevel>
    <PersonPreferredCountryList>
      <ParaWebServerPreferredCountry>
        <CountryCode>sample string 1</CountryCode>
        <PreferenceLevel>2</PreferenceLevel>
      </ParaWebServerPreferredCountry>
      <ParaWebServerPreferredCountry>
        <CountryCode>sample string 1</CountryCode>
        <PreferenceLevel>2</PreferenceLevel>
      </ParaWebServerPreferredCountry>
    </PersonPreferredCountryList>
    <PersonPreferredRegionList>
      <ParaWebServerPreferredRegion>
        <PreferenceLevel>2</PreferenceLevel>
        <RegionId>1</RegionId>
      </ParaWebServerPreferredRegion>
      <ParaWebServerPreferredRegion>
        <PreferenceLevel>2</PreferenceLevel>
        <RegionId>1</RegionId>
      </ParaWebServerPreferredRegion>
    </PersonPreferredRegionList>
    <ProviderPreferredCountryList>
      <ParaWebServerPreferredCountry>
        <CountryCode>sample string 1</CountryCode>
        <PreferenceLevel>2</PreferenceLevel>
      </ParaWebServerPreferredCountry>
      <ParaWebServerPreferredCountry>
        <CountryCode>sample string 1</CountryCode>
        <PreferenceLevel>2</PreferenceLevel>
      </ParaWebServerPreferredCountry>
    </ProviderPreferredCountryList>
    <ProviderPreferredRegionList>
      <ParaWebServerPreferredRegion>
        <PreferenceLevel>2</PreferenceLevel>
        <RegionId>1</RegionId>
      </ParaWebServerPreferredRegion>
      <ParaWebServerPreferredRegion>
        <PreferenceLevel>2</PreferenceLevel>
        <RegionId>1</RegionId>
      </ParaWebServerPreferredRegion>
    </ProviderPreferredRegionList>
    <PublicKey>sample string 2</PublicKey>
    <TotalPersonCnt>1</TotalPersonCnt>
    <TotalProviderCnt>1</TotalProviderCnt>
    <TransactionCnt>1</TransactionCnt>
  </Info>
  <URL>sample string 1</URL>
</ParaWebServer>

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.