GET api/Location/Get?LocationId={LocationId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| LocationId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
LocationModel| Name | Description | Type | Additional information |
|---|---|---|---|
| LocationList | Collection of SelectListItem |
None. |
|
| LocationMasterList | Collection of Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"LocationList": [
{
"Disabled": true,
"Group": {
"Disabled": true,
"Name": "sample string 2"
},
"Selected": true,
"Text": "sample string 3",
"Value": "sample string 4"
},
{
"Disabled": true,
"Group": {
"Disabled": true,
"Name": "sample string 2"
},
"Selected": true,
"Text": "sample string 3",
"Value": "sample string 4"
}
],
"LocationMasterList": null
}
text/html
Sample:
{"LocationList":[{"Disabled":true,"Group":{"Disabled":true,"Name":"sample string 2"},"Selected":true,"Text":"sample string 3","Value":"sample string 4"},{"Disabled":true,"Group":{"Disabled":true,"Name":"sample string 2"},"Selected":true,"Text":"sample string 3","Value":"sample string 4"}],"LocationMasterList":null}
application/xml, text/xml
Sample:
<LocationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERPCoreWebAPI.Models">
<LocationList xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
<d2p1:SelectListItem>
<d2p1:Disabled>true</d2p1:Disabled>
<d2p1:Group>
<d2p1:Disabled>true</d2p1:Disabled>
<d2p1:Name>sample string 2</d2p1:Name>
</d2p1:Group>
<d2p1:Selected>true</d2p1:Selected>
<d2p1:Text>sample string 3</d2p1:Text>
<d2p1:Value>sample string 4</d2p1:Value>
</d2p1:SelectListItem>
<d2p1:SelectListItem>
<d2p1:Disabled>true</d2p1:Disabled>
<d2p1:Group>
<d2p1:Disabled>true</d2p1:Disabled>
<d2p1:Name>sample string 2</d2p1:Name>
</d2p1:Group>
<d2p1:Selected>true</d2p1:Selected>
<d2p1:Text>sample string 3</d2p1:Text>
<d2p1:Value>sample string 4</d2p1:Value>
</d2p1:SelectListItem>
</LocationList>
<LocationMasterList xmlns:d2p1="http://schemas.datacontract.org/2004/07/ERPCoreWebAPI.Models.Entities" i:nil="true" />
</LocationModel>