updated header on create case
This commit is contained in:
+16
-2
@@ -335,7 +335,14 @@ export const createCase = (appealTypeId) => {
|
|||||||
var config = {
|
var config = {
|
||||||
method: "post",
|
method: "post",
|
||||||
url: WEBAPI_URL + "incidents",
|
url: WEBAPI_URL + "incidents",
|
||||||
azureHeaders,
|
headers: {
|
||||||
|
"OData-MaxVersion": "4.0",
|
||||||
|
"OData-Version": "4.0",
|
||||||
|
"Accept": "application/json",
|
||||||
|
"Prefer": 'odata.include-annotations="*",return=representation',
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
"ServiceBusAuthorization": SASToken,
|
||||||
|
},
|
||||||
data: data,
|
data: data,
|
||||||
};
|
};
|
||||||
console.log(config);
|
console.log(config);
|
||||||
@@ -355,7 +362,14 @@ export const updateCase = (incidentId, updateBody, updateFormCollection) => {
|
|||||||
var config = {
|
var config = {
|
||||||
method: "patch",
|
method: "patch",
|
||||||
url: WEBAPI_URL + updateFormCollection + "(" + incidentId + ")",
|
url: WEBAPI_URL + updateFormCollection + "(" + incidentId + ")",
|
||||||
azureHeaders,
|
headers: {
|
||||||
|
"OData-MaxVersion": "4.0",
|
||||||
|
"OData-Version": "4.0",
|
||||||
|
"Accept": "application/json",
|
||||||
|
"Prefer": 'odata.include-annotations="*",return=representation',
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
"ServiceBusAuthorization": SASToken,
|
||||||
|
},
|
||||||
data: data,
|
data: data,
|
||||||
};
|
};
|
||||||
// console.log(config);
|
// console.log(config);
|
||||||
|
|||||||
Reference in New Issue
Block a user