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

rip out API explorer and code snippets #199

Merged
merged 2 commits into from
Oct 2, 2024
Merged

Conversation

bnewbold
Copy link
Contributor

@bnewbold bnewbold commented Oct 2, 2024

This is the "right hand column" on the HTTP API reference docs.

These snippets are great for devex in theory, but are currently often wrong and misleading for atproto+bsky APIs. Part of the problem is that different API requests need to be routed to different services (or possibly use service proxying headers to the user's PDS), and may require auth. Devs frequently hit "HTTP 405 Method Not Allowed" errors when trying to call endpoints against the wrong service backend. The confusion is not worth the upside for the small number of endpoints which do work correctly (eg, don't require auth, are against the api.bsky.app host specifically.

The medium-term plan here is to have an atproto-specific Lexicon aggregation and docs site which can provide this kind of code snippet and live exploration functionality in a more protocol-native way, including snippets that use actual SDKs, and possibly even login with OAuth to make authenticated requests.

For now, ripping out this feature should reduce confusion. Pairs with #198, which adds docs about how to make requests.

@bnewbold bnewbold requested a review from pfrazee October 2, 2024 07:25
@arcalinea arcalinea temporarily deployed to bnewbold/remove-api-explorer - bsky-docs PR #199 October 2, 2024 07:25 — with Render Destroyed
@bnewbold bnewbold merged commit a7398ab into main Oct 2, 2024
@bnewbold bnewbold deleted the bnewbold/remove-api-explorer branch October 2, 2024 23:16
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.

3 participants