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

improvement: API reference anchor links now use dot notation #365

Merged
merged 7 commits into from
Jan 17, 2024

Conversation

abvthecity
Copy link
Contributor

Anchor links are formatted as follows:

  • Path parameters: #request.path.{key} i.e. #request.path.identifier
  • Headers: #request.header.{key} i.e. #request.header.X-Idempotency-Key or #request.header.x-idempotency-key (case insensitive)
  • Query parameters: #request.query.{key} i.e. #request.query.currency_code
  • Request parameters: #request.body.{key} i.e. #request.body.user.email
  • Response parameters: #response.body.{key} i.e. #response.body.message.received.dateTime
  • Errors: #response.error.{statusCode}.{key} i.e. #response.error.400.error.message

In this PR, we are also assuming that each error status code is unique (replacing indexes) for every endpoint. Also, that case sensitivity can be ignored.

@abvthecity abvthecity requested a review from dsinghvi as a code owner January 17, 2024 21:24
Copy link

vercel bot commented Jan 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
fern-cloudflare ✅ Ready (Inspect) Visit Preview Jan 17, 2024 9:41pm
fern-dev ✅ Ready (Inspect) Visit Preview Jan 17, 2024 9:41pm
fern-prod ✅ Ready (Inspect) Visit Preview Jan 17, 2024 9:41pm
2 Ignored Deployments
Name Status Preview Updated (UTC)
fern-cohere ⬜️ Ignored (Inspect) Visit Preview Jan 17, 2024 9:41pm
fern-finch ⬜️ Ignored (Inspect) Jan 17, 2024 9:41pm

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.

1 participant