OpenAPI fields to return ?
Is it possible to filter out the fields returned by windmill openapi ?
For example i need to exclude the logs field from the
list all available jobs
route
The jobs i've got have so heavy logs that im not able to get responses under 50 mb4 Replies
Maybe if Windmill supports GraphQL someday, that would allow you to accomplish your objective. One of the core design components of GraphQL is that the client can decide what data fields are returned.
apart from GraphQL, inspiration for some alternatives might come from this great blog https://apisyouwonthate.com/blog/you-might-not-need-graphql/, e.g.
A common standard for REST APIs to implement is JSON-API, which talks about sparse fieldsets. The basic idea is that you can specify the fields in the request: GET /articles?fields[articles]=title,body@yassinsiouda from the context I'd assume that you're probably doing some direct API call? One possible workaround would be to experiment with encoding (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding) - however this is probably poor workaround if you later need to parse the response anyway
logs are not pas of list all available jobs
can you check what is taking so much space in your result ? The endpoint support setting pagination and page size
I was misusing the the route an tried to get to many jobs i think
The route
/api/w/myworkspace/jobs/list?script_path_exact=myflow&started_before=
works like a charm 👌