GET api/Index
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of indexName | Description | Type | Additional 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", "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" } ] }, { "$ref": "1" } ]
application/xml, text/xml
Sample:
<ArrayOfindex xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpwsWebApi2.Models"> <index> <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> <index> <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> </ArrayOfindex>