microsoft-graph-devx-api icon indicating copy to clipboard operation
microsoft-graph-devx-api copied to clipboard

[Graph Docs] Update snippet generator to skip adding Try It button to examples with placeholders

Open Lauragra opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. Currently, the Try It button is added to all GET operation topics via the snippet generation process. However, some examples include only placeholder values, and therefore the Try It experience won't work directly without additional steps by the user.

Describe the solution you'd like We don't want to add the Try It button automatically to GET operation examples that have placeholders or fictitious values. We propose that the snippet process leave the HTTP tab as-is without adding msgraph-interactive in the following cases:

  • When the example includes {} placeholder values.
  • When the example uses fictitious values specified in the sampleKeys property of the HTML comment block.

Describe alternatives you've considered Manually removing them doesn't work because the process currently adds it back via automation.

Lauragra avatar Aug 14 '24 21:08 Lauragra