POST Api/HostelAllocation/allocateRoom
Request Information
URI Parameters
None.
Body Parameters
HostelAllocation| Name | Description | Type | Additional information |
|---|---|---|---|
| studentId | integer |
None. |
|
| studentName | string |
None. |
|
| rollNumber | string |
None. |
|
| hostelId | integer |
None. |
|
| hostelName | string |
None. |
|
| buildingId | integer |
None. |
|
| buildingName | string |
None. |
|
| blockId | integer |
None. |
|
| blockName | string |
None. |
|
| roomId | integer |
None. |
|
| roomNumber | string |
None. |
|
| bedId | integer |
None. |
|
| bedNumber | string |
None. |
|
| facilities | string |
None. |
|
| allocationDate | string |
None. |
|
| status | string |
None. |
|
| genderType | string |
None. |
|
| roleName | string |
None. |
|
| opCode | integer |
None. |
|
| isException | boolean |
None. |
|
| exceptionMessage | string |
None. |
|
| DS | DataSet |
None. |
|
| id | string |
None. |
|
| strId | string |
None. |
|
| userId | integer |
None. |
|
| status | integer |
None. |
|
| message | string |
None. |
|
| PageSize | string |
None. |
|
| PageIndex | string |
None. |
|
| responseValue | DataSet |
None. |
Request Formats
application/json, text/json
Sample:
{
"studentId": 1,
"studentName": "sample string 2",
"rollNumber": "sample string 3",
"hostelId": 4,
"hostelName": "sample string 5",
"buildingId": 6,
"buildingName": "sample string 7",
"blockId": 1,
"blockName": "sample string 8",
"roomId": 9,
"roomNumber": "sample string 10",
"bedId": 11,
"bedNumber": "sample string 12",
"facilities": "sample string 13",
"allocationDate": "sample string 14",
"status": "sample string 15",
"genderType": "sample string 16",
"roleName": "sample string 17",
"opCode": 18,
"isException": true,
"exceptionMessage": "sample string 20",
"ds": null,
"id": "sample string 21",
"strId": "sample string 22",
"userId": 23,
"message": "sample string 25",
"pageSize": "sample string 26",
"pageIndex": "sample string 27",
"responseValue": {}
}
application/xml, text/xml
Sample:
<HostelAllocation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SMSWebAPI.Models">
<DS i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/DLLUtility" />
<PageIndex xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">sample string 27</PageIndex>
<PageSize xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">sample string 26</PageSize>
<exceptionMessage xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">sample string 20</exceptionMessage>
<id xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">sample string 21</id>
<isException xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">true</isException>
<message xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">sample string 25</message>
<opCode xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">18</opCode>
<responseValue xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">
<xs:schema id="sample_x0020_string_x0020_3" targetNamespace="sample string 4" xmlns:mstns="sample string 4" xmlns="sample string 4" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:element name="sample_x0020_string_x0020_3" msdata:IsDataSet="true" msdata:CaseSensitive="true" msdata:UseCurrentLocale="true">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded" />
</xs:complexType>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1" />
</responseValue>
<status xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">24</status>
<strId xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">sample string 22</strId>
<userId xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">23</userId>
<allocationDate>sample string 14</allocationDate>
<bedId>11</bedId>
<bedNumber>sample string 12</bedNumber>
<blockId>1</blockId>
<blockName>sample string 8</blockName>
<buildingId>6</buildingId>
<buildingName>sample string 7</buildingName>
<facilities>sample string 13</facilities>
<genderType>sample string 16</genderType>
<hostelId>4</hostelId>
<hostelName>sample string 5</hostelName>
<roleName>sample string 17</roleName>
<rollNumber>sample string 3</rollNumber>
<roomId>9</roomId>
<roomNumber>sample string 10</roomNumber>
<status>sample string 15</status>
<studentId>1</studentId>
<studentName>sample string 2</studentName>
</HostelAllocation>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |