GET api/test/objektmedrader
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of TestHuvud| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Namn | string |
None. |
|
| Beskrivning | string |
None. |
|
| Lat | string |
None. |
|
| Lon | string |
None. |
|
| Rader | Collection of TestRader |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"id": 1,
"namn": "sample string 2",
"beskrivning": "sample string 3",
"lat": "sample string 4",
"lon": "sample string 5",
"rader": [
{
"id": 1,
"huvudId": 2,
"beskrivning": "sample string 3",
"antal": 4,
"pris": 5.0
},
{
"id": 1,
"huvudId": 2,
"beskrivning": "sample string 3",
"antal": 4,
"pris": 5.0
}
]
},
{
"id": 1,
"namn": "sample string 2",
"beskrivning": "sample string 3",
"lat": "sample string 4",
"lon": "sample string 5",
"rader": [
{
"id": 1,
"huvudId": 2,
"beskrivning": "sample string 3",
"antal": 4,
"pris": 5.0
},
{
"id": 1,
"huvudId": 2,
"beskrivning": "sample string 3",
"antal": 4,
"pris": 5.0
}
]
}
]
application/xml, text/xml
Sample:
<ArrayOfTestHuvud xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ThorMobileAPI.Models">
<TestHuvud>
<Beskrivning>sample string 3</Beskrivning>
<Id>1</Id>
<Lat>sample string 4</Lat>
<Lon>sample string 5</Lon>
<Namn>sample string 2</Namn>
<Rader>
<TestRader>
<Antal>4</Antal>
<Beskrivning>sample string 3</Beskrivning>
<HuvudId>2</HuvudId>
<Id>1</Id>
<Pris>5</Pris>
</TestRader>
<TestRader>
<Antal>4</Antal>
<Beskrivning>sample string 3</Beskrivning>
<HuvudId>2</HuvudId>
<Id>1</Id>
<Pris>5</Pris>
</TestRader>
</Rader>
</TestHuvud>
<TestHuvud>
<Beskrivning>sample string 3</Beskrivning>
<Id>1</Id>
<Lat>sample string 4</Lat>
<Lon>sample string 5</Lon>
<Namn>sample string 2</Namn>
<Rader>
<TestRader>
<Antal>4</Antal>
<Beskrivning>sample string 3</Beskrivning>
<HuvudId>2</HuvudId>
<Id>1</Id>
<Pris>5</Pris>
</TestRader>
<TestRader>
<Antal>4</Antal>
<Beskrivning>sample string 3</Beskrivning>
<HuvudId>2</HuvudId>
<Id>1</Id>
<Pris>5</Pris>
</TestRader>
</Rader>
</TestHuvud>
</ArrayOfTestHuvud>