GET api/Index/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

index
NameDescriptionTypeAdditional information
id

integer

None.

name

string

None.

Companies

Collection of Company

None.

currencies

Collection of currency

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "name": "sample string 2",
  "Companies": [
    {
      "$id": "2",
      "Symbol": "sample string 1",
      "name": "sample string 2",
      "indexid": 3
    },
    {
      "$ref": "2"
    }
  ],
  "currencies": [
    {
      "$id": "3",
      "indexid": 1,
      "currencytype": "sample string 2"
    },
    {
      "$ref": "3"
    }
  ]
}

application/xml, text/xml

Sample:
<index xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpwsWebApi2.Models">
  <Companies>
    <Company>
      <Symbol>sample string 1</Symbol>
      <indexid>3</indexid>
      <name>sample string 2</name>
    </Company>
    <Company>
      <Symbol>sample string 1</Symbol>
      <indexid>3</indexid>
      <name>sample string 2</name>
    </Company>
  </Companies>
  <currencies>
    <currency>
      <currencytype>sample string 2</currencytype>
      <indexid>1</indexid>
    </currency>
    <currency>
      <currencytype>sample string 2</currencytype>
      <indexid>1</indexid>
    </currency>
  </currencies>
  <id>1</id>
  <name>sample string 2</name>
</index>