0% found this document useful (0 votes)
30 views4 pages

Impl API Cai Dat Thong Bao

The document contains details about a notification setting including its name, public page details, schedule, organizations and users to notify. It supports GET, POST, and PUT operations to get, create and update notification settings.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views4 pages

Impl API Cai Dat Thong Bao

The document contains details about a notification setting including its name, public page details, schedule, organizations and users to notify. It supports GET, POST, and PUT operations to get, create and update notification settings.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

GET

Output:
{
"data": {
"id": 7,
"name": "Noti 100",
"publicPage": "abc form",
"urlPublicPage": "www:///",
"dateRun": "2023-12-31T00:00:00",
"timeRun": "1230",
"sentMethod": 1,
"notifySettingTemplateResponse": {
"id": 0,
"title": "Title 100",
"name": "Name 100",
"emailSubject": "Subject 100",
"emailBody": "Body 100",
"smsContent": "Content 100",
"notifyId": 0,
"contractCompanyId": 0
},
"notifySettingScheduleResponse": { -- Them moi object
"id": 2,
"notifySettingId": 7,
"addtionUpdateSettings": 1,
"hourUpdate": 5,
"endDate": "2023-12-31T00:00:00",
"dayInterval": 2,
"weekInterval": 3,
"monthInterval": 4,
"weekDays": "[Monday, Tuesday]",
"isRemind": true,
"timeRemind": "1234"
},
"notifySettingOrgsResponse": [
{
"id": 7,
"cd": "CD 100",
"cdName": "CD Name 100",
"notifySettingUsersResponse": [
{
"id": 6,
"userCD": 100,
"userName": "User Name CD100"
},
{
"id": 7,
"userCD": 101,
"userName": "User Name CD101.1"
},
{
"id": 8,
"userCD": 102,
"userName": "User Name CD101.2"
}
]
},
{
"id": 8,
"cd": "CD 101",
"cdName": "CD Name 101",
"notifySettingUsersResponse": []
},
{
"id": 9,
"cd": "CD 102",
"cdName": "CD Name 101",
"notifySettingUsersResponse": []
}
]
},
"requestId": "6244d22d-e64d-4d1a-bef4-196b42d2e2ca",
"isSuccess": true,
"message": null,
"errors": []
}

POST
Input:
{
"id": 0,
"createdDate": "2023-12-28T15:17:04.071Z",
"createdBy": "string",
"modifiedDate": "2023-12-28T15:17:04.072Z",
"modifiedBy": "string",
"name": "string",
"publicPageId": 0,
"publicPage": "string",
"urlPublicPage": "string",
"dateTimeRun": "2023-12-28T15:17:04.072Z",
"dateRun": "2023-12-28T15:17:04.072Z",
"timeRun": "string",
"sentMethod": 1,
"totalSent": 0,
"contractCompanyId": 0,
"templateId": 0,
"notiSettingTemplateRequest": {
"title": "string",
"name": "string",
"emailSubject": "string",
"emailBody": "string",
"smsContent": "string",
"notifyId": 0,
"contractCompanyId": 0
},
"notifySettingSchedule": { -- Them moi object
"id": 0,
"notifySettingId": 0,
"addtionUpdateSettings": 1,
"hourUpdate": 0,
"endDate": "2023-12-28T15:17:04.072Z",
"dayInterval": 0,
"weekInterval": 0,
"monthInterval": 0,
"weekDays": "string",
"isRemind": true,
"timeRemind": "string"
},
"notiSettingOrgsRequest": [
{
"id": 0,
"cd": "string",
"cdName": "string",
"notifySettingUsersResquest": [
{
"id": 0,
"userCD": 0,
"userName": "string"
}
]
}
]
}

PUT:
Input
{
"createdDate": "2023-12-28T15:17:30.609Z",
"createdBy": "string",
"modifiedDate": "2023-12-28T15:17:30.609Z",
"modifiedBy": "string",
"id": 0,
"name": "string",
"publicPageId": 0,
"publicPage": "string",
"urlPublicPage": "string",
"dateTimeRun": "2023-12-28T15:17:30.609Z",
"dateRun": "2023-12-28T15:17:30.609Z",
"timeRun": "string",
"sentMethod": 1,
"totalSent": 0,
"contractCompanyId": 0,
"templateId": 0,
"notiSettingTemplateRequest": {
"title": "string",
"name": "string",
"emailSubject": "string",
"emailBody": "string",
"smsContent": "string",
"notifyId": 0,
"contractCompanyId": 0
},
"notifySettingSchedule": { -- Them moi object
"id": 0,
"notifySettingId": 0,
"addtionUpdateSettings": 1,
"hourUpdate": 0,
"endDate": "2023-12-28T15:17:30.609Z",
"dayInterval": 0,
"weekInterval": 0,
"monthInterval": 0,
"weekDays": "string",
"isRemind": true,
"timeRemind": "string"
},
"notiSettingOrgsRequest": [
{
"id": 0,
"cd": "string",
"cdName": "string",
"notifySettingUsersResquest": [
{
"id": 0,
"userCD": 0,
"userName": "string"
}
]
}
]
}

You might also like