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

OpenAPI Spec Not Accessible #2155

Open
ryanwaits opened this issue Nov 2, 2024 · 0 comments
Open

OpenAPI Spec Not Accessible #2155

ryanwaits opened this issue Nov 2, 2024 · 0 comments

Comments

@ryanwaits
Copy link
Contributor

Describe the bug

The openapi.json file is no longer accessible at stacks-blockchain-api.vercel.app/openapi.json after the Fastify migration. We are using this to automatically keep API references up-to-date in our documentation repo.

Current Behavior

  • Other APIs successfully serve their OpenAPI specs:
    • ✅ ordinals-api.vercel.app/openapi.json
    • ✅ runes-api.vercel.app/openapi.json
    • ✅ token-metadata-api.vercel.app/openapi.json
    • ❌ stacks-blockchain-api.vercel.app/openapi.json

Likely Cause

OpenAPI files are being written to ./docs instead of ./tmp or ./public, preventing Vercel from serving them correctly.

Reference

openapi-generator.ts#L21

@github-project-automation github-project-automation bot moved this to 🆕 New in API Board Nov 2, 2024
@smcclellan smcclellan moved this from 🆕 New to 📋 Backlog in API Board Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant