Skip to content

Conversation

simonswine
Copy link
Contributor

@simonswine simonswine commented Sep 3, 2025

Still needs a bit more tests and attention and removal of AI slop, but the idea is to include this in the user facing documentation.

The actual docs can be fully seen by running:

$ make -C docs docs

And the navigate to: http://localhost:3002/docs/pyroscope/latest/reference-server-api/#connect-api

@simonswine simonswine force-pushed the 20250903_api-docs-generation branch from a0a5d02 to b4c9dad Compare September 3, 2025 09:45
@simonswine simonswine self-assigned this Sep 5, 2025
@simonswine simonswine force-pushed the 20250903_api-docs-generation branch 5 times, most recently from e630e92 to 11e9fec Compare October 9, 2025 16:12
This adds the preferred but currently undocumented connect API
calls.

It uses openapi v3 as intermediate format and then generates the
documentation page.
@simonswine simonswine force-pushed the 20250903_api-docs-generation branch from 11e9fec to 97047ba Compare October 10, 2025 12:41
@simonswine simonswine changed the title WIP: Generate API docs for connect-go API docs: Generate API docs for connect-go API Oct 10, 2025
@simonswine simonswine marked this pull request as ready for review October 10, 2025 13:17
@simonswine simonswine requested review from a team, aleks-p and marcsanmi as code owners October 10, 2025 13:17
Copy link
Contributor

Choose a reason for hiding this comment

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

Generic question: why is a generated file committed to the repo?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In it is a very common pattern in Go, basically when doing dependency management using go mod, not all repo files are included (tests non go files are removed). So often it is impossible to execute the code generation commands then.

There for it is common to commit the generated files (With all of the problems this causes)

Copy link
Contributor

@oleg-kozlyuk-grafana oleg-kozlyuk-grafana left a comment

Choose a reason for hiding this comment

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

LGTM with some nitpicks, looks great!

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

Successfully merging this pull request may close these issues.

4 participants