CEC-3672 Use SUMS version instead of Version (#279)
This commit is contained in:
@@ -27,13 +27,13 @@ const updatesAPI = {
|
||||
return { message: "OK" };
|
||||
},
|
||||
|
||||
getSoftwareVersions: async (token) => {
|
||||
getSUMSVersions: async (token) => {
|
||||
return {
|
||||
"data": ["2023.02.01.0.0.A", "2023.02.01.0.0.B"]
|
||||
};
|
||||
},
|
||||
|
||||
updateManifestVersion: async (_id, version) => {
|
||||
updateSUMSVersion: async (_id, version) => {
|
||||
return { version };
|
||||
},
|
||||
};
|
||||
|
||||
@@ -87,8 +87,8 @@ const updatesAPI = {
|
||||
.catch(errorHandler);
|
||||
},
|
||||
|
||||
getSoftwareVersions: async (token) => {
|
||||
return fetch(`${API_ENDPOINT}/manifest/versions`, {
|
||||
getSUMSVersions: async (token) => {
|
||||
return fetch(`${API_ENDPOINT}/manifest/sums`, {
|
||||
method: "GET",
|
||||
headers: Object.assign(
|
||||
{ "Content-Type": "application/json" },
|
||||
@@ -99,8 +99,8 @@ const updatesAPI = {
|
||||
.catch(errorHandler);
|
||||
},
|
||||
|
||||
updateManifestVersion: async (id, version, token) => {
|
||||
return fetch(`${API_ENDPOINT}/manifests/${id}/version`, {
|
||||
updateSUMSVersion: async (id, version, token) => {
|
||||
return fetch(`${API_ENDPOINT}/manifests/${id}/sums`, {
|
||||
method: "PUT",
|
||||
headers: Object.assign(
|
||||
{ "Content-Type": "application/json" },
|
||||
@@ -113,4 +113,4 @@ const updatesAPI = {
|
||||
}
|
||||
};
|
||||
|
||||
export default updatesAPI;
|
||||
export default updatesAPI;
|
||||
Reference in New Issue
Block a user