Skip to content

Conversation

@zchsh
Copy link
Contributor

@zchsh zchsh commented Jul 6, 2023

πŸ”— Relevant links

πŸ—’οΈ What

This PR adds API documentation for HCP Vault Secrets at /hcp/api-docs/vault-secrets.

🀷 Why

To better expose documentation for this API to users.

πŸ› οΈ How

Applies existing work with HCP Packer API docs to the analogous Swagger file for HCP Vault Secrets.

πŸ“Έ Design Screenshots

Note: this is a net new page

localhost_3000_hcp_api-docs_vault-secrets

πŸ§ͺ Testing

πŸ’­ Anything else?

  • For now, we've stuck to the existing API docs template, without further modifications
  • Intent is to favour rebuilding the API docs template from scratch over tweaking the current template

@vercel
Copy link

vercel bot commented Jul 6, 2023

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
dev-portal βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Jul 11, 2023 2:46pm

@github-actions
Copy link

github-actions bot commented Jul 6, 2023

πŸ“¦ Next.js Bundle Analysis

This analysis was generated by the next.js bundle analysis action πŸ€–

New Page Added

The following page was added to the bundle from the code in this PR:

Page Size (compressed) First Load
/hcp/api-docs/vault-secrets/[[...page]] 153.49Β KB 348.45Β KB

@zchsh zchsh marked this pull request as ready for review July 6, 2023 13:05
@zchsh zchsh requested a review from a team as a code owner July 6, 2023 13:05
Copy link
Contributor

@emilypersson1 emilypersson1 left a comment

Choose a reason for hiding this comment

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

nice, thank you!

@kartiklunkad26
Copy link

@zchsh working on updating the title & tags/name but wanted to ask about the tags/name. What is the purpose of the sub-heading?

Is the intent that multiple sub-sections can exist? For the tags/name, honestly we wouldn't want a sub-heading at all

@zchsh
Copy link
Contributor Author

zchsh commented Jul 6, 2023

@kartiklunkad26 Great question! The intent behind showing that subheading is to display the service name, which made sense in the context of the Boundary API docs for which this template was originally built (see https://developer.hashicorp.com/boundary/api-docs/account-service)... but obviously isn't quite as applicable in this case!

If we'd like, I can remove the Secret Service heading as a one-off modification for the HCP Vault Secrets API docs πŸ‘

@kartiklunkad26
Copy link

Perfect!

@zchsh
Copy link
Contributor Author

zchsh commented Jul 6, 2023

@kartiklunkad26 I've update this PR to remove the subheading, and updated the screenshot in the PR description. Should take just a couple minutes for the preview to rebuild!

* Intended to be used with a `<PathTruncationAside />` in each operation intro.
*/
function truncateVaultSecretsOperationPath(path: string) {
return path.replace(
Copy link
Contributor

@kendallstrautman kendallstrautman Jul 6, 2023

Choose a reason for hiding this comment

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

⛏️ Could we add a bit more clarity as to what the regex should match on in the comment?

Copy link
Contributor Author

@zchsh zchsh Jul 6, 2023

Choose a reason for hiding this comment

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

πŸ™Œ Great call! Added in a comment on this regex matching a standard prefix πŸ‘

Copy link
Contributor

@kendallstrautman kendallstrautman left a comment

Choose a reason for hiding this comment

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

LGTM!

zchsh and others added 2 commits July 6, 2023 12:16
Co-authored-by: Kendall Strautman Swarthout <36613477+kendallstrautman@users.noreply.github.com>
@zchsh zchsh merged commit 74e0b84 into main Jul 11, 2023
@zchsh zchsh deleted the zs.hcp-vault-secrets-api-docs branch July 11, 2023 14:56
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