|
|
@ -28,9 +28,9 @@ import Helper from './helpers/appMgtApiHelpers';
|
|
|
|
export default class PlatformMgtApi{
|
|
|
|
export default class PlatformMgtApi{
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Create a new Platform
|
|
|
|
* Create a new Platform
|
|
|
|
* @param general: The platform data object.
|
|
|
|
* @param general: Platform general information.
|
|
|
|
* @param config: The platform data object.
|
|
|
|
* @param config: Platform configurations.
|
|
|
|
* @param prop: The platform data object.
|
|
|
|
* @param prop: Platform properties.
|
|
|
|
* */
|
|
|
|
* */
|
|
|
|
static createPlatform(general, config, prop) {
|
|
|
|
static createPlatform(general, config, prop) {
|
|
|
|
const headers = AuthHandler.createAuthenticationHeaders("multipart/form-data");
|
|
|
|
const headers = AuthHandler.createAuthenticationHeaders("multipart/form-data");
|
|
|
@ -40,8 +40,6 @@ export default class PlatformMgtApi{
|
|
|
|
platformData.append("platform", platform.platform);
|
|
|
|
platformData.append("platform", platform.platform);
|
|
|
|
platformData.append("icon", platform.icon);
|
|
|
|
platformData.append("icon", platform.icon);
|
|
|
|
|
|
|
|
|
|
|
|
console.log(platformData);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return Axios.post(Constants.platformManagerEndpoints.CREATE_PLATFORM, platformData, {headers: headers});
|
|
|
|
return Axios.post(Constants.platformManagerEndpoints.CREATE_PLATFORM, platformData, {headers: headers});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|