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

Generate documentation report #365

Merged
merged 41 commits into from
Oct 10, 2024
Merged

Generate documentation report #365

merged 41 commits into from
Oct 10, 2024

Conversation

andrii-balitskyi
Copy link
Contributor

@andrii-balitskyi andrii-balitskyi commented Oct 4, 2024

docs/api/_report.md Outdated Show resolved Hide resolved
@andrii-balitskyi
Copy link
Contributor Author

These seamapi/blueprint#116, seamapi/blueprint#117 are required to fix the build

@andrii-balitskyi andrii-balitskyi marked this pull request as ready for review October 9, 2024 13:14
@andrii-balitskyi andrii-balitskyi requested review from a team as code owners October 9, 2024 13:14
Copy link
Contributor

@DebbieAtSeam DebbieAtSeam left a comment

Choose a reason for hiding this comment

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

@andrii-balitskyi The report and added code sample language are excellent!!! Thanks!

@razor-x Do we need to wait to merge this PR, or will it not affect the open GitBook CRs?

### Endpoints

- `/acs/access_groups/add_user`
- `/acs/access_groups/add_user`
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are some of these repeated?

Copy link
Contributor Author

@andrii-balitskyi andrii-balitskyi Oct 10, 2024

Choose a reason for hiding this comment

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

Thanks for catching this! It turns out that our blueprint defines an endpoint resource for each method that the actual endpoint supports. So, in the case of /acs/access_groups/add_user, there's one endpoint definition for PUT and one for POST. @razor-x, is this the intended design for the blueprint?
Anyway, I'll deduplicate the endpoints for now.

Copy link
Contributor Author

@andrii-balitskyi andrii-balitskyi Oct 10, 2024

Choose a reason for hiding this comment

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

Fix b29e2ee
Updated report c450eed

Copy link
Contributor

Choose a reason for hiding this comment

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

No, this is a bug in blueprint then. There should be one endpoint per path, the supported methods defined on the endpoint

Copy link
Contributor

Choose a reason for hiding this comment

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

- `/thermostats/set_fan_mode`
- `fan_mode`: use fan_mode_setting instead.

### Extra response keys
Copy link
Contributor

Choose a reason for hiding this comment

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

What does this mean?

Copy link
Contributor

Choose a reason for hiding this comment

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

Some endpoints return more than one top-level key (one that is not the response_key). Anything in this list is something we would want to eventually remove, or for new endpoints, would indicate a mistake.

@razor-x
Copy link
Contributor

razor-x commented Oct 9, 2024

@DebbieAtSeam I'll isolate the doc changes in another PR so this one will only be the report. But I don't expect any merge conflicts for PRs that only change generated files.

@razor-x
Copy link
Contributor

razor-x commented Oct 10, 2024

Nice work @andrii-balitskyi ! Bringing this in

@razor-x razor-x merged commit 53d6fe3 into main Oct 10, 2024
13 checks passed
@razor-x razor-x deleted the report branch October 10, 2024 18:28
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