encore icon indicating copy to clipboard operation
encore copied to clipboard

Make public API docs available to non-Member/Admin

Open norwnd opened this issue 2 years ago • 1 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 ?

norwnd avatar Apr 26 '24 11:04 norwnd

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

marcuskohlberg avatar Apr 26 '24 11:04 marcuskohlberg