#Exposing HTTPS endpoint in CLI

19 messages · Page 1 of 1 (latest)

mighty oriole
#

When creating an app with Wix Block, we can expose some endpoints (https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/wix-blocks/code-in-blocks/expose-a-blocks-app-api-with-http-functions)

What would be the equivalent of that in CLI?

I want my app to expose some endpoint so user can forward third party events into it

waxen copper
#
mighty oriole
#

How would you call that endpoint for a third party? What's the public URL?

waxen copper
#

If I remember correctly it’s :

https://www.${baseUrl}/_functions/your-extension-file-name

mighty oriole
#

That's for block app, in CLI that endpoint does not exist

willow bobcat
#

hey @mighty oriole
currently in CLI it’s not possible to expose a static public URL for HTTP Functions.
CLI HTTP function extensions don’t get a fixed endpoint, so they cannot be used as third-party webhook receivers.

If you need to accept external webhooks, you’ll have to host your own endpoint outside of Wix and call into your app from there.

mighty oriole
#

Thanks @willow bobcat for the precision.
Any chance we could get a feature request opened for this? Since it’s already possible through Wix Blocks, it would be great to have feature parity in the CLI as well.

I genuinely believe this feature has a lot of potential for integrating Wix with the outside world. Being able to create a dedicated endpoint for our apps would allow much better interoperability with third-party systems, especially when it comes to processing external webhooks directly within the app.

willow bobcat
#

Sure, please share the app ID so I can attach it to the feature request ticket 🙂

mighty oriole
#

Sure, the first one is: 47180e6c-c7e7-4079-8cfc-d1c7a523916a But I got a couple of other ideas that would need such a feature 🙂

wicked pasture
waxen copper
wicked pasture
#

Fingers crossed 💜

#

But I would vote if I were you

waxen copper
wicked pasture
#

Votes help feature requests get done

#

Not that big of a secret 😬

waxen copper
wicked pasture
#

Not that I'm aware of, but I believe it varies depending on the product

mighty oriole
#

I'm afraid CLI adoption is too low at the moment for it to have a significant impact on the road map:s

Hopefully PM will meet our interest and implement this feature 🙂