Skip to content

Navigation Menu

Sign in
Sign up

Support generic data endpoint - #97

Open
PatrickTasse wants to merge 1 commit into
eclipse-cdt-cloud:master from
PatrickTasse:raw
Open

Support generic data endpoint #97
PatrickTasse wants to merge 1 commit into
eclipse-cdt-cloud:master from
PatrickTasse:raw

Conversation

@PatrickTasse

@PatrickTasse PatrickTasse commented Oct 10, 2025

Copy link
Copy Markdown

What it does

Add --get-data and --parameters arguments to cli.

Implement fetch_data to invoke /obj endpoint.

Add ObjectModel support for the response.

How to test

Check help output with --help
Check help output with incorrect use of --get-data
Try --get-data with raw events data provider with mix of parameters.
./tsp_cli_client --get-data org.eclipse.tracecompass.tmf.core.model.events.data --uuid 50484c19-f1af-3af3-841a-0d821ed393d2 --parameters '"next": 100000, "count": 5, "type":"sched"'

Follow-ups

Consolidate or reuse use or parsing of --parameters argument with the configuration commands --params argument.

Review checklist

  • As an author, I have thoroughly tested my changes and carefully followed the instructions in this template

Add --get-data and --parameters arguments to cli.
Implement fetch_data to invoke /obj endpoint.
Add ObjectModel support for the response.
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Comment thread tsp/tsp_client.py

response = requests.post(api_url, json=params, headers=headers)

if response.status_code == 200:

@MatthewKhouzam MatthewKhouzam Oct 28, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about response.ok?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@MatthewKhouzam MatthewKhouzam MatthewKhouzam left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /