GET Api/Shifts/{id}

Wyszukuje object Shift po jego identyfikatorze

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

unikalny identyfikator obiektu

integer

Required

Body Parameters

None.

Response Information

Resource Description

obiekt Shift posiadajÄ…cy wybrany identyfikator

ShiftDto
NameDescriptionTypeAdditional information
ShiftId

integer

None.

OrderId

integer

None.

StartDate

date

Required

EndDate

date

Required

BreakTime

integer

None.

ShiftStateId

integer

Required

TrainingStepId

integer

None.

WeekPlanId

integer

None.

CreationDate

date

None.

LastUpdate

date

None.

SmsTemplate

string

None.

DescForProvider

string

None.

DescForWorker

string

None.

Needs

Collection of NeedDto

None.

Response Formats

application/json, text/json

Sample:
{
  "shiftId": 1,
  "orderId": 1,
  "startDate": "2024-05-18T07:53:35.7092015+00:00",
  "endDate": "2024-05-18T07:53:35.7092015+00:00",
  "breakTime": 1,
  "shiftStateId": 4,
  "trainingStepId": 1,
  "weekPlanId": 1,
  "creationDate": "2024-05-18T07:53:35.7092015+00:00",
  "lastUpdate": "2024-05-18T07:53:35.7092015+00:00",
  "smsTemplate": "sample string 5",
  "descForProvider": "sample string 6",
  "descForWorker": "sample string 7",
  "needs": [
    {
      "needId": 1,
      "shiftId": 2,
      "serviceId": 1,
      "workPositionId": 3,
      "male": 1,
      "female": 1,
      "both": 1,
      "isNotified": true,
      "assignedWorkers": [
        {
          "assignedWorkerId": 1,
          "profileId": "sample string 2",
          "needId": 3,
          "assignmentDate": "2024-05-18T07:53:35.7092015+00:00",
          "assignedById": "sample string 5",
          "isAssigned": true,
          "contractId": 1,
          "assignmentStageId": 1,
          "typeOfAbsenceId": 1,
          "name": null,
          "surname": null,
          "gender": null,
          "organizationalUnitId": null,
          "created": null,
          "error": null,
          "otherShiftId": null,
          "available": true
        },
        {
          "assignedWorkerId": 1,
          "profileId": "sample string 2",
          "needId": 3,
          "assignmentDate": "2024-05-18T07:53:35.7092015+00:00",
          "assignedById": "sample string 5",
          "isAssigned": true,
          "contractId": 1,
          "assignmentStageId": 1,
          "typeOfAbsenceId": 1,
          "name": null,
          "surname": null,
          "gender": null,
          "organizationalUnitId": null,
          "created": null,
          "error": null,
          "otherShiftId": null,
          "available": true
        }
      ]
    },
    {
      "needId": 1,
      "shiftId": 2,
      "serviceId": 1,
      "workPositionId": 3,
      "male": 1,
      "female": 1,
      "both": 1,
      "isNotified": true,
      "assignedWorkers": [
        {
          "assignedWorkerId": 1,
          "profileId": "sample string 2",
          "needId": 3,
          "assignmentDate": "2024-05-18T07:53:35.7092015+00:00",
          "assignedById": "sample string 5",
          "isAssigned": true,
          "contractId": 1,
          "assignmentStageId": 1,
          "typeOfAbsenceId": 1,
          "name": null,
          "surname": null,
          "gender": null,
          "organizationalUnitId": null,
          "created": null,
          "error": null,
          "otherShiftId": null,
          "available": true
        },
        {
          "assignedWorkerId": 1,
          "profileId": "sample string 2",
          "needId": 3,
          "assignmentDate": "2024-05-18T07:53:35.7092015+00:00",
          "assignedById": "sample string 5",
          "isAssigned": true,
          "contractId": 1,
          "assignmentStageId": 1,
          "typeOfAbsenceId": 1,
          "name": null,
          "surname": null,
          "gender": null,
          "organizationalUnitId": null,
          "created": null,
          "error": null,
          "otherShiftId": null,
          "available": true
        }
      ]
    }
  ]
}

multipart/form-data

Sample:
{"shiftId":1,"orderId":1,"startDate":"2024-05-18T07:53:35.7092015+00:00","endDate":"2024-05-18T07:53:35.7092015+00:00","breakTime":1,"shiftStateId":4,"trainingStepId":1,"weekPlanId":1,"creationDate":"2024-05-18T07:53:35.7092015+00:00","lastUpdate":"2024-05-18T07:53:35.7092015+00:00","smsTemplate":"sample string 5","descForProvider":"sample string 6","descForWorker":"sample string 7","needs":[{"needId":1,"shiftId":2,"serviceId":1,"workPositionId":3,"male":1,"female":1,"both":1,"isNotified":true,"assignedWorkers":[{"assignedWorkerId":1,"profileId":"sample string 2","needId":3,"assignmentDate":"2024-05-18T07:53:35.7092015+00:00","assignedById":"sample string 5","isAssigned":true,"contractId":1,"assignmentStageId":1,"typeOfAbsenceId":1,"name":null,"surname":null,"gender":null,"organizationalUnitId":null,"created":null,"error":null,"otherShiftId":null,"available":true},{"assignedWorkerId":1,"profileId":"sample string 2","needId":3,"assignmentDate":"2024-05-18T07:53:35.7092015+00:00","assignedById":"sample string 5","isAssigned":true,"contractId":1,"assignmentStageId":1,"typeOfAbsenceId":1,"name":null,"surname":null,"gender":null,"organizationalUnitId":null,"created":null,"error":null,"otherShiftId":null,"available":true}]},{"needId":1,"shiftId":2,"serviceId":1,"workPositionId":3,"male":1,"female":1,"both":1,"isNotified":true,"assignedWorkers":[{"assignedWorkerId":1,"profileId":"sample string 2","needId":3,"assignmentDate":"2024-05-18T07:53:35.7092015+00:00","assignedById":"sample string 5","isAssigned":true,"contractId":1,"assignmentStageId":1,"typeOfAbsenceId":1,"name":null,"surname":null,"gender":null,"organizationalUnitId":null,"created":null,"error":null,"otherShiftId":null,"available":true},{"assignedWorkerId":1,"profileId":"sample string 2","needId":3,"assignmentDate":"2024-05-18T07:53:35.7092015+00:00","assignedById":"sample string 5","isAssigned":true,"contractId":1,"assignmentStageId":1,"typeOfAbsenceId":1,"name":null,"surname":null,"gender":null,"organizationalUnitId":null,"created":null,"error":null,"otherShiftId":null,"available":true}]}]}

application/xml, text/xml

Sample:
<ShiftDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ShiftId>1</ShiftId>
  <OrderId>1</OrderId>
  <StartDate />
  <EndDate />
  <BreakTime>1</BreakTime>
  <ShiftStateId>4</ShiftStateId>
  <TrainingStepId>1</TrainingStepId>
  <WeekPlanId>1</WeekPlanId>
  <CreationDate />
  <LastUpdate />
  <SmsTemplate>sample string 5</SmsTemplate>
  <DescForProvider>sample string 6</DescForProvider>
  <DescForWorker>sample string 7</DescForWorker>
  <Needs>
    <NeedDto>
      <NeedId>1</NeedId>
      <ShiftId>2</ShiftId>
      <ServiceId>1</ServiceId>
      <WorkPositionId>3</WorkPositionId>
      <Male>1</Male>
      <Female>1</Female>
      <Both>1</Both>
      <IsNotified>true</IsNotified>
      <AssignedWorkers>
        <AssignedWorkerDto>
          <AssignedWorkerId>1</AssignedWorkerId>
          <ProfileId>sample string 2</ProfileId>
          <NeedId>3</NeedId>
          <AssignmentDate />
          <AssignedById>sample string 5</AssignedById>
          <IsAssigned>true</IsAssigned>
          <ContractId>1</ContractId>
          <AssignmentStageId>1</AssignmentStageId>
          <TypeOfAbsenceId>1</TypeOfAbsenceId>
          <Available>true</Available>
        </AssignedWorkerDto>
        <AssignedWorkerDto>
          <AssignedWorkerId>1</AssignedWorkerId>
          <ProfileId>sample string 2</ProfileId>
          <NeedId>3</NeedId>
          <AssignmentDate />
          <AssignedById>sample string 5</AssignedById>
          <IsAssigned>true</IsAssigned>
          <ContractId>1</ContractId>
          <AssignmentStageId>1</AssignmentStageId>
          <TypeOfAbsenceId>1</TypeOfAbsenceId>
          <Available>true</Available>
        </AssignedWorkerDto>
      </AssignedWorkers>
    </NeedDto>
    <NeedDto>
      <NeedId>1</NeedId>
      <ShiftId>2</ShiftId>
      <ServiceId>1</ServiceId>
      <WorkPositionId>3</WorkPositionId>
      <Male>1</Male>
      <Female>1</Female>
      <Both>1</Both>
      <IsNotified>true</IsNotified>
      <AssignedWorkers>
        <AssignedWorkerDto>
          <AssignedWorkerId>1</AssignedWorkerId>
          <ProfileId>sample string 2</ProfileId>
          <NeedId>3</NeedId>
          <AssignmentDate />
          <AssignedById>sample string 5</AssignedById>
          <IsAssigned>true</IsAssigned>
          <ContractId>1</ContractId>
          <AssignmentStageId>1</AssignmentStageId>
          <TypeOfAbsenceId>1</TypeOfAbsenceId>
          <Available>true</Available>
        </AssignedWorkerDto>
        <AssignedWorkerDto>
          <AssignedWorkerId>1</AssignedWorkerId>
          <ProfileId>sample string 2</ProfileId>
          <NeedId>3</NeedId>
          <AssignmentDate />
          <AssignedById>sample string 5</AssignedById>
          <IsAssigned>true</IsAssigned>
          <ContractId>1</ContractId>
          <AssignmentStageId>1</AssignmentStageId>
          <TypeOfAbsenceId>1</TypeOfAbsenceId>
          <Available>true</Available>
        </AssignedWorkerDto>
      </AssignedWorkers>
    </NeedDto>
  </Needs>
</ShiftDto>