POST api/addresstype/add
Request Information
URI Parameters
None.
Body Parameters
TypeAdd| Name | Description | Type | Additional information |
|---|---|---|---|
| TypeId | string |
None. |
|
| TypeHead | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"TypeId": "sample string 1",
"TypeHead": "sample string 2"
}
application/xml, text/xml
Sample:
<TypeAdd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GPSTracking.Model"> <TypeHead>sample string 2</TypeHead> <TypeId>sample string 1</TypeId> </TypeAdd>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
TypeResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | boolean |
None. |
|
| StatusText | string |
None. |
|
| Msg | string |
None. |
|
| DL | Collection of TypeView |
None. |
Response Formats
application/json, text/json
Sample:
{
"Status": true,
"StatusText": "sample string 2",
"Msg": "sample string 3",
"DL": [
{
"TypeId": "sample string 1",
"TypeHead": "sample string 2",
"IsActive": true
},
{
"TypeId": "sample string 1",
"TypeHead": "sample string 2",
"IsActive": true
}
]
}
application/xml, text/xml
Sample:
<TypeResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GPSTracking.Model">
<DL>
<TypeView>
<IsActive>true</IsActive>
<TypeHead>sample string 2</TypeHead>
<TypeId>sample string 1</TypeId>
</TypeView>
<TypeView>
<IsActive>true</IsActive>
<TypeHead>sample string 2</TypeHead>
<TypeId>sample string 1</TypeId>
</TypeView>
</DL>
<Msg>sample string 3</Msg>
<Status>true</Status>
<StatusText>sample string 2</StatusText>
</TypeResponse>