GET api/Sikshya
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of SikshyaViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
Required |
|
| Type | string |
Required |
|
| ContactNo | string |
Required Data type: PhoneNumber Matching regular expression pattern: ^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$ |
|
| Address | string |
None. |
|
| Description | string |
None. |
|
| Photo | string |
Required |
|
| WardId | integer |
None. |
|
| LocalLevelId | integer |
None. |
|
| Latitude | decimal number |
None. |
|
| Longitude | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"Name": "sample string 2",
"Type": "sample string 3",
"ContactNo": "sample string 4",
"Address": "sample string 5",
"Description": "sample string 6",
"Photo": "sample string 7",
"WardId": 1,
"LocalLevelId": 8,
"Latitude": 1.0,
"Longitude": 1.0
},
{
"Id": 1,
"Name": "sample string 2",
"Type": "sample string 3",
"ContactNo": "sample string 4",
"Address": "sample string 5",
"Description": "sample string 6",
"Photo": "sample string 7",
"WardId": 1,
"LocalLevelId": 8,
"Latitude": 1.0,
"Longitude": 1.0
}
]
text/xml
Sample:
<ArrayOfSikshyaViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MeroPalikaApi.Models">
<SikshyaViewModel>
<Address>sample string 5</Address>
<ContactNo>sample string 4</ContactNo>
<Description>sample string 6</Description>
<Id>1</Id>
<Latitude>1</Latitude>
<LocalLevelId>8</LocalLevelId>
<Longitude>1</Longitude>
<Name>sample string 2</Name>
<Photo>sample string 7</Photo>
<Type>sample string 3</Type>
<WardId>1</WardId>
</SikshyaViewModel>
<SikshyaViewModel>
<Address>sample string 5</Address>
<ContactNo>sample string 4</ContactNo>
<Description>sample string 6</Description>
<Id>1</Id>
<Latitude>1</Latitude>
<LocalLevelId>8</LocalLevelId>
<Longitude>1</Longitude>
<Name>sample string 2</Name>
<Photo>sample string 7</Photo>
<Type>sample string 3</Type>
<WardId>1</WardId>
</SikshyaViewModel>
</ArrayOfSikshyaViewModel>