Add missing Web.Contents options (RelativePath, ManualStatusHandling, etc.)#62
Merged
Conversation
…options Addresses #61 — adds missing Web.Contents parameters (RelativePath, ManualStatusHandling, Timeout, IsRetry, ExcludedFromCacheKey, ManualCredentials, ApiKeyName) to both the api-authentication pattern and Web.Contents function page. Updates the OAuth example to use RelativePath and Uri.BuildQueryString. Fixes renderRemarks to support ### headings and code blocks in function page Remarks sections. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Three examples covering the most common patterns: basic GET + JSON parse, RelativePath for PBI Service refresh, and ManualStatusHandling for graceful 404 handling. All use live pqm.guide/api/tables endpoints. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
RelativePath,ManualStatusHandling,Timeout,IsRetry,ExcludedFromCacheKey,ManualCredentials, andApiKeyNameto the options table on both the api-authentication pattern and Web.Contents function pageRelativePath(with auto-/gotcha) andManualStatusHandling(withValue.Metadataexample) on the pattern pageRelativePathandUri.BuildQueryStringinstead of manual string concatenationrenderRemarksto support###headings and fenced code blocks in function page Remarks sections (previously rendered as literal text)Closes #61
Test plan
npm run typecheckpassesnpm test— 45/45 tests pass###headings render correctly on function pages (e.g./functions/web-contents)/patterns/api-authentication🤖 Generated with Claude Code