Skip to content
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

Create custom response dataclasses for our endpoints #1738

Open
odjuricicTT opened this issue Jan 9, 2025 · 0 comments
Open

Create custom response dataclasses for our endpoints #1738

odjuricicTT opened this issue Jan 9, 2025 · 0 comments

Comments

@odjuricicTT
Copy link
Contributor

On the backend for perf_data overlay we inject this data into the model explorer graph object and send the object to the frontend. So the response looks something like this:

{
    "graphs": [
        {
            <graph_fields>,
            "perf_data": ...
        }
    ]
}

The proper way to do this would be to create our own response dataclasses and use for our endpoints. Have the response look something like:

{
    "graphs": [
        {
            <graph_fields>
        }
    ],
    "perf_data": ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant