encoredev / encore

Development Platform for building robust type-safe distributed systems with declarative infrastructure

Home Page:https://encore.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make public API docs available to non-Member/Admin

norwnd opened this issue · comments

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 ?

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