GET api/Calendars/GetCalDataForEdit?calID={calID}&selDate={selDate}&ViewMode={ViewMode}&Lang={Lang}

API đọc dữ liệu công việc lịch (Calendar) phục vụ sửa thông tin công việc Kết quả trả về có thể dùng cho API PutCalEdit để sửa công việc

Request Information

URI Parameters

NameDescriptionTypeAdditional information
calID

ID của mục công việc

integer

Required

selDate

Ngày đang chọn để xem lịch (để lưu thông tin lúc trở lại), có thể bỏ qua (null)

date

Required

ViewMode

Chế độ xem (ngày, tháng, quý, năm), có thể bỏ qua

integer

Default value is 0

Lang

Ngôn ngữ của nội dung trả về. Có thể là "vi" (tiếng Việt) hoặc "en" (tiếng Anh). Mặc định là "vi".

string

Default value is vi

Body Parameters

None.

Response Information

Resource Description

TJobCalModel
NameDescriptionTypeAdditional information
id

ID công việc (Calendar)

integer

None.

CalData

Dữ liệu Calendar cần soạn thảo đọc về

TCalEdit

None.

SelectedDate

Ngày chọn

date

None.

viewMode

Tùy chọn hiển thị theo ngày/tháng/quý/năm

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "CalData": {
    "$id": "2",
    "ID": 1,
    "Title": "sample string 2",
    "Summary": "sample string 3",
    "Content": "sample string 4",
    "StartTime": "2026-01-09T22:10:37.9914087+07:00",
    "EndTime": "2026-01-09T22:10:37.9914087+07:00",
    "Location": "sample string 7",
    "Link": "sample string 8"
  },
  "SelectedDate": "2026-01-09T22:10:37.9914087+07:00",
  "viewMode": 2
}