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

Make public API docs available to non-Member/Admin #1175

Open
norwnd opened this issue Apr 26, 2024 · 1 comment
Open

Make public API docs available to non-Member/Admin #1175

norwnd opened this issue Apr 26, 2024 · 1 comment

Comments

@norwnd
Copy link

norwnd commented Apr 26, 2024

I've started experimenting with Encore recently and couldn't find a way to expose my API docs for public endpoints,

Admin/Member can access them in dashboard:

image

and the API itself is publicly available:

curl 'https://staging-flight-router-c9fi.encr.app/calculate' -d '{"flights":[["IND","EWR"],["SFO","ATL"],["GSO","IND"],["ATL","GSO"]]}'

so, did I just miss it or it hasn't been implemented just yet ?

@norwnd norwnd changed the title Make public API docs available to non-Members Make public API docs available to non-Member/Admin Apr 26, 2024
@marcuskohlberg
Copy link
Member

Thanks @norwnd, this is a great request. This feature isn't available yet, but we'd like to add support for this soon.
For now you can generate an Open API spec client using the CLI and use an external docs tool to expose the docs publically:
https://encore.dev/docs/develop/client-generation

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

No branches or pull requests

2 participants