You are only posting and not putting. You are also not validating that the json object from the ui is valid. What happens if only one page is posted and not an array of pages? There are hard coded values in your file. You are not checking if the bookid/pageid/languagecode/texturl exist before updating. You are also not using the correct config keys.
they are the following -
"COSMOS_NAME" is the key for the key vault secrets.
"COSMOS_NAME":""
"KEY_VAULT_URI":""
KEY VAULT KEYS STORED IN JSON FORMAT
{
"COSMOS_URI":"",
"COSMOS_KEY":"",
"COSMOS_DB":"",
"COSMOS_COLLECTION":""
}
You are only posting and not putting. You are also not validating that the json object from the ui is valid. What happens if only one page is posted and not an array of pages? There are hard coded values in your file. You are not checking if the bookid/pageid/languagecode/texturl exist before updating. You are also not using the correct config keys.
they are the following - "COSMOS_NAME" is the key for the key vault secrets.
"COSMOS_NAME":"" "KEY_VAULT_URI":"" KEY VAULT KEYS STORED IN JSON FORMAT { "COSMOS_URI":"", "COSMOS_KEY":"", "COSMOS_DB":"", "COSMOS_COLLECTION":"" }