Continued work on sample use cases towards onboarding

This commit is contained in:
frikky
2022-01-14 00:58:11 +01:00
parent 7ce0559448
commit 3adf98df74
3 changed files with 18 additions and 9 deletions
+10 -1
View File
@@ -641,6 +641,12 @@ const AppCreator = (defaultprops) => {
example_response: "",
};
if (newaction.url !== undefined && newaction.url !== null && newaction.url.includes("_shuffle_replace_")) {
const regex = /_shuffle_replace_\d/i;
//console.log("NEW: ",
newaction.url = newaction.url.replace(regex, "")
}
// Finding category
if (path.includes("/")) {
const pathsplit = path.split("/");
@@ -665,9 +671,10 @@ const AppCreator = (defaultprops) => {
}
if (path === "/files/{file_id}/content") {
console.log("Method: ", path, method, methodvalue)
console.log("FILE DOWNLOAD Method: ", path, method, methodvalue)
}
// Typescript? I think not ;)
if (methodvalue["requestBody"] !== undefined) {
//console.log("Handle requestbody: ", methodvalue["requestBody"], method, path)
@@ -1354,6 +1361,8 @@ const AppCreator = (defaultprops) => {
}
}
newActions.push(newaction);
}
}