Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions apps/oss-app-test/src/makecomapp.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,22 @@
"scope": "modules/get-users/get-users.scope.iml.json"
}
},
"getSegments": {
"label": "Get Segments",
"description": "Get segment list",
"moduleType": "action",
"actionCrud": "read",
"connection": null,
"altConnection": null,
"codeFiles": {
"communication": "modules/get-segments/get-segments.communication.iml.json",
"staticParams": "modules/get-segments/get-segments.static-params.iml.json",
"mappableParams": "modules/get-segments/get-segments.mappable-params.iml.json",
"interface": "modules/get-segments/get-segments.interface.iml.json",
"samples": "modules/get-segments/get-segments.samples.iml.json",
"scope": "modules/get-segments/get-segments.scope.iml.json"
}
},
"module1": {
"label": "My Module 1",
"description": "Some description",
Expand Down Expand Up @@ -188,6 +204,10 @@
"local": "getUsers",
"remote": "getUsers"
},
{
"local": "getSegments",
"remote": "getSegments"
},
{
"local": "module1",
"remote": "module1"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
// Request to API endpoint to get segments
"url": "/segments/v1", // Relative to base URL
"method": "GET",
"headers": {}, // Additional HTTP headers
"qs": {
"limit": "{{parameters.limit}}" // Query parameter for pagination
},

// Response handling
"response": {
"output": "{{body.segments}}" // Return segments array from response
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"name": "id",
"type": "text",
"label": "Segment ID"
},
{
"name": "name",
"type": "text",
"label": "Segment Name"
},
{
"name": "description",
"type": "text",
"label": "Description"
},
{
"name": "created_at",
"type": "date",
"label": "Created At"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"name": "limit",
"type": "number",
"label": "Limit",
"help": "Maximum number of segments to return",
"default": 100,
"required": false
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"default": {
"label": "Get Segments",
"scopes": []
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Loading