Make public API docs available to non-Member/Admin
norwnd opened this issue · comments
norwnd commented
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:
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 ?
Marcus Kohlberg commented
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