GET Super/UserAccountChooser/LoadAll?SessionId={SessionId}&CompanyId={CompanyId}&searchKey={searchKey}&cid={cid}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
SessionId

string

None.

CompanyId

integer

None.

searchKey

string

Required

cid

integer

Default value is -1

Body Parameters

None.

Response Information

Resource Description

ListReplyOfUserAccountChooserView
NameDescriptionTypeAdditional information
total

integer

None.

data

Collection of UserAccountChooserView

None.

errorCode

integer

None.

error

string

None.

top

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "data": [
    {
      "account": {
        "companyName": "sample string 1",
        "id": 2,
        "username": "sample string 3",
        "companyId": 4
      },
      "toAccount": {
        "companyName": "sample string 1",
        "id": 2,
        "username": "sample string 3",
        "companyId": 4
      },
      "id": 1,
      "accountId": 2,
      "toCompanyId": 3,
      "toAccountId": 4,
      "companyId": 5,
      "toCompanyName": "sample string 6"
    },
    {
      "account": {
        "companyName": "sample string 1",
        "id": 2,
        "username": "sample string 3",
        "companyId": 4
      },
      "toAccount": {
        "companyName": "sample string 1",
        "id": 2,
        "username": "sample string 3",
        "companyId": 4
      },
      "id": 1,
      "accountId": 2,
      "toCompanyId": 3,
      "toAccountId": 4,
      "companyId": 5,
      "toCompanyName": "sample string 6"
    }
  ],
  "errorCode": 1,
  "error": "sample string 2",
  "top": 3,
  "total": 2
}

text/javascript

Sample:
{"data":[{"account":{"companyName":"sample string 1","id":2,"username":"sample string 3","companyId":4},"toAccount":{"companyName":"sample string 1","id":2,"username":"sample string 3","companyId":4},"id":1,"accountId":2,"toCompanyId":3,"toAccountId":4,"companyId":5,"toCompanyName":"sample string 6"},{"account":{"companyName":"sample string 1","id":2,"username":"sample string 3","companyId":4},"toAccount":{"companyName":"sample string 1","id":2,"username":"sample string 3","companyId":4},"id":1,"accountId":2,"toCompanyId":3,"toAccountId":4,"companyId":5,"toCompanyName":"sample string 6"}],"errorCode":1,"error":"sample string 2","top":3,"total":2}

application/xml, text/xml

Sample:
<ListReplyOfUserAccountChooserViewkk83S2m2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/T8UtilityLib.Models">
  <data xmlns:d2p1="http://schemas.datacontract.org/2004/07/T8LSPModel.Super">
    <d2p1:UserAccountChooserView>
      <d2p1:accountId>2</d2p1:accountId>
      <d2p1:companyId>5</d2p1:companyId>
      <d2p1:id>1</d2p1:id>
      <d2p1:toAccountId>4</d2p1:toAccountId>
      <d2p1:toCompanyId>3</d2p1:toCompanyId>
      <d2p1:toCompanyName>sample string 6</d2p1:toCompanyName>
      <d2p1:account>
        <d2p1:companyId>4</d2p1:companyId>
        <d2p1:id>2</d2p1:id>
        <d2p1:username>sample string 3</d2p1:username>
        <d2p1:companyName>sample string 1</d2p1:companyName>
      </d2p1:account>
      <d2p1:toAccount>
        <d2p1:companyId>4</d2p1:companyId>
        <d2p1:id>2</d2p1:id>
        <d2p1:username>sample string 3</d2p1:username>
        <d2p1:companyName>sample string 1</d2p1:companyName>
      </d2p1:toAccount>
    </d2p1:UserAccountChooserView>
    <d2p1:UserAccountChooserView>
      <d2p1:accountId>2</d2p1:accountId>
      <d2p1:companyId>5</d2p1:companyId>
      <d2p1:id>1</d2p1:id>
      <d2p1:toAccountId>4</d2p1:toAccountId>
      <d2p1:toCompanyId>3</d2p1:toCompanyId>
      <d2p1:toCompanyName>sample string 6</d2p1:toCompanyName>
      <d2p1:account>
        <d2p1:companyId>4</d2p1:companyId>
        <d2p1:id>2</d2p1:id>
        <d2p1:username>sample string 3</d2p1:username>
        <d2p1:companyName>sample string 1</d2p1:companyName>
      </d2p1:account>
      <d2p1:toAccount>
        <d2p1:companyId>4</d2p1:companyId>
        <d2p1:id>2</d2p1:id>
        <d2p1:username>sample string 3</d2p1:username>
        <d2p1:companyName>sample string 1</d2p1:companyName>
      </d2p1:toAccount>
    </d2p1:UserAccountChooserView>
  </data>
  <error>sample string 2</error>
  <errorCode>1</errorCode>
  <top>3</top>
</ListReplyOfUserAccountChooserViewkk83S2m2>

application/x-protobuf

Sample:

An exception has occurred while using the formatter 'ProtoBufFormatter' to generate sample for media type 'application/x-protobuf'. Exception message: Type is not expected, and no contract can be inferred: T8UtilityLib.Models.ListReply`1[[T8LSPModel.Super.UserAccountChooserView, T8LSPModel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]