GET api/Works/WorksByEmployee?employeeID={employeeID}&dateStart={dateStart}&dateEnd={dateEnd}&Ended={Ended}
Список работ по сотруднику
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
employeeID | integer |
Required |
|
dateStart | string |
Required |
|
dateEnd | string |
Required |
|
Ended | boolean |
Required |
Body Parameters
None.
Response Information
Resource Description
GetWorksResultName | Description | Type | Additional information |
---|---|---|---|
Data |
Результат |
Collection of WorkDataDetail |
None. |
Result |
Результат обработки запроса |
boolean |
None. |
Message |
Сообщение |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": [ { "WorkID": 1, "WorkCreated": "2025-09-02T23:22:25.4969239+00:00", "WorkAddress": "sample string 3", "WorkDate": "2025-09-02T23:22:25.4969239+00:00", "WorkComment": "sample string 5", "WorkReason": "sample string 6", "WorkArea": 7, "WorkRegion": 8, "WorkCreatorID": 9, "WorkCreatorName": "sample string 10", "ReportReasonID": 11, "ReportReason": "sample string 12", "ReportComment": "sample string 13", "ReportHours": 14, "QuestionID": 15, "QuestionAnswer": "sample string 16", "WorkPerformerID": 17, "WorkPerformerName": "sample string 18", "HouseID": 19, "StreetID": 20, "CityID": 21, "Entrance": 22, "AttachmentsCount": 23 }, { "WorkID": 1, "WorkCreated": "2025-09-02T23:22:25.4969239+00:00", "WorkAddress": "sample string 3", "WorkDate": "2025-09-02T23:22:25.4969239+00:00", "WorkComment": "sample string 5", "WorkReason": "sample string 6", "WorkArea": 7, "WorkRegion": 8, "WorkCreatorID": 9, "WorkCreatorName": "sample string 10", "ReportReasonID": 11, "ReportReason": "sample string 12", "ReportComment": "sample string 13", "ReportHours": 14, "QuestionID": 15, "QuestionAnswer": "sample string 16", "WorkPerformerID": 17, "WorkPerformerName": "sample string 18", "HouseID": 19, "StreetID": 20, "CityID": 21, "Entrance": 22, "AttachmentsCount": 23 } ], "Result": true, "Message": "sample string 2" }
application/xml, text/xml
Sample:
<GetWorksResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ServiceApi.Models"> <Message>sample string 2</Message> <Result>true</Result> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Data.Models.dto"> <d2p1:WorkDataDetail> <d2p1:AttachmentsCount>23</d2p1:AttachmentsCount> <d2p1:CityID>21</d2p1:CityID> <d2p1:Entrance>22</d2p1:Entrance> <d2p1:HouseID>19</d2p1:HouseID> <d2p1:QuestionAnswer>sample string 16</d2p1:QuestionAnswer> <d2p1:QuestionID>15</d2p1:QuestionID> <d2p1:ReportComment>sample string 13</d2p1:ReportComment> <d2p1:ReportHours>14</d2p1:ReportHours> <d2p1:ReportReason>sample string 12</d2p1:ReportReason> <d2p1:ReportReasonID>11</d2p1:ReportReasonID> <d2p1:StreetID>20</d2p1:StreetID> <d2p1:WorkAddress>sample string 3</d2p1:WorkAddress> <d2p1:WorkArea>7</d2p1:WorkArea> <d2p1:WorkComment>sample string 5</d2p1:WorkComment> <d2p1:WorkCreated>2025-09-02T23:22:25.4969239+00:00</d2p1:WorkCreated> <d2p1:WorkCreatorID>9</d2p1:WorkCreatorID> <d2p1:WorkCreatorName>sample string 10</d2p1:WorkCreatorName> <d2p1:WorkDate>2025-09-02T23:22:25.4969239+00:00</d2p1:WorkDate> <d2p1:WorkID>1</d2p1:WorkID> <d2p1:WorkPerformerID>17</d2p1:WorkPerformerID> <d2p1:WorkPerformerName>sample string 18</d2p1:WorkPerformerName> <d2p1:WorkReason>sample string 6</d2p1:WorkReason> <d2p1:WorkRegion>8</d2p1:WorkRegion> </d2p1:WorkDataDetail> <d2p1:WorkDataDetail> <d2p1:AttachmentsCount>23</d2p1:AttachmentsCount> <d2p1:CityID>21</d2p1:CityID> <d2p1:Entrance>22</d2p1:Entrance> <d2p1:HouseID>19</d2p1:HouseID> <d2p1:QuestionAnswer>sample string 16</d2p1:QuestionAnswer> <d2p1:QuestionID>15</d2p1:QuestionID> <d2p1:ReportComment>sample string 13</d2p1:ReportComment> <d2p1:ReportHours>14</d2p1:ReportHours> <d2p1:ReportReason>sample string 12</d2p1:ReportReason> <d2p1:ReportReasonID>11</d2p1:ReportReasonID> <d2p1:StreetID>20</d2p1:StreetID> <d2p1:WorkAddress>sample string 3</d2p1:WorkAddress> <d2p1:WorkArea>7</d2p1:WorkArea> <d2p1:WorkComment>sample string 5</d2p1:WorkComment> <d2p1:WorkCreated>2025-09-02T23:22:25.4969239+00:00</d2p1:WorkCreated> <d2p1:WorkCreatorID>9</d2p1:WorkCreatorID> <d2p1:WorkCreatorName>sample string 10</d2p1:WorkCreatorName> <d2p1:WorkDate>2025-09-02T23:22:25.4969239+00:00</d2p1:WorkDate> <d2p1:WorkID>1</d2p1:WorkID> <d2p1:WorkPerformerID>17</d2p1:WorkPerformerID> <d2p1:WorkPerformerName>sample string 18</d2p1:WorkPerformerName> <d2p1:WorkReason>sample string 6</d2p1:WorkReason> <d2p1:WorkRegion>8</d2p1:WorkRegion> </d2p1:WorkDataDetail> </Data> </GetWorksResult>