API Structure
Two api used
DEPT_CONFIG
- after apply setting (updated successfully go to homepage refresh it) pop up will be shown then go to home page and refresh it then the updated content will be reflected.
{
"statusDescription":"Successfull",
"status":"Success",
"data":[
{
"cst-pg0042":{
"Template2":"basic_template"
},
"cst-submaster":{
"ProductTheme2":"DeepPurple/Purple222",
"ProductTheme1":"DeepPurple/Purple111"
}
}
]
}
- SAVE_DEPT_CONFIG
- for saving the updated contents
{
"statusDescription":"Successfull",
"status":"Success"
}
After hitting apply setting then its goes to rest connetion page
It will hit api Dept config first(bcz of overriding issue we are appending the existing server data and our updated data) and then Save Dept config (updated data will be posted as request for saving)
Then after refreshing homepage then again Dept config api will hit
After htiing the apply setting changes will send as request for SAVE_DEPT_CONFIG and after getting update successfully popup then tell sharan or Shreyas to restart tc then updated content wll be displayed in homepage.
Issues:
Check in network tab api is working or not
Updated content is stored in server or not