diff --git a/Projects/Superalgos/Schemas/AppSchema.json b/Projects/Superalgos/Schemas/AppSchema.json index 00ce8721a..79d2d9359 100644 --- a/Projects/Superalgos/Schemas/AppSchema.json +++ b/Projects/Superalgos/Schemas/AppSchema.json @@ -19713,6 +19713,9 @@ "isTitleAllwaysVisible": true, "addLeftIcons": true, "level": 1, + "attachingRules": { + "compatibleTypes": "->API Map->" + }, "propertyNameAtParent": "apiVersions", "childrenNodesProperties": [ { @@ -19765,6 +19768,9 @@ "isTitleAllwaysVisible": true, "addLeftIcons": true, "level": 2, + "attachingRules": { + "compatibleTypes": "->API Version->" + }, "propertyNameAtParent": "apiEndpoints", "childrenNodesProperties": [ { @@ -19816,6 +19822,9 @@ }, "addLeftIcons": true, "level": 3, + "attachingRules": { + "compatibleTypes": "->API Endpoint->" + }, "propertyNameAtParent": "apiQueryParameters", "childrenNodesProperties": [ { @@ -19856,6 +19865,9 @@ "isTitleAllwaysVisible": true, "addLeftIcons": true, "level": 4, + "attachingRules": { + "compatibleTypes": "->API Query Parameters->" + }, "propertyNameAtParent": "apiQueryParameters", "icon": "bitcoin" }, @@ -19893,10 +19905,13 @@ }, "addLeftIcons": true, "level": 3, + "attachingRules": { + "compatibleTypes": "->API Endpoint->" + }, "propertyNameAtParent": "apiQueryResponses", "childrenNodesProperties": [ { - "name": "apiQueryResponse", + "name": "apiQueryResponses", "type": "array", "childType": "API Query Response", "autoAdd": true @@ -19938,6 +19953,9 @@ }, "addLeftIcons": true, "level": 4, + "attachingRules": { + "compatibleTypes": "->API Query Responses->" + }, "propertyNameAtParent": "apiQueryResponses", "childrenNodesProperties": [ { @@ -19983,6 +20001,9 @@ }, "addLeftIcons": true, "level": 4, + "attachingRules": { + "compatibleTypes": "->API Query Response->" + }, "propertyNameAtParent": "apiResponseSchema", "childrenNodesProperties": [ { @@ -19994,6 +20015,54 @@ ], "icon": "bitcoin" }, + { + "type": "API Response Field", + "menuItems": [ + { + "action": "Configure", + "actionFunction": "uiObject.configEditor.activate", + "label": "Configure", + "iconPathOn": "configuration", + "iconPathOff": "configuration" + }, + { + "action": "Add UI Object", + "label": "Add API Response Field", + "relatedUiObject": "API Response Field", + "actionFunction": "payload.executeAction" + }, + { + "action": "Delete UI Object", + "askConfirmation": true, + "confirmationLabel": "Confirm to Delete", + "label": "Delete", + "iconPathOn": "delete-entity", + "iconPathOff": "delete-entity", + "actionFunction": "payload.executeAction" + } + ], + "editors": { + "config": true + }, + "initialValues": { + "config": "{\"codeName\": \"\", \"fieldType\": \"\", \"descrption\": \"\"}" + }, + "addLeftIcons": true, + "level": 4, + "propertyNameAtParent": "apiResponseFields", + "attachingRules": { + "compatibleTypes": "->API Response Field->API Response Schema->" + }, + "childrenNodesProperties": [ + { + "name": "apiResponseFields", + "type": "array", + "childType": "API Response Field", + "autoAdd": false + } + ], + "icon": "bitcoin" + }, { "type": "Tutorial", "menuItems": [