-
Notifications
You must be signed in to change notification settings - Fork 1
Fix Get Segments module with proper structure and registration #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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": [] | ||||||||||||||||
| } | ||||||||||||||||
| } | ||||||||||||||||
|
Comment on lines
+1
to
+6
|
||||||||||||||||
| { | |
| "default": { | |
| "label": "Get Segments", | |
| "scopes": [] | |
| } | |
| } | |
| [] |
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1 @@ | ||||||||
| [] | ||||||||
|
||||||||
| [] | |
| [ | |
| ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The samples.iml.json file should contain an empty object
{}, not an empty array[]. This is inconsistent with the existing modules in the codebase (get-users and create-user) which use an empty object for this file.